Guide
H.264 vs H.265 vs AV1
The short answer
H.264 plays on everything and should be your default for any video you send to someone. H.265 makes files roughly 30–50% smaller but is patent-encumbered and unevenly supported. AV1 is smaller again and royalty-free, but slow to encode and only hardware-decoded on recent devices.
By Suprabhat Updated How we write these
H.264 — the one that always works
Released in 2003 and still the most compatible video codec ever made. Every phone, television, browser, editor and set-top box decodes it in hardware. If a video has to play somewhere you do not control, this is the answer and the decision takes no thought.
The cost is efficiency: at the same visible quality it produces the largest files of the three. For a short clip that is irrelevant. For a two-hour film it is gigabytes.
H.265 / HEVC — smaller, with strings
HEVC delivers roughly the same quality in 30 to 50 per cent less space, which is why phones record in it and why streaming services adopted it. It is also why an iPhone video sometimes will not play on a Windows laptop: the patent licensing that pays for HEVC has kept it out of some software entirely.
Use it when you control the players — your own devices, an Apple-only workflow, a home media library. Avoid it for anything you are sending to someone whose setup you do not know.
AV1 — the open one
AV1 is royalty-free and more efficient than HEVC, particularly at low bitrates, which is where streaming platforms care most. YouTube, Netflix and others serve it widely.
Two practical catches. Encoding is slow — dramatically so compared with H.264 — which matters when you are converting your own files rather than running a datacenter. And hardware decoding only arrived in devices from roughly 2020 onwards; on older hardware playback falls back to software and drains the battery.
How to choose
Ask where the file is going. Somewhere you do not control — H.264 in an MP4, without exception. Your own devices or a media library — HEVC, for the storage saving. Your own website, with a fallback — AV1 or VP9 in WebM, alongside an H.264 MP4 for everything else.
Bitrate matters more than codec choice for how a video looks. A generously encoded H.264 file beats a starved AV1 one every time. If a video needs to reach a specific size, Compress Video works backwards from that number instead of making you guess at settings.
Questions
Is AV1 better than H.265?
It compresses better, especially at low bitrates, and carries no licence fees. H.265 is currently more widely hardware-decoded on older devices and far faster to encode.
Which codec should I use for YouTube?
Upload H.264 in an MP4 at a generous bitrate. YouTube re-encodes everything you send anyway, so give it the cleanest source you can rather than a small file.
Why is my H.265 video not playing on Windows?
Windows does not ship an HEVC decoder by default because of licensing. Converting the video to H.264 avoids the problem entirely.