H.264 vs. H.265: Which to Use When Compressing a Video
The two most common video codecs, explained in plain terms — what actually changes between them, and which one to pick when you're compressing a video for TikTok or Reels.
H.264 and H.265 (also called HEVC) are both video codecs — the method used to shrink a video file down for storage or upload. The difference isn't really about which one is "better"; it's a specific tradeoff between file size, compatibility, and how much processing it takes to create the file.
The actual difference
| H.264 | H.265 / HEVC | |
|---|---|---|
| File size at equal quality | Larger | Roughly 40-50% smaller |
| Device compatibility | Near-universal — every platform plays it | Good on modern devices, inconsistent on older ones |
| Compression time | Faster to encode | Slower — more processing per frame |
| Best for | Maximum compatibility, quick exports | Smaller files when quality matters and playback devices are modern |
Which to pick for short-form upload
For TikTok, Reels, or Shorts specifically, the practical answer leans H.264 by default — not because it's higher quality, but because it guarantees the file behaves the same everywhere it gets shared, re-uploaded, or opened by a collaborator. H.265 is worth reaching for when file size is the actual constraint — a slow upload connection, limited device storage, or sending a long export to someone else.
If your export tool offers both, test file size before assuming
The gap between the two isn't identical on every piece of footage — high-motion, high-detail clips tend to show a bigger H.265 size advantage than simple, static shots. A quick side-by-side export on your actual footage is more reliable than a general rule.
FAQ
Does TikTok re-compress my video anyway, so does the codec even matter?
Will an H.265 file play on every device?
Is H.265 always better quality than H.264?
Related posts
How to Slow Down Just Part of a Video, Not the Whole Clip
You don't need two separate clips to slow down one moment and keep the rest at normal speed — here's the actual technique, and why cutting the clip in half is the harder way to do it.
Beauty Camera Filters That Don't Look Like Filters
The difference between a beauty filter that reads as skincare and one that reads as obviously fake — the specific styles worth using and what to avoid.
How to Remove a Photo Background for Free
Cutting a subject out of its background without paying for Photoshop — what actually determines a clean edge, and where the free tools fall short of the paid ones.
How to Do a Speed Ramp Edit (Free)
Speed ramping — slow, fast, slow again, all in one clip — explained without the jargon: what a speed curve actually is, the patterns worth knowing, and how to do it for free.