MP4 vs WebM vs MOV: which video format should you use?
What MP4, WebM, MOV and MKV actually are, how containers differ from codecs, and which format to pick for phones, websites and editing.
Published . 3 min read.
"Format" means two different things when people talk about video, and mixing them up causes most playback problems. Once you separate them, choosing a format becomes simple.
Containers and codecs
A video file is a container: a box that holds one or more streams plus information about how to play them. The file extension, such as .mp4 or .mov, tells you the container.
Inside the box, each stream is compressed with a codec. Common video codecs are H.264 (also called AVC), H.265 (HEVC), VP9 and AV1. Common audio codecs are AAC, MP3 and Opus.
A device needs to understand both the container and the codecs. That's why an MP4 file can play perfectly on one phone and show a black screen on another: the container is fine, but the second phone can't decode the codec inside.
The main containers
| Container | Usual video codecs | Usual audio codecs | Strengths |
|---|---|---|---|
| MP4 | H.264, H.265, AV1 | AAC | Plays almost everywhere |
| WebM | VP9, AV1 | Opus | Open format designed for the web |
| MOV | H.264, H.265, ProRes | AAC | Native to Apple devices and apps |
| MKV | Almost anything | Almost anything | Flexible; many tracks and subtitles |
MP4
MP4 is the default choice. Phones, browsers, smart TVs, social apps and editing software all handle MP4 with H.264 video and AAC audio. If you need one file that works for the widest audience, this is it.
WebM
WebM was created for the web and uses royalty-free codecs. It's a good choice for videos embedded on websites, where it often gives smaller files than H.264 at similar quality. Support outside browsers is less consistent, so it's a poor choice for sending to someone else.
MOV
MOV is Apple's QuickTime container. iPhones and Macs record into it, and Apple's editing apps work with it natively. Technically it's a close relative of MP4. Outside the Apple world, MOV files sometimes cause trouble, especially when they hold HEVC video.
MKV
Matroska (MKV) can hold nearly any codec, many audio tracks and many subtitle tracks, which makes it popular for archiving and for screen recording software. Phones, TVs and editors are less likely to open it.
Which should you pick?
- Sending to someone, posting to social media, playing on a TV: MP4 with H.264 and AAC.
- Embedding on your own website: WebM (VP9), with an MP4 fallback for older browsers.
- Editing on a Mac or iPhone: MOV or MP4, both with H.264.
- Keeping an archive with several audio or subtitle tracks: MKV.
Why newer codecs aren't always better
H.265 and AV1 produce smaller files than H.264 for the same quality. The catch is support: older devices and some software can't play them, or need extra processing power to do it. When compatibility matters more than size, H.264 is still the safest codec.
Converting between formats
Changing the container while keeping the same codec is quick and lossless in principle, but most real conversions also change the codec, which means re-encoding. Re-encoding always alters the picture a little, so convert from your original file rather than from copies of copies.
The video converter outputs MP4, WebM, MOV or MKV and lists the exact codecs and settings used. If you want to see what's inside a file first, run it through video file info.