VeryEasyTools

Explainers

Video File Extensions vs. Codecs: MP4, MOV and MKV Are Wrappers, the Codec Sets the Size

VeryEasyTools · 4 min read

6.4 MB → 3.5 MBH.264 → AV1, same quality, 20 s 1080p

How this was measured

Video
Big Buck Bunny (© Blender Foundation, CC BY 3.0), 1080p 30 fps, from 4:00: 20 s for the codec test, 30 s for the container test
Encoding
ffmpeg 6.1: H.264 (x264) and HEVC (x265) medium, VP9 (libvpx) good, AV1 (SVT-AV1) preset 6. No audio
Quality
Compared with the original using VMAF (Netflix’s quality score, out of 100). Sizes at equal scores were interpolated from nearby settings
Measured
November 11, 2026 (codecs); October 30, 2026 (containers)

Video files come with many extensions: MP4, MOV, MKV, WebM, AVI. Some open and some don’t, so it’s easy to assume the extension decides the quality or the size. But the extension is only the wrapper. What mostly decides size, and whether a file opens, is the codec inside. I measured the two separately using the same video.

Wrapper (extension) and contents (codec)

One video file holds picture, sound and sometimes subtitles. The box that bundles them, such as MP4 or MOV, is the container. The method used to compress the picture and sound inside it is the codec. Common video codecs are H.264, HEVC (H.265), VP9 and AV1; common audio codecs are AAC, MP3 and Opus.

Extension Usually contains Where you see it
MP4 H.264, HEVC or AV1 + AAC Almost everywhere: phones, chat apps, video sites
MOV H.264 or HEVC + AAC Video shot or made on iPhone and Mac
MKV Almost anything, multiple subtitles Downloaded videos, screen recorders
WebM Only VP8, VP9 or AV1 + Opus or Vorbis Browser screen recordings, video for the web
AVI Often older codecs A format from 1992: old camcorders and old software

MOV and MP4 share the same skeleton (MP4 was built on Apple’s QuickTime format), so they are very similar.

Change only the wrapper and the size stays the same

I took a 30-second file with H.264 video and MP3 audio and moved it into different boxes without compressing it again.

Container Size
MP4 11.76 MB
MOV 11.76 MB
MKV 11.75 MB
AVI 11.82 MB

The sizes differ by less than 1%. Each box writes its table of contents a little differently, but the video inside is identical. So a conversion that only changes the wrapper keeps the quality and takes seconds.

Each box does limit which codecs it accepts, though. Putting the same file into WebM fails, because WebM takes only VP8, VP9 or AV1 video and Vorbis or Opus audio. In that case the video has to be compressed again.

Change only the codec, at matched quality

Next I compressed the same 20 seconds of 1080p many times with four codecs and scored each result with VMAF. Then I compared the size needed to reach the same score. VMAF 95 is generally considered hard to tell from the original on an ordinary screen.

Size of 20 s of 1080p at the same quality (smaller is better)

VMAF 95

H.2646.40 MB
VP95.64 MB
HEVC5.07 MB
AV13.46 MB

VMAF 93

H.2644.98 MB
VP94.11 MB
HEVC3.61 MB
AV12.39 MB

At equal quality, with H.264 as 100, VP9 came to 88, HEVC to 79 and AV1 to 54. The trend is clear: newer codecs pack the same quality into less space. The price is that they take more computation to encode, and older devices and programs may not open them.

People often say HEVC is half the size of H.264. Compare each codec’s default setting (H.264 CRF 23, HEVC CRF 28) and HEVC does come out under half. But those two settings don’t give the same quality. Matched on quality, HEVC was a little over 20% smaller for this video. Clean animation and dark live action can behave differently, so read the numbers as a sense of the size of the gap.

Audio has codecs too

They matter much less for size than video codecs, but audio codecs also affect whether a file plays. MP4 usually carries AAC and WebM carries Opus. Audio takes far less data than video (around 1 MB per minute), so the video decides the file size. On very old devices or car stereos that don’t know Opus, though, you can get picture without sound.

So when a file won’t open, it’s usually the codec

When a MOV won’t open on Windows, the problem often isn’t that it’s a MOV but that the video inside is HEVC. iPhones record HEVC by default (High Efficiency), and Windows can’t open it without the HEVC extension. Renaming .mov to .mp4 sometimes works, but only when the video inside was H.264 all along. If it’s HEVC, a new name won’t make it open.

Codec Opens well on Trouble spots
H.264 Almost every device, browser, chat app and editor Hardly any
HEVC iPhone and Mac, recent Android Windows without the extension; PC browsers whose video chip lacks it
VP9 Chrome, Edge, Firefox, Android Older iPhones and Macs, some editors
AV1 Recent Chrome, Edge and Firefox Devices without an AV1 video chip (slow, or won’t open), many editors

Which codecs a device can open depends on its video chip and OS version. Treat the table as a general picture.

To open everywhere: H.264 in an MP4

If you don’t know what device the other person uses, an MP4 with H.264 video and AAC audio is the safest choice. It is bigger than HEVC or AV1, but you hardly ever have to worry about it not opening. HEVC or AV1 are good for saving space in your archive; for sending to others, converting to H.264 first is the better bet.

Convert to MP4 checks each file’s codec first. If it is already H.264, only the wrapper changes to MP4 with no re-compression; HEVC or VP9 is re-encoded to H.264. Converting iPhone video is covered step by step in the MOV to MP4 guide, and the other things that set file size (resolution, bitrate) in what decides video file size.

Try it yourself

Convert MOV, WebM, MKV and AVI videos to MP4 that plays anywhere. Many files at once.

Open Convert to MP4 →
All blog posts →