The most common video file extensions
The video file extensions you’ll run into most often are .mp4, .mov, .mkv, .avi, .webm and .wmv. Others turn up in particular places: .mts/.m2ts from camcorders, .mxf from professional cameras, and older ones like .flv, .3gp, .mpg and .vob. For everyday use, MP4 is the most widely supported.
Extension, container and codec: what’s the difference
A video file extension usually tells you the container, the wrapper that holds the video, audio, subtitles and metadata together. It does not tell you the codec, which is the method used to compress the video inside.
For example, two .mp4 files might contain H.264 video or H.265 video. A .mov file might hold H.264, HEVC or ProRes. This is why a file can have a familiar extension and still refuse to play: the device may support the container but not the codec inside it. Our guide to the different types of video codecs explains the compression side in more detail.
Modern extensions you’ll see most often
MP4 / M4V
MP4 is the default for most phones, cameras, editing exports and websites. It usually holds H.264 or H.265 video with AAC audio, and it plays on almost everything. M4V is a closely related format Apple has used for iTunes video, sometimes with copy protection.
MOV
MOV is Apple’s QuickTime container. iPhones and many cameras record to it, and professional codecs like ProRes are usually stored in MOV files. Modern Windows and Android devices generally play MOV files fine, depending on the codec inside.
MKV
MKV (Matroska) is an open, very flexible container. It can hold almost any codec and multiple audio and subtitle tracks, which makes it popular for archiving movies and for screen recording. A file that is still being written to is less likely to be ruined by a crash in MKV, which is why people ask “Is MP4 or MKV better for OBS?” Support on TVs and phones is good but not universal.
WebM
WebM is an open format designed for the web, usually holding VP8, VP9 or AV1 video with Vorbis or Opus audio. Browsers support it widely, but some editing software and older devices don’t.
AVI
AVI is an old Microsoft container from the early 1990s. It was everywhere in the DivX and Xvid era and is still used for some uncompressed and DV captures. It lacks some modern features, but most players still open it.
Camera and broadcast extensions
MTS / M2TS
These come from AVCHD camcorders and Blu-ray discs. They are MPEG transport streams, usually holding H.264 video. Most modern editors import them directly.
MXF
MXF is a professional container used by many broadcast and cinema cameras. It can hold codecs such as XAVC, DNxHD and AVC-Intra. It’s common in professional workflows but rare in consumer software.
Raw formats
Some cinema cameras record their own raw formats, such as Blackmagic RAW (.braw) or RED (.r3d). These need software that supports them, such as the camera maker’s own tools or editors with built-in support.
Older and legacy extensions
If you are digging through old hard drives, you may find:
- .wmv / .asf: Windows Media Video, common in the 2000s on Windows PCs.
- .flv: Flash Video, the format behind most online video before HTML5 took over.
- .3gp / .3g2: Early mobile phone video, usually very low resolution.
- .rm / .rmvb: RealMedia, once popular for streaming and file sharing.
- .mpg / .mpeg: MPEG-1 or MPEG-2 video, used for VCDs, early digital video and some DVD content.
- .vob: The video files on a DVD-Video disc, stored in a VIDEO_TS folder.
- .dv: Raw DV video, typically captured from MiniDV tapes.
Most of these still play in VLC, and free tools like HandBrake or FFmpeg can usually convert them to MP4. Our guide to old digital video formats covers converting them in more depth.
Which extension should you use?
- Sharing, uploading or playing on any device: MP4 with H.264 video and AAC audio is the safest choice.
- Editing on a Mac or in a ProRes workflow: MOV.
- Recording where a crash could cost you the file: MKV, then remux to MP4 if needed.
- Web embedding: MP4, with WebM as an option for browsers.
What to do with a file that won’t play
- Try opening it in VLC, which supports a very wide range of codecs.
- Check what is actually inside the file with a tool like MediaInfo. This shows the container and codecs.
- If the codec is the problem, convert the file with HandBrake or FFmpeg to MP4 with H.264.
- If the file is damaged, a repair tool may be able to recover part of it, but there is no guarantee.
Renaming the extension, for example changing .mkv to .mp4, does not convert the file. At best it does nothing useful, and at worst it stops the file from opening. Use a proper conversion or remux tool instead.