.AVI

AVI File

Audio Video Interleave
Ask a question
QUICK ANSWER

An AVI file is a video container created by Microsoft in 1992. To open one, use VLC media player - it includes the DivX/Xvid codecs old AVIs need and works on Windows, Mac, Linux, Android and iOS. The most common task is converting AVI to MP4 using HandBrake, which makes the file smaller and playable on phones, browsers and TVs.

Developer: Microsoft Category: Video Files MIME: video/x-msvideo
OPENS ON Windows macOS Linux Android iOS
Related: .DAV · .MKV · .MP4 · .H264

On this page

19k+ extensions indexed
Last reviewed Jun 22, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the AVI file format?

.avi (Audio Video Interleave) is a multimedia container file that holds audio and video data. Introduced by Microsoft in 1992 as part of the Video for Windows initiative, it is widely recognised for storing video data and was a common choice for multimedia distribution. Its MIME type is video/x-msvideo.

File structure

The .avi format is based on the RIFF structure and divides data into strictly defined chunks. The first chunk, HDRL, is a file header containing information about the video - size, number of frames, and compression algorithm parameters. The second chunk, MOVI, contains the actual audio and video data. The third chunk, IDX1, is optional - it holds index information about the location of fragmented data within the file, enabling players to seek efficiently. A later extension known as OpenDML (AVI 2.0) introduced additional index chunk types to overcome the original 2 GB file-size limit.

Compression

.avi offers an optional compression function. However, the compression method is generally less efficient than those used in MPEG or MOV formats, and compressed files are still considerably large. The format supports a wide range of codecs - including DivX, Xvid, MJPEG, and uncompressed RGB/YUV - each identified by a FourCC code stored in the stream header. Uncompressed .avi files are large in size but offer high audio and video quality even after multiple read and write operations, and such files do not require additional codecs. Modern containers like .mkv and .mp4 have largely replaced .avi for new content, offering better compression efficiency and broader feature support.

Security & safety

RISK: MEDIUM

AVI is a media container, not executable code, so a genuine AVI is safe to play - but AVI has a notable history of malware tricks. The classic scam: a "movie.avi" that's actually "movie.avi.exe", or an AVI that triggers a fake "you need this codec" download which installs malware (VLC/FFmpeg need no extra codecs - never install a 'codec' a video site demands). Crafted AVI files have also exploited old player/codec bugs, so keep your player updated and prefer VLC, which sandboxes its own decoders. Online AVI converters upload your video to a third party - use a local tool (HandBrake/FFmpeg) for private footage.

Format details

in a nutshell
FULL NAMEAudio Video Interleave
DEVELOPERMicrosoftsince 1992 (Microsoft, as part of Video for Windows)
CATEGORYVideo Files
MIME TYPEvideo/x-msvideo
TYPERIFF-based multimedia container (binary); codec varies (Xvid/DivX, MJPEG, uncompressed, etc.)
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
52494646
ASCII
RIFF
Bytes 0-3 are "RIFF"; bytes 8-11 are the form type "AVI " (with a trailing space). Same RIFF container family as WAV ("WAVE") and WebP - the form-type at offset 8 distinguishes them.

Programs that open AVI files

Windows2 apps
VLC media player Open-source Drag the AVI onto VLC - it includes the DivX/Xvid/MJPEG codecs old AVIs need, so it plays files Media Player can't.
Media Player (Windows 11) / Films & TV Built-in Double-click to play; works for common AVIs but may show 'no video' if the codec (e.g. Xvid) isn't installed - then use VLC.
macOS2 apps
VLC media player Open-source Open the AVI in VLC - QuickTime often can't play DivX/Xvid AVIs, but VLC plays them all on a Mac.
IINA Open-source Modern native macOS player (built on mpv); double-click after setting it as default for .avi.
Linux2 apps
VLC media player Open-source In every distro repository; open the file or run 'vlc file.avi'. mpv is an equally good alternative.
mpv Open-source 'mpv file.avi' - lightweight, plays AVI with bundled FFmpeg codecs.
Android1 app
VLC for Android Open-source Open the AVI in VLC; Android's built-in players often lack the old DivX/Xvid codecs AVIs use.
iOS1 app
VLC for iOS Open-source Transfer the AVI via Files/AirDrop and play in VLC - iOS does not play AVI natively.

Technical details

deep spec
Container familyRIFF (Resource Interchange File Format)
MIME typevideo/x-msvideo
Magic bytes52 49 46 46 ("RIFF") at byte offset 0; form-type "AVI " (with trailing space) at offset 8
Codec identificationFourCC (four-character code) stored in the strf sub-chunk of each stream header
Supported codecsUncompressed RGB/YUV, DivX, Xvid, MJPEG, Indeo, Cinepak; H.264 via DirectShow/LAV filters
Max file size (classic AVI)2 GB, constrained by the 32-bit chunk-size field in the RIFF header
Max file size (OpenDML/AVI 2.0)Effectively unlimited - odml LIST chunk uses 64-bit index offsets
EndiannessLittle-endian (standard RIFF byte order)
Audio streamsMultiple simultaneous audio streams supported (e.g., multiple language tracks)
Subtitle supportNo native embedded subtitle track; external .srt or .sub files used
Alpha channelNot supported by the container specification
Key structural chunksHDRL (file header list), MOVI (interleaved media data), IDX1 (optional seek index)
Frame rate representationStored as integer microseconds per frame in the avih main header chunk (dwMicroSecPerFrame)
Video streamsSpecification allows multiple video streams; in practice, players expect a single stream
Interleave granularityAudio and video data interleaved in the MOVI chunk; recommended block ≤ 1 second of playback
Released1992 (Microsoft, as part of Video for Windows)
Specificationlearn.microsoft.com

AVI conversions

Possible
.AVI .MPGOnline converter
How to convert
.AVI .MPEGOnline converter
How to convert
.AVI .VOBOnline converter
How to convert
.AVI .3GPOnline converter
How to convert
.AVI .RMOnline converter
How to convert
.AVI .XVIDOnline converter
How to convert
.AVI .RMVBOnline converter
How to convert
.AVI .M4VOnline converter
How to convert
.AVI .MTSOnline converter
How to convert
.AVI .WMAOnline converter
How to convert
.AVI .M2TSOnline converter
How to convert
.AVI .DIVXOnline converter
How to convert
.AVI .ASFOnline converter
How to convert
.AVI .OGGOnline converter
How to convert
.AVI .MXFOnline converter
How to convert
.AVI .AACOnline converter
How to convert
.AVI .AC3Online converter
How to convert
.AVI .TSOnline converter
How to convert
.AVI .3G2Online converter
How to convert
.AVI .AMROnline converter
How to convert
.AVI .TRPOnline converter
How to convert
.AVI .M2VOnline converter
How to convert
.AVI .MP4Online converter
Yes - convert AVI to MP4 with the free HandBrake app or a single FFmpeg command; the result is smaller and…
How to convert
.AVI .F4VOnline converter
How to convert
.AVI .MKVOnline converter
Yes -- FFmpeg can remux an AVI to MKV without re-encoding, preserving quality and completing in seconds.
How to convert
.AVI .MOVOnline converter
Yes - convert AVI to MOV with the free HandBrake app or a single FFmpeg command; both re-encode the video to…
How to convert
.AVI .MP3Online converter
Yes - extract the audio track with VLC (free) or one FFmpeg command.
How to convert
.AVI .WMVOnline converter
Yes, AVI can be converted to WMV - FFmpeg handles it in one command, though it is a full re-encode and rarely…
How to convert
.AVI .WEBMOnline converter
Yes - use FFmpeg or HandBrake; both are free and handle the full re-encode that AVI to WEBM always requires.
How to convert
.AVI .JPGGUIDE
Yes - use VLC to grab a single frame or FFmpeg to extract every frame as a JPG image; this is frame…
How to convert

Community Q&A

asked by users
Ask a quick question
Get help from people who work with AVI files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about AVI files.

Frequently asked questions

How do I open an AVI file?
On Windows, double-click to try the built-in Media Player; if it shows no picture or sound, install the free VLC media player, which includes the DivX/Xvid codecs old AVIs need and plays virtually any AVI on Windows, Mac and Linux.
Why does my AVI play sound but no video (or video but no sound)?
A codec for one of the streams is missing - AVI is just a container, and the video is often DivX/Xvid. Open it in VLC, which has the codecs built in; don't install random 'codec packs'.
How do I convert an AVI to MP4?
Use HandBrake (free): open the AVI, pick a preset like 'Fast 1080p30', and Start. Or FFmpeg: 'ffmpeg -i in.avi -c:v libx264 -c:a aac out.mp4'. MP4 is smaller and plays on phones, browsers and TVs.
Why is my AVI file so large?
AVI uses older codecs with weaker compression than modern MP4 (H.264/H.265), and some AVIs are uncompressed or MJPEG. Converting to MP4 typically shrinks the file dramatically with little quality loss.
Is AVI better than MP4?
No - MP4 is more efficient (smaller files, modern codecs) and far more compatible with phones, browsers and TVs. AVI is a legacy format; keep it only for old workflows that require it.
Can I play AVI on my phone or in a browser?
Not reliably - phones and browsers don't natively support AVI's old codecs. Install VLC (Android/iOS) to play it, or convert the AVI to MP4 first for native playback.
My AVI won't open - is it corrupt?
Usually it's a codec issue, not corruption. Try VLC first. If VLC also fails, the file may be incomplete or damaged; tools like DivFix++ or FFmpeg can sometimes repair/rebuild the index.

References

1Microsoft Learn - AVI RIFF File Referencelearn.microsoft.com
2VideoLAN - VLC media playerwww.videolan.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.EXEWindows Executable (Portable Executable)
5.DATProgram Data File (generic)
6.M4AMPEG-4 Audio File
7.MDMarkdown Document
8.BINCD/DVD Disc Image (BIN/CUE)
9.TMPTemporary File
10.ICSiCalendar data file

Related extensions

.DAVDVR365 / Dahua DVR Video File (DHAV stream)
.MKVMatroska Video
.MP4MPEG-4 Part 14 Video File
.H264Raw H.264 / AVC Video Elementary Stream
.VOBDVD Video Object File
.264Raw H.264 / AVC Video Elementary Stream (DVR/CCTV export)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z