H.264 vs HEVC (H.265): what's the difference?
Two common ways of compressing video. Why your phone uses one, why some devices can't play it, and what to do about it.
Container vs codec
A file like .mp4 or .mov is a container: a box holding video, audio and some information about them. The codec is the method used to compress the video inside. Two files can both end in .mp4 and still use different codecs — which is why one plays and the other does not.
H.264 (also called AVC)
H.264 has been the standard for online video since the late 2000s. Almost every phone, computer, browser, smart TV, game console, video editor and website can play it, usually with hardware support that keeps playback smooth and battery use low. Its weakness is size: for the same quality it needs more data than newer codecs.
HEVC (also called H.265)
HEVC is the successor to H.264. It produces similar quality at roughly half the file size, which is why iPhones and many Android phones record in HEVC by default to save storage. Its weakness is compatibility: some Windows computers need an extra extension to play it, many older devices and TVs cannot play it at all, some browsers do not support it, and some editing programs and upload forms reject it.
Side by side
| H.264 | HEVC (H.265) | |
|---|---|---|
| File size at the same quality | Larger | About half |
| Plays on almost everything | Yes | No — newer devices only |
| Plays in all web browsers | Yes | Not all |
| Used by iPhone camera | “Most Compatible” setting | Default (“High Efficiency”) |
| Best for | Sharing, uploading, editing anywhere | Storing lots of video on your own devices |
How to tell which one you have
On a Mac, select the file and choose Get Info; the codec appears under More Info. On Windows, the Properties dialog often does not show it — if the video plays sound with a black picture, it is very likely HEVC. On an iPhone, any video recorded with the default camera settings since 2017 is HEVC. Our tools detect it automatically.
If a video won't play
An HEVC video that shows only sound, a black screen or an error on another device usually needs converting to H.264. Use MOV to MP4 for iPhone videos or Convert to MP4 for any other file. It produces a widely compatible MP4 that plays almost everywhere, and it runs in your browser, so the video is not uploaded.
Which should I record in?
If you mostly watch videos on your own phone and back them up to the cloud, keep HEVC — it saves a lot of space. If you often send videos to people on Windows or Android, to schools or workplaces, or upload them to forms, H.264 (“Most Compatible” on iPhone: Settings → Camera → Formats) avoids problems at the cost of bigger files. You can always convert later, so there is no wrong choice.
Other names you may see
- VP9 — Google's codec, used by YouTube and often stored in WebM files. Plays in all major browsers.
- AV1 — a newer, royalty-free codec that is even more efficient than HEVC. Supported by recent browsers and devices; common on streaming services.
- WebM — a container, usually holding VP8, VP9 or AV1. Common for screen recordings made in browsers.
- AAC — the usual audio codec inside MP4 and MOV files.
Does converting HEVC to H.264 lose quality?
A little, because the video has to be re-made, but at a high-quality setting the difference is very hard to see. The file usually gets bigger, because H.264 needs more data for the same look.
Why is my converted file bigger?
Because H.264 is less efficient than HEVC. That is the price of compatibility. If size matters, compress the MP4 afterwards.