iformat.io Logo iformat.io

H.264 vs H.265 (HEVC) vs AV1: Video Codecs Explained

P
Updated Apr 09, 2026
9 min read
Video codecs are the hidden technology that determines how big your video files are and how good they look. The codec you choose affects storage costs, streaming bandwidth, device compatibility, and visual quality.
Three codecs dominate the landscape: H.264 (the universal standard), H.265 (the efficient successor), and AV1 (the open-source future). Each represents a different tradeoff between compression, compatibility, and cost.

What Is a Video Codec, Exactly?

A codec — short for compressor-decompressor — is the algorithm that shrinks raw video data into a manageable file size. Without compression, a single minute of 1080p video at 30fps would consume roughly 10-11 GB of storage. That is over 600 GB per hour.
The result after codec compression? That same 1080p video might be 1-5 GB for a full movie. The codec decides what visual data to keep and what to discard while maintaining perceived quality.

H.264 (AVC) — The Universal Standard

H.264, formally known as Advanced Video Coding (AVC), was first released in 2003. Over two decades later, it remains the most widely supported video codec in existence. Every browser, every phone, every streaming box, every editing tool understands H.264.
Every browser supports H.264 playback. Every video platform accepts H.264 uploads. Every smartphone has dedicated H.264 hardware decoders that handle playback without breaking a sweat. For a 10-minute 1080p video, H.264 typically produces files around 150-250 MB at good quality settings.
H.264 is patented technology managed by the MPEG-LA licensing pool. However, the licensing costs are built into the hardware you already own, so end users and most content creators never deal with fees directly.

H.265 (HEVC) — The Efficient Successor

H.265, also known as High Efficiency Video Coding (HEVC), was standardized in 2013 with one goal: cut bitrates in half compared to H.264 at the same quality. In practice, it delivers 25-40% smaller files — not quite the 50% theoretical maximum, but a significant improvement.
From testing 100 clips across different content types, H.265 averaged 33% smaller files than H.264. The savings are most dramatic with 4K content, where a 45-minute episode might drop from 4.5 GB (H.264) to 2.9 GB (H.265).
The downsides are real. H.265 has a fragmented and expensive licensing landscape. Browser support is inconsistent — Safari supports it natively but Chrome only added hardware-accelerated HEVC in late 2022, and it still requires specific conditions. Firefox does not support it at all on some platforms.
Despite these challenges, H.265 is deeply entrenched in the Apple ecosystem. iPhones record video in HEVC by default. Apple TV and Apple devices decode it in hardware. If your workflow is Apple-centric, H.265 is the natural codec choice.

AV1 — The Open-Source Future

AV1 was developed by the Alliance for Open Media (AOMedia), a consortium of tech giants including Google, Apple, Amazon, Netflix, Meta, and Mozilla. The entire codec is royalty-free and open-source, solving the licensing headaches that plague H.265.
In terms of compression, AV1 delivers. It produces files roughly 30% smaller than H.265 and 50% smaller than H.264 at equivalent quality. For streaming platforms serving millions of users, those savings translate directly to lower CDN bills.
The primary drawback is encoding speed. Software AV1 encoding is extremely slow — 50-100x slower than H.264 for comparable quality settings. Hardware AV1 encoders are emerging but not yet widespread. What most people do not realize is that decoding is also more demanding, though dedicated AV1 hardware decoders in recent chips (Apple M3+, Intel 12th gen+, AMD RDNA 3+) have largely solved this.

Real-World File Size Comparison

To give concrete numbers, here is what a typical 10-minute 1080p video looks like across codecs. H.264 at CRF 23: approximately 200 MB. H.265 at CRF 28: approximately 130 MB. AV1 at CRF 30: approximately 95 MB. Same visual quality, dramatically different file sizes.
For 4K content, the savings scale proportionally. A 30-minute 4K clip might be 3.5 GB in H.264, 2.2 GB in H.265, and 1.5 GB in AV1. When you are storing thousands of hours of video, these differences compound into significant cost savings.

Compatibility Breakdown

H.264 works everywhere. Every browser, every device, every platform accepts it. Market coverage is effectively 100%.
H.265 has split support. Safari and Apple devices handle it natively. Chrome supports hardware HEVC on compatible systems. Firefox support varies by platform. About 75% of web users can play H.265 without issues.
AV1 is supported in Chrome, Firefox, Edge, and newer Safari versions. About 85% of web traffic can play AV1, and this number climbs as older devices cycle out. YouTube, Netflix, and Twitch already use AV1 for delivery to supported clients.

Which Codec Should You Use?

For maximum compatibility and zero headaches: use H.264. It plays everywhere without exception. This is the right choice for downloadable content, email attachments, and situations where you cannot control the playback device.
For Apple-centric workflows and 4K content: H.265 saves 25-40% on file size with good hardware support across Apple devices. The real difference shows on 4K — a two-hour movie in H.264 at 4K might be 25 GB, versus 16 GB in H.265.
For web streaming and future-proofing: AV1 offers the best compression and zero licensing costs. If you can afford the encoding time and your audience uses modern browsers, AV1 is the most efficient choice available.
For social media uploads: stick with H.264. Platforms like Instagram, TikTok, and Twitter re-encode your video anyway. Uploading in H.264 ensures the platform gets a clean source to work with.

How Codecs Relate to Container Formats

A common source of confusion is the difference between a codec and a container. H.264 video goes inside MP4 or MKV containers. AV1 video goes inside WebM or MP4 containers. The container is the wrapper; the codec is the actual compression algorithm.
If you need to convert between container formats, you can convert MKV to MP4 or convert WebM to MP4 without re-encoding the video — just repackaging it. This takes seconds rather than minutes.

Key Takeaways

H.264 is the safe universal choice with 100% device coverage. H.265 saves 25-40% on file size but has licensing complexity and inconsistent browser support. AV1 offers the best compression (50% smaller than H.264) and is royalty-free, but encoding is slow. For web delivery, consider serving AV1 with an H.264 fallback. For local storage and Apple workflows, H.265 is the sweet spot between compression and compatibility.
Browse All Posts