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

Choosing between H.264 and H.265 is one of the most common decisions anyone working with video faces. H.264 (also called AVC) has been the universal standard since 2003. H.265 (also called HEVC) arrived in 2013 promising the same quality at half the file size. But that efficiency comes with real trade-offs in compatibility, encoding speed, and hardware requirements.

This guide explains the differences in plain language, with specific numbers you can use: exact bitrate recommendations, file size comparisons, device compatibility lists, and practical workflows for streaming, editing, archiving, and sharing.

Key Takeaways

  • Best default choice: H.264 / AVC — works on virtually every device and browser without extra setup.
  • Best for smaller files: H.265 / HEVC — produces files roughly 40-50% smaller at the same quality, ideal for 4K and storage.
  • Best future-proof option: AV1 — royalty-free and even more efficient than H.265, but slower to encode and still gaining device support.
  • Watch out for: Older devices, budget PCs, and some web browsers cannot play H.265 without extra software or hardware.
Before you start: Do not convert your entire video library to H.265 automatically. If your audience uses older phones, office PCs, older smart TVs, or watches through web browsers, H.264 prevents playback failures. H.265 is excellent when you control the playback environment or target modern devices.

What H.264 and H.265 Actually Do

Both codecs are compression standards. Their job is to make video files smaller while keeping them watchable. Without compression, a single minute of 1080p video would consume roughly 6 gigabytes of storage. Codecs squeeze that down to manageable sizes by removing redundant visual information.

H.264 (AVC — Advanced Video Coding) was released in 2003 and became the most widely used video codec in the world. It processes video in fixed 16×16 pixel blocks called macroblocks. It supports resolutions up to 4K and is built into virtually every device, browser, and video platform.

H.265 (HEVC — High Efficiency Video Coding) was released in 2013 as the direct successor. Its key innovation is flexible block sizes: instead of fixed 16×16 blocks, it uses Coding Tree Units (CTUs) ranging from 16×16 up to 64×64 pixels. Larger blocks compress uniform areas (like a blue sky) more efficiently, while smaller blocks preserve detail in complex areas (like facial features). This flexibility is why H.265 achieves roughly 50% better compression.

When Your Codec Choice Actually Matters

The codec you choose affects five practical areas:

  • File size and storage: H.265 cuts file sizes by 40-50%. For a 100-hour 4K video library, that is the difference between 900 GB (H.264) and 540 GB (H.265).
  • Streaming bandwidth: A 1080p stream needs 4-8 Mbps in H.264 but only 2-4 Mbps in H.265. For viewers on slower connections, this determines whether the video plays smoothly or buffers.
  • Device compatibility: H.264 plays on virtually everything made since 2005. H.265 requires hardware from roughly 2017 onward for smooth playback.
  • Encoding time: Software H.265 encoding takes 2-10 times longer than H.264. A one-hour video that encodes in 20 minutes with H.264 might take 1-3 hours with H.265.
  • Battery life: Devices without hardware H.265 decoding drain battery rapidly and may run hot when playing HEVC content.

The Best Options Compared

1. H.264 / AVC — best compatibility

Best for: Universal playback Use case: YouTube uploads, email sharing, client previews, web players, older devices Cost: Free to use

H.264 is the safest choice when you need your video to play everywhere without asking viewers to install anything. It works natively in Chrome, Firefox, Safari, and Edge. It plays on iPhones, Android phones, smart TVs, game consoles, and computers going back more than a decade.

The trade-off is larger file sizes. A 10-minute 1080p video encoded at good quality might be 800 MB in H.264 versus 450 MB in H.265. For streaming, that means higher bandwidth costs and more buffering risk for viewers with slower internet.

When to choose H.264:

  • You are uploading to YouTube, Vimeo, or social media (most platforms optimize H.264 best)
  • You are sharing videos with clients, family, or coworkers who may have older devices
  • You need fast encoding for live streaming or quick turnaround
  • You are creating videos for websites or web-based courses

Pros

  • Plays on virtually every device and browser without plugins
  • Fast encoding, even on older or budget hardware
  • Universally accepted by streaming platforms
  • Lower CPU and battery usage during playback

Cons

  • Files are 40-50% larger than H.265 at the same quality
  • Higher bandwidth needed for streaming
  • Less efficient for 4K and 8K content
  • Limited HDR support compared to H.265

2. H.265 / HEVC — best file-size savings

Best for: Smaller files, 4K, archiving Use case: 4K video, phone storage, NAS backups, modern smart TVs, Apple ecosystem Cost: Free to use; patent licensing applies to commercial encoders

H.265 shines when file size matters. It is the reason Netflix can stream 4K at 15 Mbps instead of 25 Mbps. It is why an iPhone can record an hour of 4K video without filling the storage. The efficiency comes from smarter compression, but that intelligence requires more processing power.

Hardware support is the key factor. Modern devices handle H.265 smoothly because they have dedicated decoding chips. But older laptops, budget Android phones, and some web browsers struggle. Windows users may need to install the HEVC Video Extensions from the Microsoft Store (usually $0.99) to play H.265 in some apps.

When to choose H.265:

  • You are recording 4K video on a modern phone or camera
  • You are archiving a large video library and want to save disk space
  • Your audience uses Apple devices (iPhones, iPads, Apple TV) or modern smart TVs
  • You are delivering video through a platform that supports adaptive bitrate streaming with HEVC

Pros

  • 40-50% smaller files at the same visual quality
  • Native support for HDR10, Dolby Vision, and HLG
  • Essential for practical 4K and 8K delivery
  • Lower bandwidth costs for streaming at scale

Cons

  • Incompatible with older devices and some browsers
  • Software encoding is 2-10x slower than H.264
  • Complex patent licensing situation
  • May require paid codec extensions on Windows

3. AV1 — best future-facing efficiency

Best for: Future-proof web streaming Use case: YouTube streaming, bandwidth-constrained delivery, royalty-free projects Cost: Free and royalty-free

AV1 is a newer codec developed by the Alliance for Open Media (including Google, Mozilla, Netflix, and Microsoft). It matches or exceeds H.265 compression efficiency without patent licensing fees. YouTube already serves AV1 to compatible browsers and devices.

The catch is encoding speed. Software AV1 encoding is currently very slow — often 20-50x slower than H.264. Hardware support is growing: Intel Arc GPUs, NVIDIA RTX 40-series, and newer mobile chips include AV1 encoders. For now, AV1 is best for platforms that handle the heavy encoding server-side, or for creators with modern hardware who want maximum efficiency without licensing concerns.

When to choose AV1:

  • You are streaming through YouTube and want the most efficient delivery
  • You want royalty-free compression without patent worries
  • You have hardware that supports AV1 encoding (RTX 40-series, Intel Arc)

Pros

  • Royalty-free and open standard
  • Better compression than H.265 in many cases
  • Strong industry backing from major tech companies
  • No licensing fees for commercial use

Cons

  • Very slow software encoding
  • Limited hardware encoder support (improving rapidly)
  • Not yet universal on older devices
  • Fewer editing tools support it natively

4. ProRes / DNxHR — best editing intermediate

Best for: Professional video editing Use case: Editing timelines, color grading, multi-generation workflows Cost: Free (DNxHR); ProRes requires Apple ecosystem or licensed tools

These are not delivery codecs — they are editing codecs. They use minimal compression to preserve quality through multiple editing passes. A ProRes file might be 10x larger than an H.264 file, but it scrubs smoothly in your editing timeline and survives color grading without banding.

Use ProRes or DNxHR during editing, then export to H.264 or H.265 for final delivery. Never deliver ProRes to viewers unless they specifically request it for broadcast or cinema workflows.

Pros

  • Visually lossless quality preserves editability
  • Smooth timeline playback in professional editors
  • Handles color grading and effects without degradation

Cons

  • Massive file sizes (10-20x larger than H.264)
  • Not suitable for web delivery or streaming
  • ProRes encoding limited on Windows without third-party tools

Side-by-Side Comparison

FeatureH.264 (AVC)H.265 (HEVC)AV1
Release year200320132018
Compression vs H.264Baseline~50% better~50% better
Typical 1080p bitrate4-8 Mbps2-4 Mbps2-4 Mbps
Typical 4K bitrate15-25 Mbps8-15 Mbps8-15 Mbps
Max resolution4K8K8K
HDR supportLimitedHDR10, Dolby Vision, HLGHDR10+
Browser supportUniversalSafari, Edge (limited elsewhere)Chrome, Firefox, Edge
Hardware decodeUniversal2017+ devices2020+ devices
Software encode speedFast2-10x slower20-50x slower
LicensingPatented, widely licensedPatented, complex poolsRoyalty-free
Best forCompatibility, live streaming4K, storage, Apple ecosystemFuture web streaming

Real-World File Size Examples

These numbers assume good-quality encoding settings (not maximum compression):

Content typeH.264 sizeH.265 sizeSavings
10-minute 1080p YouTube video~800 MB~450 MB44%
1-hour 1080p movie~2.7 GB~1.5 GB44%
1-hour 4K movie~11 GB~6.5 GB41%
100-hour video library (4K)~900 GB~540 GB40%

Picking by Use Case

YouTube and social media uploads

Use H.264. YouTube processes H.264 most reliably. While YouTube accepts H.265, its ingestion pipeline is optimized for H.264. Upload H.264 at a high bitrate (8-12 Mbps for 1080p, 35-45 Mbps for 4K) and let YouTube handle compression for different quality levels.

iPhone and Android video recording

Use H.265 (HEVC) for 4K. Modern phones record H.265 by default for 4K because it saves storage space. If you plan to edit on a computer, check that your editing software supports H.265. If you need to share the video with someone who has an older device, convert to H.264 first.

Live streaming on Twitch or YouTube Live

Use H.264. Real-time encoding demands fast processing. H.264 encodes in real time on most modern CPUs and GPUs. H.265 live streaming requires dedicated hardware encoders (NVENC on RTX cards, QuickSync on Intel) and may not be accepted by all platforms.

Archiving a video collection

Use H.265 for the master copies. The 40-50% space savings add up quickly for large libraries. Keep H.264 copies only for videos you share frequently. Use a tool like HandBrake or FFmpeg with the "slow" preset for best quality-per-gigabyte.

Sharing videos with clients or family

Use H.264 unless you know their devices support H.265. A video that does not play creates more problems than a slightly larger file. When in doubt, H.264 is the safest default.

How to Check If Your Device Supports H.265

Before committing to H.265, verify playback support on your target devices:

  • Windows: Try playing an H.265 MP4 in the Movies & TV app. If it fails, install the HEVC Video Extensions from the Microsoft Store ($0.99). VLC Media Player plays H.265 without this extension.
  • Mac: macOS has supported H.265 since macOS High Sierra (2017). QuickTime and Safari handle it natively.
  • iPhone/iPad: iOS 11 and later support H.265. iPhones record 4K in HEVC by default (configurable in Settings > Camera > Formats).
  • Android: Android 5.0+ supports H.265, but performance varies by manufacturer and chipset. Samsung Galaxy S7 and newer handle it well.
  • Smart TVs: Most 4K TVs from 2017 onward support H.265. Check your TV specs for "HEVC" or "H.265" decoding.
  • Browsers: Safari and Microsoft Edge support H.265 natively. Chrome and Firefox do not (as of 2026) without extensions or special flags.

Encoding Settings That Actually Matter

Whether you use H.264 or H.265, these settings have the biggest impact on your results:

  • Preset/Speed: Slower presets produce better quality at the same bitrate. In HandBrake or FFmpeg, "slow" or "veryslow" gives the best results for archived content. "fast" or "medium" is better for live streaming where encoding speed matters.
  • Bitrate: For H.264, use 4-8 Mbps for 1080p and 15-25 Mbps for 4K. For H.265, cut those numbers roughly in half. Use constant quality (CRF) mode instead of fixed bitrate when file size is flexible — CRF 18-20 is visually transparent for most content.
  • Profile and Level: For maximum compatibility, use "High" profile, Level 4.2 for 1080p60 or Level 5.1 for 4K in H.264. For H.265, "Main" profile is the safest default.
  • Hardware encoding: NVIDIA NVENC (GTX 1650+), Intel QuickSync (6th-gen+), and AMD AMF (RX 5000+) all support H.265 hardware encoding. Hardware encoders are much faster than software but sacrifice 5-15% compression efficiency.

Step-by-Step: Converting Between Codecs

If you need to convert H.265 to H.264 for compatibility, or H.264 to H.265 to save space:

  1. Download HandBrake (free, cross-platform) or install FFmpeg.
  2. For H.264 to H.265 (smaller files): In HandBrake, set Video Encoder to "H.265 (x265)" and Preset to "Slow." Use CRF 20-22 for excellent quality. A 2-hour 1080p movie will take 2-6 hours to encode depending on your CPU.
  3. For H.265 to H.264 (compatibility): Set Video Encoder to "H.264 (x264)" and Preset to "Medium." Use CRF 18-20. Encoding will be faster than the reverse conversion.
  4. Always keep the original file until you confirm the new file plays correctly on your target devices.
  5. Test one file first. Do not batch-convert your entire library until you verify quality and compatibility.

Common Mistakes to Avoid

Converting everything to H.265 blindly: If your audience includes older devices or web browsers, H.265 creates more problems than it solves. Convert only when you have verified playback support.

Using too low a bitrate: Both codecs look terrible at starvation bitrates. A 1080p H.265 video at 1 Mbps will look worse than an H.264 video at 4 Mbps. Give the codec enough data to work with.

Ignoring hardware decoding: Playing H.265 on a device without hardware support drains battery and causes stuttering. Check device specs before distributing HEVC content.

Re-encoding already compressed video: Converting an H.264 YouTube download to H.265 does not recover lost quality. It only adds another generation of compression artifacts. Always encode from the highest-quality source you have.

Forgetting about audio: Codecs handle video only. Make sure your audio codec (usually AAC) is compatible with your target players. H.265 video with DTS audio may not play on devices that lack DTS support.

Frequently Asked Questions

Is H.265 better quality than H.264?

At the same bitrate, H.265 usually delivers better visual quality with fewer compression artifacts. At the same visual quality, H.265 typically produces files 40-50% smaller than H.264. However, H.264 remains easier to play on older devices and in web browsers.

Why is H.265 not always supported?

H.265 requires newer hardware decoding and has complex patent licensing. Many modern devices support it, but older browsers, PCs, and smart TVs may struggle. Windows users often need the $0.99 HEVC Video Extensions from the Microsoft Store.

Should I upload H.264 or H.265 to YouTube?

YouTube accepts both, but H.264 is the safer default choice because it is universally supported and predictable. H.265 can work, but H.264 avoids unnecessary compatibility surprises and reprocessing delays.

Is H.265 good for 4K video?

Yes. H.265 is especially useful for 4K because it reduces bandwidth needs from 15-25 Mbps (H.264) to 8-15 Mbps while preserving detail. That is why Netflix, Apple TV+, and iPhones use HEVC for high-resolution content.

Can VLC play H.265?

Yes, VLC 3.0 and newer can play H.265/HEVC on most systems. Performance depends on whether your CPU or GPU has hardware decoding support. On older systems without hardware HEVC decoding, playback may stutter or use excessive battery.

How much smaller are H.265 files really?

In real-world use, H.265 files are typically 40-50% smaller than H.264 at the same visual quality. A 1-hour 1080p movie might be 2.7 GB in H.264 versus 1.5 GB in H.265. Savings vary based on content complexity and encoder settings.

Does H.265 work in web browsers?

Support is limited. Safari and Microsoft Edge handle H.265 natively. Chrome and Firefox do not support H.265 playback without extensions or special configuration as of 2026. For web video, H.264 remains the universal standard.

The Verdict

For most beginners and general use, H.264 remains the best default choice because it works everywhere without extra setup. It is the safest option for sharing, uploading, and streaming when you do not control your audience's devices.

Choose H.265 when file size, 4K resolution, or storage efficiency matters more than universal compatibility. It is ideal for archiving, phone recording, and delivering to modern Apple or smart TV ecosystems.

For future-proofing, keep an eye on AV1. It offers similar efficiency to H.265 without licensing costs, and support is growing rapidly across hardware and platforms.

For more background, see our best free video converters and FFmpeg review. For an external technical reference, check the ITU H.265 specification.

Next step: Test both codecs with a short clip on your own devices. Encode the same 2-minute video in H.264 and H.265, compare file sizes, and verify playback on your phone, computer, and TV. Your specific hardware and workflow matter more than any general recommendation.