Free AVI sample, test and dummy files (.avi)

Classic Microsoft Resource Interchange File Format (RIFF) video containers with interleaved video and 16-bit PCM audio chunks. Use these samples to test legacy video ingestion pipelines, transcoding queues, and RIFF chunk parsers.

Quick facts: .avi format

Extension.avi
Full nameAudio Video Interleave (RIFF AVI Container)
MIME typevideo/x-msvideo
CategoryVideo
Compression / EncodingContainer format (wraps MPEG-4 Part 2, MJPEG, or uncompressed video with PCM audio)
Magic bytes (signature)52 49 46 46 xx xx xx xx 41 56 49 20 ('RIFF....AVI ')
SpecificationMicrosoft RIFF AVI 1.0 Specification (1992) and Matrox OpenDML AVI 2.0 (1996)

Download sample AVI files

Every file below is a spec-compliant .avi fixture generated deterministically for automated and manual testing. Verify the exact byte count and SHA-256 digest after downloading, or open the custom-size file generator to build additional fixtures in your browser.

AVI sample files
FileSizeVariant & contentsSHA-256 checksumDownload
sample-avi-320x180.avi 226.02 KB231,444 bytes 2-second 320x180 24fps SMPTE test pattern in RIFF AVI container 2254057bbfedf8c39340569e5aae2e8ac099c966d0289b3c8e7da04630a5d1e1 Download AVI
sample-avi-640x360.avi 372.81 KB381,760 bytes 3-second 640x360 24fps SMPTE test pattern with PCM audio in RIFF AVI e82917ba2066a8b88ce6c8ce70d67a4490a08a90f594643a11e05572c6dedda6 Download AVI

What is a AVI file?

Audio Video Interleave (AVI) is Microsoft's multimedia container format introduced in November 1992 as part of Video for Windows. Structurally, an AVI file is a little-endian Resource Interchange File Format (RIFF) file whose top-level form type is AVI (hexadecimal 41 56 49 20 at byte offset 8). Internally, the container is organized into two mandatory LIST chunks: the hdrl (header list) chunk, which declares frame dimensions, frame rate, and stream FourCC codec identifiers (strh and strf), and the movi chunk, which interleaves compressed video frames (00dc) and audio blocks (01wb).

An optional idx1 chunk at the end of the file indexes the byte offset of every frame so media players can seek without scanning the entire movi payload. Because original AVI 1.0 used 32-bit signed offsets, files were historically capped at 2 GB until the OpenDML AVI 2.0 extension added hierarchical indx super-indexes.

How to open a .avi file on Windows, macOS, Linux, Android and iOS

What to test with AVI sample files

Common problems when handling .avi files

Developers frequently encounter "codec not supported" errors when testing AVI files because AVI is only a container; two .avi files can contain completely different video bitstreams (such as DivX, Xvid, Motion JPEG, or uncompressed RGB). Our hosted samples use standards-compliant MPEG-4 Part 2 video and 16-bit little-endian linear PCM audio so every FFmpeg or Libav installation decodes them without proprietary codecs.

Need to convert or inspect a file right away? Use ConvertFerry Video Compressor & Converter or drop any local file into our in-browser Magic-Byte File Inspector.

Related formats and testing resources

Frequently asked questions

Why do AVI, WAV, and WebP files share the same first four bytes?
All three formats are built on the Resource Interchange File Format (RIFF), which starts with ASCII 'RIFF' (52 49 46 46) followed by a 4-byte little-endian file length. The specific format is identified by the 4-byte form type at offset 8: 'AVI ', 'WAVE', or 'WEBP'.
Do browsers play .avi files inside an HTML5 <video> element?
No. Current versions of Chrome, Firefox, Safari, and Edge do not support the AVI container in HTML5 video elements. Applications that accept .avi uploads transcode them to MP4 (H.264) or WebM (VP9/AV1) for playback.
What MIME type is used for AVI files?
The most widely recognized MIME type is video/x-msvideo, with video/avi and application/x-troff-msvideo seen in legacy systems.
What video and audio codecs are inside these sample AVI files?
They contain a 24 fps SMPTE color-bar test pattern encoded in MPEG-4 Part 2 video paired with 44.1 kHz 16-bit PCM audio.