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.
| Format | Full name | Typical codecs inside | Plays without extra software on | Best for |
|---|---|---|---|---|
| .mp4 | MPEG-4 Part 14 | H.264, H.265 (HEVC), AV1 | Windows, macOS, Linux, iOS, Android, every major browser | Sharing, uploading and anything that must just work |
| .mkv | Matroska Video | Any codec: H.264, H.265, AV1, VP9 | Windows 10 and later, VLC and most desktop players; not in browsers | Films with several audio languages, subtitles and chapters |
| .mov | QuickTime Movie | H.264, H.265, Apple ProRes | macOS, iOS, Safari; VLC on Windows and Linux | Recording on Apple devices and editing in Final Cut |
| .avi | Audio Video Interleave | Xvid, DivX, MJPEG and other older codecs | Windows; VLC on any system | Legacy files and old camcorder footage |
| .webm | WebM | VP8, VP9, AV1 | Chrome, Firefox, Edge, Android; Safari support is partial | Royalty-free video embedded on a web page |
| .wmv | Windows Media Video | WMV (VC-1) | Windows; other systems need VLC | Old Windows recordings and screen captures |
| .asf | Advanced Systems Format | WMV video, WMA audio | Windows; VLC elsewhere | The container that .wmv and .wma are built on |
| .m4v | Apple MPEG-4 Video | H.264 | Apple devices and the Apple TV app; VLC elsewhere | Video bought or exported from Apple, sometimes DRM protected |
| .mpg | MPEG Program Stream | MPEG-1, MPEG-2 | VLC and most desktop players | Video CDs, DVD authoring and broadcast archives |
| .vob | DVD Video Object | MPEG-2 | VLC and DVD software | The video files inside a ripped DVD |
| .m2ts | Blu-ray MPEG-2 Transport Stream | H.264, MPEG-2, VC-1 | VLC, Blu-ray players and media servers | Blu-ray discs and AVCHD camcorder footage |
| .mts | AVCHD Video | H.264 (AVCHD) | VLC and most video editors | Footage copied straight off an AVCHD camcorder |
| .3gp | 3GPP Multimedia | H.263, MPEG-4 Part 2, H.264 | Android, VLC | Recordings from older mobile phones |
| .ogv | Ogg Video | Theora, VP8 | Firefox, Chrome, VLC | Open-source web video, largely replaced by WebM |
| .rm | RealMedia | RealVideo, RealAudio | VLC | Downloads from the RealPlayer streaming era |
| .f4v | Flash MP4 Video | H.264 | VLC; Flash Player itself is discontinued | Legacy Flash streaming files |
| .mxf | Material Exchange Format | XDCAM, DNxHD, AVC-Intra and others | Professional editors such as Premiere Pro, Avid and DaVinci Resolve | Broadcast 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
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.