What is a .avi file?
Audio Video Interleave · Video · Microsoft · 1992
AVI is an old Microsoft video container that you still meet in legacy files and some cameras. It is widely playable but inefficient by modern standards, so large AVIs are usually converted to MP4 to save space.
What is a .avi file used for?
AVI was Windows' standard video format for years. It interleaves audio and video chunks in a simple structure that many programs can read.
By today's measures it is bulky, lacks modern features like proper streaming and soft subtitles, and its files are larger than an equivalent MP4.
Like any container, an AVI holds whatever codec was used inside it, often older ones such as DivX or Xvid. That is why an AVI sometimes plays with picture but no sound, or refuses to open at all: the player is missing that codec. VLC, which bundles its own, is the reliable fix.
The size difference with modern formats is stark. An AVI using an old codec can be several times larger than the same footage encoded as H.264 in an MP4, with no visible gain in quality. If storage or upload limits matter, re-encoding to MP4 is almost always worth it. HandBrake is the usual free tool: load the AVI, pick the MP4 preset, and it shrinks the file while keeping the picture.
AVI also lacks features people now take for granted. It has no native support for soft (switchable) subtitles, chapters or multiple selectable audio tracks the way MKV and MP4 do, and it does not stream smoothly over the web. For editing, most modern editors accept AVI but prefer MP4 or MOV, so converting first avoids codec headaches on the timeline.
VLC plays AVI reliably on every platform. When size, streaming or compatibility matters, convert it to MP4.
How to open a .avi file
The .avi format opens in the following apps, grouped by operating system. If one app does not work, try another from the same list. For a step-by-step walkthrough, see how to open a .avi file.
Windows
- Media Player
- VLC
macOS
- VLC
- QuickTime (with codecs)
Linux
- VLC
- mpv
Web
- Not natively, convert first
How to convert a .avi file
You can convert a .avi file to MP4, MKV, WebM using a conversion tool or the export menu of an app that opens it.
.avi file signature (magic bytes)
Programs recognise a .avi file by the bytes at the start of the file, not by its name. These are the signatures for AVI. For a full breakdown, see the AVI file signature page.
| Hex signature | Offset | Note |
|---|---|---|
| 52 49 46 46 ?? ?? ?? ?? 41 56 49 20 | 0 | RIFF....AVI |
See the full magic-numbers reference for every format.
Frequently asked questions
What is a .avi file?
AVI is an old Microsoft video container that you still meet in legacy files and some cameras. It is widely playable but inefficient by modern standards, so large AVIs are usually converted to MP4 to save space.
Why won't my AVI play, or why is there no sound?
Almost always a missing codec. The AVI container is fine, but the video or audio codec inside (often DivX or Xvid) is not installed on your system. Open the file in VLC, which includes its own codecs, or convert it to MP4.
Should I convert AVI to MP4?
Usually yes. MP4 is smaller, plays on more devices and browsers, and keeps similar quality.
How do I make an AVI file smaller?
Re-encode it to MP4 with H.264. In HandBrake, load the AVI, choose an MP4 preset and export. The same footage often ends up a fraction of the size with no visible quality loss.
How do I play an AVI on a phone or in a browser?
Phones and browsers rarely play AVI directly. Convert it to MP4 first, which iPhones, Android and every browser support, or use the VLC mobile app.
Comparisons
Related formats
Sources
Details on this page were checked against authoritative references: