What Is an AVI File?
An AVI file is a video container from Microsoft that holds audio and video streams. Learn how AVI works, how to play or convert it, and its limits.
What an AVI file is
AVI stands for Audio Video Interleave. It is a multimedia container format that Microsoft introduced in the early 1990s for Windows. A file with the .avi extension wraps one or more video and audio streams into a single file so they can be played back together in sync. AVI is a container, not a codec: the extension tells you how the data is packaged, not how the picture and sound inside were compressed.
How the AVI format works
AVI is built on RIFF, a general-purpose structure that stores data in labeled chunks. An AVI file typically has a header section describing the streams (frame rate, resolution, stream types), a data section where audio and video chunks are interleaved, and often an index that lets players jump to a specific point in the recording.
The video and audio inside can use many different codecs. Depending on the device or software that created the file, an AVI may contain uncompressed video, Motion JPEG, DivX, Xvid or other formats, with audio such as PCM or MP3. This is why two files with the same .avi extension can behave very differently: one may play everywhere, while another needs a specific decoder.
The original AVI specification had a practical file size limit in the range of 1 to 2 GB. A later extension, commonly called OpenDML or AVI 2.0, allows much larger files. Whether a given recorder or editor writes the extended format depends on that product and its version.
Working with AVI files in practice
You may encounter an AVI file from older digital cameras, some webcams and capture tools, certain security cameras and dashcams, screen recorders, or archived video downloads. Common situations and what to do about them:
- The file will not open at all: try a media player that bundles a wide range of decoders, such as VLC, rather than relying only on the player built into the operating system.
- Video plays without sound, or sound plays over a black screen: the player is missing the codec for one of the streams. Use a player with broader codec support or check which codecs the file uses with a media information tool.
- You need to upload or share the video: many websites and phones prefer MP4. Converting the AVI to MP4 usually improves compatibility.
- You want to edit the recording: check whether your editor supports the specific codec inside the AVI, not just the .avi extension.
- The file is very large: AVI files from cameras often use lightly compressed formats such as Motion JPEG, so re-encoding to a modern codec can reduce size, at some cost in quality and processing time.
When converting, there are two approaches. Remuxing copies the existing streams into a new container without re-encoding, which is fast and lossless but only works if the codecs inside are supported by the target container. Re-encoding converts the streams to new codecs, which works more broadly but takes longer and may reduce quality. Desktop tools such as HandBrake or FFmpeg can do this locally on your computer.
If you use an online converter, the file is uploaded to someone else's server. For recordings from webcams, home cameras or video calls, check the service's stated policy on storage, retention and deletion before uploading, and treat those statements as claims you cannot verify yourself. Converting locally avoids that question entirely.
Limits of AVI and related questions
AVI is an old format, and it shows. It has no standard support for features that newer containers handle natively, such as embedded subtitle tracks, chapters, rich metadata or reliable variable frame rate. Some modern compression techniques, like the frame reordering used by many current codecs, were only made to work in AVI through workarounds. For these reasons, newer devices and streaming platforms generally favor MP4, MKV or MOV.
Is an AVI file safe to open? A video file itself is data, but any file from an unknown source can be crafted to exploit flaws in player software. Keep your media player updated and be cautious with files from untrusted senders, especially ones that ask you to install a codec pack to play them.
Is AVI better quality than MP4? Neither container determines quality on its own. Quality depends on the codec and the settings used during encoding, so an AVI and an MP4 containing the same stream will look the same.
Can a webcam record directly to AVI? Some capture applications offer AVI as an output option, while many current tools default to MP4 or other formats. Check the settings of the specific application you use rather than assuming either way.