AVI is a container that holds video and audio together, created by Microsoft in 1992

AVI stands for Audio Video Interleave. It is a file format that packages video frames and audio tracks into a single file so they play in sync. Microsoft developed it as a standard way to store video on Windows computers, and it became one of the most common video formats through the 1990s and early 2000s. An AVI file is a container — think of it as a box that holds both the video data and the sound data together, labeled so a media player knows how to read them both at the same time.

The "interleave" part of the name describes how AVI works: it alternates between storing small chunks of video and small chunks of audio, one after another. This design made it easier for older computers to play video smoothly without having to jump around inside the file looking for the next piece of audio or video. Today, AVI files are less common than MP4 or MOV formats, but you will still encounter them in archived video, older software projects, and some specialized video editing workflows.

Key Takeaways

  • AVI files contain both video and audio data in a single file, with the audio and video interleaved so they stay synchronized during playback.
  • The video inside an AVI file can be compressed using different codecs — MPEG-4, DivX, or Xvid are common — so two AVI files may not play the same way on the same computer.
  • Most modern media players can open AVI files, but some older AVI files may not play without installing the correct codec for the compression method used.
  • AVI is rarely used for new projects because newer formats like MP4 offer better compression and wider device support with smaller file sizes.

How AVI stores video and audio inside one file

An AVI file is structured in chunks. The file begins with a header that tells the media player basic information: the video resolution (width and height in pixels), the frame rate (how many frames per second), the audio sample rate (how many times per second the audio was sampled), and which codec was used to compress the video. A codec is the algorithm that squeezed the video data down to a manageable size.

After the header, the file contains alternating blocks of video frames and audio samples. A video frame might be 100 kilobytes, followed by an audio chunk of 10 kilobytes, then another video frame, then more audio. This interleaving meant that a computer reading the file sequentially could decode and display video and audio at the same pace without having to skip around. Modern formats like MP4 use a different structure that is more efficient, but AVI's design was practical for the hardware available when it was created.

Codecs determine whether an AVI file will actually play

The video inside an AVI file is almost always compressed using a codec. Common codecs for AVI files include MPEG-4, DivX, Xvid, and Cinepak. The codec is the method used to shrink the video data — without compression, a single minute of video at 1920 by 1080 resolution would be several gigabytes. The AVI header tells the media player which codec was used, so the player knows how to decompress it.

This is where AVI files become unpredictable. If your computer has the codec installed, the AVI file plays smoothly. If you do not have that specific codec, the media player will either refuse to open the file or display a corrupted, unwatchable image. A file encoded with Xvid will not play on a computer that only has the DivX codec installed, even though both are AVI files. This codec dependency is one reason AVI fell out of favor — modern formats like MP4 use standardized codecs that are built into most devices and media players.

When you will encounter AVI files

AVI files are most common in older video archives, particularly from the 1990s and 2000s. If you are working with video from that era — home videos, educational recordings, or archived footage — you may receive it as an AVI file. Some specialized video editing software, particularly older versions of Adobe Premiere or Sony Vegas, still export to AVI format as an option, usually for archival or compatibility reasons.

You may also encounter AVI files in legacy software projects or documentation. Some older surveillance systems recorded video as AVI files, and some industrial or scientific applications still use AVI for video capture because the format is simple and the codec requirements are predictable in a controlled environment. If you are maintaining or updating older software, understanding AVI is useful because the format is stable and well-documented, even if it is no longer the default choice.

Opening an AVI file on Windows, Mac, or Linux

Windows Media Player and most third-party media players like VLC can open AVI files, though success depends on whether the codec is installed. VLC is the most reliable option because it includes many codecs built in and can often play AVI files that other players cannot. To open an AVI file, simply double-click it or drag it into your media player window.

If an AVI file will not play, the most common reason is a missing codec. Download and install VLC Media Player (free, available for Windows, Mac, and Linux) and try opening the file there. If VLC can play it, the problem was a missing codec in your original player. If VLC cannot play it either, the AVI file may be corrupted or encoded with an extremely rare codec. On Mac, QuickTime Player may open some AVI files, but support is limited. On Linux, VLC or mpv are your best options.

Converting AVI to a modern format

If you need to share an AVI file with others or use it in a modern workflow, converting it to MP4 or MOV is straightforward. Free tools like HandBrake (available for Windows, Mac, and Linux) can open an AVI file and re-encode it to MP4 with a codec like H.264, which plays on virtually any device. The conversion process takes time — a one-hour video might take 30 minutes to an hour to convert, depending on your computer's speed — but the result is a file that plays reliably everywhere.

If you are converting video for archival, MP4 with H.264 codec is a safe choice because it is widely supported and the file size is smaller than the original AVI. If you are converting for professional video editing, some editors prefer ProRes or DNxHD formats, which offer higher quality but larger file sizes. The choice depends on whether you prioritize compatibility, file size, or quality.

Why AVI is rarely used for new projects

AVI was designed for an era when storage was expensive and computers were slow. The interleaved structure made sense when sequential file reading was the fastest way to play video. Modern formats like MP4 use more efficient storage structures and standardized codecs that are built into operating systems and devices. An MP4 file is typically 30 to 50 percent smaller than an equivalent AVI file with the same video quality, and it plays on phones, tablets, web browsers, and streaming services without additional codec installation.

AVI also has technical limitations. The format uses 32-bit file size pointers, which means a single AVI file cannot exceed 4 gigabytes — a limit that modern video projects often exceed. Newer formats removed this constraint. For these reasons, AVI is now primarily a format you encounter in legacy systems or archives, not one you would choose for new work.

Frequently Asked Questions

Can I play an AVI file on my phone or tablet?

Most phones and tablets cannot play AVI files natively because they do not include AVI codec support. You would need to convert the AVI file to MP4 first using a tool like HandBrake on a computer, then transfer the MP4 file to your device. Some third-party media player apps claim AVI support, but results are inconsistent.

Why is my AVI file so much larger than an MP4 of the same video?

AVI files typically use older or less efficient compression methods than modern MP4 files. Even if both use the same codec, the AVI container structure itself is less efficient at storing data. Re-encoding the AVI to MP4 format will usually reduce the file size by 30 to 50 percent with no visible loss of quality.

Is it safe to delete an AVI file after converting it to MP4?

Yes, once you have successfully converted an AVI file to MP4 and verified that the MP4 plays correctly, you can delete the original AVI. Keep the MP4 as your working copy. If you need the original AVI later, you can always re-convert from the MP4, though quality may degrade slightly with each conversion.

What is the difference between AVI and MPEG?

MPEG is a compression standard for video (the codec), while AVI is a container format. You can have MPEG video inside an AVI file, or MPEG video inside an MP4 file. The container determines the file structure; the codec determines how the video is compressed. They are different layers of the same file.

Do I need special software to edit an AVI file?

Most modern video editing software like DaVinci Resolve, Adobe Premiere, or Final Cut Pro can import AVI files, though some may require the correct codec to be installed on your system. If your editor refuses to open an AVI file, converting it to MP4 first usually solves the problem. Older editing software often has better native AVI support.