Skip to content
Video ToolsBeginner7 min read

H.264 vs H.265: Which Should You Use to Compress Video?

Every video you compress passes through a codec, and for most people the choice comes down to two: H.264, the veteran that plays on everything, and H.265, the successor that makes files dramatically smaller. Neither is simply "better" — they sit at opposite ends of a trade every compression job makes between size and reach. Here is the whole decision, in plain language.

Written by Monu Sagar ·

Video Compressor

What a codec actually is

A codec is the mathematical recipe for describing moving pictures with as few bits as possible. Instead of storing every frame like a photo, it stores how each frame differs from its neighbours — which blocks moved where, what changed, what stayed put. The cleverer the recipe, the fewer bits the same pictures need.

H.264 (also called AVC) was standardised in 2003 and became the most universally supported video format in history: hardware decoders for it sit in effectively every phone, TV, console and browser made since the late 2000s. H.265 (HEVC) arrived a decade later with a smarter toolbox — larger and more flexible block structures, better motion prediction, better entropy coding — aimed squarely at the 4K era.

The size difference, honestly stated

At the same visible quality, H.265 typically produces files 30–50% smaller than H.264. The advantage is largest on high-resolution, detailed footage — 4K gains more than 1080p, which gains more than a small clip — because H.265’s bigger coding blocks pay off most when there is a lot of picture to describe. On short, low-resolution, already-heavily-compressed clips the gap narrows, sometimes to little at all.

The savings also compound with size-targeted compression. If you must hit a hard byte budget — 25 MB for email, 16 MB for a chat app — the codec decides how much quality survives inside that budget. A target that forces visible artifacts in H.264 often looks clean in H.265, which is why the video compressor’s Target size mode automatically prefers H.265 when the budget is tight.

The compatibility trade

H.264 plays everywhere — that is its superpower, and it has not expired. H.265 hardware decoding became common in phones, TVs and tablets around 2015–2016, and every current iPhone, Android flagship, smart TV and editing suite handles it natively. The stragglers are old office PCs, budget devices, some Linux setups without codec packs, and some web platforms that only accept H.264 uploads.

One packaging detail causes most "it won’t play on my Mac" complaints: HEVC inside an MP4 must carry the hvc1 compatibility tag for Apple software, and many encoders write the alternative hev1 tag instead. CompressKits writes hvc1, so the files it produces play in QuickTime, Safari and iOS as long as the device itself supports HEVC.

Treat all of this as guidance rather than guarantees — device fleets vary. When the file is going to a person or platform you know nothing about, H.264 is the courteous default.

A simple decision rule

Pick H.265 when you control the destination: your own library, modern devices, YouTube (which re-encodes anyway), archives where storage is the cost that matters, or any 4K footage — the 4K workflow practically assumes it. Expect the encode itself to take longer; the smaller file is bought with computation.

Pick H.264 when reach beats size: files sent to unknown recipients, uploads to systems with strict format lists, anything that must play on a projector, an old laptop or an embedded player. The size penalty is real but rarely fatal — H.264 with a good preset is still a massive improvement over an uncompressed source.

On CompressKits the choice is one dropdown on the compressor, and the size prediction updates as you switch — so you can see exactly what the H.265 discount is worth for your specific file before committing.

Step by step

  1. 01

    Decide who will play the file

    Known modern devices or your own archive → H.265. Unknown recipients, old hardware or strict upload forms → H.264.

  2. 02

    Pick the codec in the compressor

    Open the video compressor, choose the codec in the settings step, and watch the size prediction update for your file.

  3. 03

    Compress and spot-check

    Run the compression, then play the result on the most demanding target device before sharing widely.

Good to know

Frequently asked questions

Is H.265 always smaller than H.264?

At matched quality it is almost always smaller, typically by 30–50%, with the biggest gains on high-resolution detailed footage. On tiny or already heavily compressed clips the difference can shrink to a few percent.

Why do some devices refuse to play H.265 video?

HEVC decoding needs either hardware support (common from about 2015–2016 onward) or software decoders the platform may not ship by default. Older PCs and budget devices are the usual refusers; the fix is re-encoding to H.264.

Is H.265 slower to encode?

Yes — the smaller file is paid for with computation, so H.265 encodes run noticeably slower than H.264 at comparable settings. For server-side compression that usually just means a longer progress bar, not a worse result.

Which codec should I use for YouTube or social uploads?

Either works — platforms re-encode everything into their own formats. H.265 gets your upload done faster on slow connections because the file is smaller; H.264 is fine when compatibility with the uploader matters more.

What about AV1 and VP9?

They are the royalty-free cousins: VP9 roughly matches H.265, and AV1 beats both but encodes very slowly and needs quite recent hardware to decode. For files you share as files, H.264 and H.265 remain the practical pair today.

Related tools

Related guides