Utilumo
LightDarkSystem
Explainer1 min readUpdated August 11, 2026

What is a video codec?

Short answer

A video codec is the method used to compress and decompress video, such as H.264 or AV1. It is separate from the container (MP4, WebM, MOV) that wraps the file. The codec controls file size, quality, and how widely the video plays.

Codec vs container

People say 'MP4' as if it were the video format, but MP4 is only the container — the box. Inside the box, the actual picture is compressed with a codec like H.264. The same H.264 video can sit in an MP4 or a MOV; the codec is what really decides size and quality.

  • Container = the file wrapper: MP4, WebM, MOV, MKV
  • Codec = how the video is compressed: H.264, H.265, VP9, AV1
  • A playable file needs both a container and a codec the player understands

The common video codecs

  • H.264 (AVC) — the universal baseline; plays almost everywhere
  • H.265 (HEVC) — about half the size of H.264, but licensing and patchy browser support
  • VP9 — royalty-free, efficient, common on the web in WebM
  • AV1 — the most efficient, newer, slower to encode

Why the codec matters when you convert

Changing only the container (say MP4 to MKV) can be a quick remux with no quality loss. Changing the codec re-encodes every frame, which takes longer and loses a little quality — so start from the highest-quality source you have and avoid repeated re-encodes.

Safe default: MP4 + H.264If you just need something that plays everywhere, export MP4 with H.264. Choose H.265, VP9, or AV1 only when you specifically want smaller files and know your playback target supports them.
Try it: Video ConverterConvert a video between MP4, WebM, MOV, and MKV locally in your browser.Open tool

References

Questions

Is MP4 a codec or a container?

MP4 is a container. It usually holds video encoded with the H.264 codec and audio encoded with AAC, but the container and the codec are separate things.

Which codec gives the smallest file?

AV1 is currently the most efficient, followed by H.265 and VP9. They shrink files versus H.264 but need more encoding time and have narrower support.

Does this send my data anywhere?

No. Utilumo's developer tools parse and transform input inside the browser tab. Nothing is uploaded, stored, or logged.

Keep reading