What Is a Video Codec and Why Does It Matter?

Every time you watch a video online — whether it's a streaming show, a YouTube clip, or a video call — a codec is working behind the scenes. Codec stands for coder-decoder: it's the algorithm that compresses video for storage or transmission, then decompresses it for playback. The codec you use affects file size, video quality, compatibility, and how much processing power is needed to play or encode the video.

Three codecs dominate modern video: H.264, H.265 (HEVC), and AV1. Here's what makes each one distinct.

H.264 (AVC) — The Universal Standard

H.264, also known as Advanced Video Coding (AVC), has been the dominant video codec for over a decade. It's the reason you can share an MP4 and expect it to play almost anywhere.

Key characteristics:

  • Universal compatibility — supported by virtually every device, browser, camera, and platform
  • Efficient encoding — produces solid quality at reasonable file sizes
  • Low hardware demand — plays smoothly even on older devices
  • Widely used for — web video, social media uploads, video conferencing, broadcast

The trade-off: H.264 is less efficient than newer codecs, meaning larger file sizes for equivalent quality at 4K and above.

H.265 (HEVC) — Better Quality, Greater Complexity

H.265, or High Efficiency Video Coding (HEVC), was designed as H.264's successor. It achieves roughly double the compression efficiency — meaning you get the same visual quality at about half the file size.

Key characteristics:

  • Superior compression — ideal for 4K and HDR content where file size matters
  • Higher encoding demands — requires more processing power to encode and, on older hardware, to decode
  • Licensing fees — H.265 carries patent licensing costs, which has slowed adoption on some platforms
  • Widely used for — 4K streaming, Blu-ray, professional video production, Apple devices

H.265 is excellent for high-resolution content but its licensing complexity has pushed some platforms toward alternatives.

AV1 — The Open-Source Future

AV1 was developed by the Alliance for Open Media (a coalition including Google, Netflix, Apple, and others) as a royalty-free alternative to H.265. It offers compression efficiency similar to or better than H.265 — without the licensing costs.

Key characteristics:

  • Royalty-free — no licensing fees, which encourages broad adoption
  • Excellent compression — consistently outperforms H.264 and often matches H.265
  • Growing hardware support — newer devices (phones, GPUs, smart TVs) increasingly include AV1 hardware decoders
  • High encoding time — software encoding is slower than H.264/H.265, though hardware encoders are closing the gap
  • Widely used for — YouTube, Netflix, Twitch, Discord — major platforms have adopted AV1

Quick Comparison

CodecCompression EfficiencyCompatibilityLicensingBest For
H.264GoodUniversalProprietaryGeneral web video
H.265Very GoodGoodProprietary (fees)4K, HDR, Apple ecosystem
AV1ExcellentGrowingRoyalty-freeStreaming platforms, future-proofing

Which Should You Use?

For sharing and compatibility: H.264 remains the safest choice. It will play everywhere without issues.

For 4K archiving or Apple workflows: H.265 offers a great quality-to-size ratio and is natively supported by Apple hardware.

For streaming platform uploads: Upload the best quality you can (H.264 or H.265) and let the platform's encoder handle transcoding — most major platforms now transcode to AV1 for delivery anyway.

As AV1 hardware support matures over the next few years, it's likely to become the new universal standard. But for today, H.264 remains the dependable workhorse most creators should default to.