Video file formats

21 formats in this category.

The video formats you actually meet are MP4, MKV, MOV, AVI, WebM and WMV, and MP4 with H.264 video and AAC audio is the one that plays on virtually every device. The table below lists every video format documented here, what sits inside it, where it plays without extra software and what it is best used for.

Every video file format compared

The extension names the container, the wrapper that holds the video, audio and subtitle streams. What decides whether a file plays is the codec inside it, so the codec column matters as much as the format column.

FormatFull nameTypical codecs insidePlays without extra software onBest for
.mp4MPEG-4 Part 14H.264, H.265 (HEVC), AV1Windows, macOS, Linux, iOS, Android, every major browserSharing, uploading and anything that must just work
.mkvMatroska VideoAny codec: H.264, H.265, AV1, VP9Windows 10 and later, VLC and most desktop players; not in browsersFilms with several audio languages, subtitles and chapters
.movQuickTime MovieH.264, H.265, Apple ProResmacOS, iOS, Safari; VLC on Windows and LinuxRecording on Apple devices and editing in Final Cut
.aviAudio Video InterleaveXvid, DivX, MJPEG and other older codecsWindows; VLC on any systemLegacy files and old camcorder footage
.webmWebMVP8, VP9, AV1Chrome, Firefox, Edge, Android; Safari support is partialRoyalty-free video embedded on a web page
.wmvWindows Media VideoWMV (VC-1)Windows; other systems need VLCOld Windows recordings and screen captures
.asfAdvanced Systems FormatWMV video, WMA audioWindows; VLC elsewhereThe container that .wmv and .wma are built on
.m4vApple MPEG-4 VideoH.264Apple devices and the Apple TV app; VLC elsewhereVideo bought or exported from Apple, sometimes DRM protected
.mpgMPEG Program StreamMPEG-1, MPEG-2VLC and most desktop playersVideo CDs, DVD authoring and broadcast archives
.vobDVD Video ObjectMPEG-2VLC and DVD softwareThe video files inside a ripped DVD
.m2tsBlu-ray MPEG-2 Transport StreamH.264, MPEG-2, VC-1VLC, Blu-ray players and media serversBlu-ray discs and AVCHD camcorder footage
.mtsAVCHD VideoH.264 (AVCHD)VLC and most video editorsFootage copied straight off an AVCHD camcorder
.3gp3GPP MultimediaH.263, MPEG-4 Part 2, H.264Android, VLCRecordings from older mobile phones
.ogvOgg VideoTheora, VP8Firefox, Chrome, VLCOpen-source web video, largely replaced by WebM
.rmRealMediaRealVideo, RealAudioVLCDownloads from the RealPlayer streaming era
.f4vFlash MP4 VideoH.264VLC; Flash Player itself is discontinuedLegacy Flash streaming files
.mxfMaterial Exchange FormatXDCAM, DNxHD, AVC-Intra and othersProfessional editors such as Premiere Pro, Avid and DaVinci ResolveBroadcast and professional camera workflows

Subtitles are separate files that sit next to the video rather than inside it: SRT, WebVTT and SUB are the common ones. M3U8 is not video either, it is the playlist that describes an HLS stream.

All video formats A to Z

.3gp3GP3GPP Multimedia File.asfASFAdvanced Systems Format File.aviAVIAudio Video Interleave.f4vF4VFlash MP4 Video File.m2tsM2TSBlu-ray / AVCHD Video.m3u8M3U8UTF-8 M3U Playlist / HLS.m4vM4VApple MPEG-4 Video.mkvMKVMatroska Video.movMOVQuickTime Movie.mp4MP4MPEG-4 Part 14.mpgMPEGMPEG-1/2 Video.mtsMTSAVCHD Camcorder Video.mxfMXFMaterial Exchange Format File.ogvOGVOgg Video.rmRealMediaRealMedia Audio/Video File.srtSRTSubRip Subtitle.subSUBSubtitle File (MicroDVD or VobSub).vobVOBDVD Video Object.vttVTTWebVTT (Web Video Text Tracks).webmWebMWebM Video.wmvWMVWindows Media Video

Which video format should I use?

For anything you will send to another person, upload or play on a TV, use MP4 with H.264 video and AAC audio. It is the most widely supported combination in existence and every phone, browser, editor and smart TV made in the last decade reads it.

For a film you want to keep, MKV is the better archive: it holds several audio languages, switchable subtitle tracks and chapter marks in one file, and it can wrap the same H.265 or AV1 video at a smaller size. Convert a copy to MP4 when you need to play it somewhere that refuses MKV.

For video embedded on a web page, WebM (VP9 or AV1) avoids patent licensing and compresses well, but Safari support is uneven, so most sites still ship an MP4 fallback. For editing on a Mac, MOV with ProRes keeps quality high at the cost of very large files, and MXF plays the same role in broadcast.

What is the difference between MP4, MKV and AVI?

All three are containers, so none of them determines picture quality on its own. MP4 is the modern, streamable standard: it supports H.264, H.265 and AV1, seeks quickly and plays everywhere. MKV is the most flexible: it accepts any codec and any number of audio, subtitle and chapter tracks, which is why film collections use it, but browsers and many TVs will not open it. AVI is the oldest of the three: it has no proper support for soft subtitles, chapters or streaming, and it typically wraps older codecs such as Xvid or DivX, so the same footage takes noticeably more space.

Practically: if a file will not play, converting an MKV or AVI to MP4 with H.264 fixes it almost every time, because you are re-wrapping and re-encoding into the combination that has the widest support.

How to tell what a video file really is

The extension can be wrong, and the codec inside is invisible from the filename. The reliable check is the file's first bytes: an MP4 or MOV has the ASCII text ftyp at offset 4, a Matroska or WebM file starts with the EBML header 1A 45 DF A3, and an AVI starts with RIFF followed by AVI at offset 8. Renaming a file changes none of that.

Dropping a clip into the identifier on the home page reads those bytes in your browser, without uploading anything, and tells you the real container. VLC's Tools then Codec Information panel goes one step further and names the codec inside.

Container versus codec

A video file has two separate parts: the container (the extension, such as MP4, MKV or MOV) and the codec inside it (such as H.264, H.265/HEVC or AV1). The container bundles the video stream, one or more audio streams, subtitles and metadata. The codec is the maths that actually compresses the pictures. This is why two files with the same .mp4 extension can behave differently: one may use a codec your device supports and another may not.

MP4 is the safe, universal container that plays almost everywhere. MKV (Matroska) is more flexible and popular for high-quality rips because it can hold many audio and subtitle tracks. MOV is Apple's QuickTime container, common out of macOS and iPhones. WebM is the open container built for the web.

Why a video won't play

When a video refuses to open, the container is rarely the problem; the codec usually is. Installing a capable player such as VLC, which bundles the codecs itself, fixes most cases without changing the file. If you need a file to play on a specific device, re-encoding it to H.264 inside an MP4 is the most compatible target.

Frequently asked questions

What is the most common video file format?

MP4. It is the default export of nearly every phone, camera and editing app, and the format YouTube, Vimeo and social platforms expect on upload.

Which video format has the best quality?

No container improves quality by itself. Quality comes from the codec and the bitrate inside it, so an H.265 file at a high bitrate looks better than an H.264 file at a low one, whether it is wrapped as MP4, MKV or MOV. For editing, lightly compressed codecs such as ProRes in a MOV keep the most detail.

Which video format takes the least space?

For the same footage and quality, AV1 is currently the most efficient codec, followed by H.265 (HEVC), then H.264. The container adds only a small overhead, so a 4K clip re-encoded from H.264 to H.265 typically halves in size regardless of whether you store it as MP4 or MKV.

Can I just rename an MKV to MP4?

No. Renaming changes the filename, not the bytes, and players read the container header rather than the extension. A Matroska file still begins with 1A 45 DF A3, so the player sees an MKV and either refuses it or ignores the name. Use a converter such as HandBrake or VLC's convert function instead.

Which video formats play on a smart TV?

MP4 with H.264 video and AAC audio is the safe answer for every TV and streaming stick. Many recent TVs also play MKV, H.265 and even AV1, but support varies by brand and model, so convert to MP4 if a file will not start.

Why does my video play but have no sound?

The player understands the container and the video codec but not the audio codec inside, which is common with AC-3 or DTS surround tracks in an MKV or AVI. VLC bundles its own decoders and plays them, or you can re-encode the audio track to AAC.

Step-by-step opening guides

Stuck on one file rather than choosing a format? These walk through opening it on each system.

Other categories