Is HEVC (H.265) Really 50% Smaller Than H.264? x264 vs x265 File Size Savings at Equal VMAF (medium and slow presets, by Video Type)
We encoded four 10-second 1080p25 clips with x264 and x265 (medium and slow presets) at six quality levels each, interpolated the curves, and compared file size at average VMAF 90, 93 and 95 using the same preset on both sides. Across 24 comparisons, x265's savings ranged from −0.2% to 39.1% at medium (simple average 22.3%) and from 29.9% to 51.2% at slow (simple average 37.8%). Only one comparison exceeded 50%.
The test PC, FFmpeg and VMAF settings shared by every lab article are collected on the methodology page. Methodology (common to all tests)
"HEVC is half the size of H.264" mostly did not hold in this data. We compared x264 and x265 at the same average VMAF of 90, 93 and 95, using the same preset on both sides, for 24 comparisons in total. Only 1 of them (rush_hour, slow, VMAF 95: 51.2%) saved more than 50%. x265's savings ranged from −0.2% to 39.1% at medium (simple average of 12 comparisons: 22.3%; a negative value means x265 came out larger) and from 29.9% to 51.2% at slow (simple average of 12: 37.8%), and they varied a lot from video to video. The bigger savings at slow come from x265 improving more with the slower preset (at VMAF 93, x265 slow is 14.0–23.8% smaller than x265 medium, while x264 slow is only 0.4–4.6% smaller than x264 medium). The price is time: x265 used 1.75–3.74x the CPU time of x264.
Why we ran this
"H.265 files are half the size of H.264" is a claim you hear all the time. None of the earlier tests on this site checked it directly. The CRF equivalence table only translated x264 CRF values to other codecs' CRF values, and in VP9 vs HEVC x264 appeared only as a baseline. This article checks whether "half" is true, and if not, what the real percentage is at equal quality. The preset matters too. It is not clear which preset the rule of thumb assumes, so we paired medium with medium and slow with slow.
We did not encode to hit VMAF 90, 93 or 95. For each encoder and preset, we connected the points from six CRF values and calculated each target from the two points that bracket it. In many places the VMAF gap between the two neighboring points is more than 10 points (20 of 24 comparisons on the x264 side; the largest is 22.7 points for x265 slow, blue_sky, VMAF 90), so the interpolation error can be large. All 24 targets fell inside the measured range, so we did not extrapolate.
How we measured
VMAF is a quality metric developed by Netflix. It compares the original and the encoded result frame by frame and scores them from 0 to 100. The closer to 100, the harder it is to tell the encode from the original. In this article, the average score over 250 frames (vmaf_mean) is the yardstick for "equal quality." The bottom 5% (p5) is the score of the worst 5% of frames.
Encoder settings
Input and output paths are omitted. We substituted the values above for Q one at a time. CRF means different things in different codecs, so we did not compare at the same number; the x265 values are set 2 higher.
How we interpolated
For a target VMAF T, we found the two neighboring measured points that bracket it (mean VMAF v1 > v2, bitrates b1 and b2, CPU times t1 and t2) and computed f = (v1 − T) ÷ (v1 − v2). Then bitrate = b1 × (b2/b1)^f and CPU time = t1 × (t2/t1)^f (log-scale interpolation). Bitrate is the kbps column in the CSV, and for videos of the same length it is proportional to file size, so savings = (1 − x265 kbps ÷ x264 kbps) × 100 equals the file size savings. We paired the same presets (x264 medium ↔ x265 medium, slow ↔ slow). If a target VMAF fell outside the range of measured points, we decided not to extrapolate and to mark it "not computable"; that did not happen this time.
Test clip sources and licenses
All four clips are 1080p25 videos made by TUM / Taurus Media Technik (2001), downloaded from the Xiph.org derf collection (media.xiph.org/video/derf/y4m/). The accompanying ReadMe_1080p.txt states "Restrictions of use: No restrictions" and "Copyright: No Copyright" (checked 2026-11-08).
Per-clip results (raw data)
In the curves, the horizontal axis is bitrate and the vertical axis is VMAF. At the same height (same VMAF), the encoder and preset whose curve is further left reached the same score at a smaller file size. blue_sky saturates above VMAF 99 at low CRF, so the useful part for comparison is the high-CRF range. Speed fluctuates because the jobs ran at IDLE priority, so treat it as a rough guide only.
blue_sky — blue sky and tree branches
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 18 | 13,774.3 kbps | 99.98 | 100.00 | 41.95 | 17.38 | 41.4 |
| x264 (H.264) · preset medium | 24 | 4,535.6 kbps | 99.97 | 100.00 | 39.31 | 26.43 | 26.3 |
| x264 (H.264) · preset medium | 30 | 1,916.7 kbps | 98.22 | 93.78 | 36.15 | 37.06 | 20.1 |
| x264 (H.264) · preset medium | 36 | 961.5 kbps | 83.58 | 75.26 | 32.55 | 45.69 | 16.7 |
| x264 (H.264) · preset medium | 42 | 556.6 kbps | 59.49 | 49.50 | 28.78 | 49.47 | 15.4 |
| x264 (H.264) · preset medium | 48 | 359.8 kbps | 32.24 | 26.15 | 24.95 | 51.17 | 14.1 |
| x264 (H.264) · preset slow | 18 | 14,050.4 kbps | 99.98 | 100.00 | 41.97 | 8.26 | 70.6 |
| x264 (H.264) · preset slow | 24 | 4,423.4 kbps | 99.97 | 100.00 | 39.33 | 14.93 | 39.7 |
| x264 (H.264) · preset slow | 30 | 1,882.7 kbps | 98.31 | 94.25 | 36.19 | 22.37 | 28.1 |
| x264 (H.264) · preset slow | 36 | 942.1 kbps | 83.42 | 77.06 | 32.50 | 31.52 | 22.1 |
| x264 (H.264) · preset slow | 42 | 538.8 kbps | 58.32 | 50.52 | 28.61 | 39.89 | 19.2 |
| x264 (H.264) · preset slow | 48 | 358.2 kbps | 31.41 | 27.41 | 24.75 | 44.83 | 18.2 |
| x265 (HEVC) · preset medium | 20 | 8,874.1 kbps | 99.98 | 100.00 | 41.91 | 13.31 | 75.0 |
| x265 (HEVC) · preset medium | 26 | 3,362 kbps | 99.90 | 99.36 | 39.41 | 21.62 | 46.0 |
| x265 (HEVC) · preset medium | 32 | 1,420.9 kbps | 95.76 | 88.56 | 36.36 | 28.5 | 34.1 |
| x265 (HEVC) · preset medium | 38 | 638.4 kbps | 81.81 | 72.80 | 32.95 | 33.72 | 28.4 |
| x265 (HEVC) · preset medium | 44 | 276.2 kbps | 58.87 | 48.16 | 29.22 | 38.29 | 24.1 |
| x265 (HEVC) · preset medium | 50 | 109.6 kbps | 31.36 | 23.62 | 25.31 | 41.08 | 21.8 |
| x265 (HEVC) · preset slow | 20 | 10,808.7 kbps | 99.98 | 100.00 | 42.61 | 5.38 | 183.8 |
| x265 (HEVC) · preset slow | 26 | 3,949.9 kbps | 99.97 | 100.00 | 40.38 | 7.91 | 124.4 |
| x265 (HEVC) · preset slow | 32 | 1,653.1 kbps | 99.37 | 95.97 | 37.60 | 9.96 | 98.4 |
| x265 (HEVC) · preset slow | 38 | 736.6 kbps | 90.04 | 84.12 | 34.15 | 11.76 | 82.8 |
| x265 (HEVC) · preset slow | 44 | 301.3 kbps | 67.34 | 59.95 | 30.21 | 13.77 | 70.7 |
| x265 (HEVC) · preset slow | 50 | 150.5 kbps | 37.50 | 30.68 | 26.27 | 15.56 | 62.6 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 18 | 12,757.4 kbps | 99.40 | 97.15 | 42.27 | 14.46 | 52.9 |
| x264 (H.264) · preset medium | 24 | 4,063.8 kbps | 95.41 | 92.40 | 40.34 | 23.6 | 34.9 |
| x264 (H.264) · preset medium | 30 | 1,981.2 kbps | 84.21 | 81.33 | 37.85 | 32.81 | 27.3 |
| x264 (H.264) · preset medium | 36 | 1,054.6 kbps | 65.05 | 62.30 | 34.95 | 40.24 | 22.3 |
| x264 (H.264) · preset medium | 42 | 582 kbps | 39.30 | 36.57 | 31.70 | 44.46 | 18.4 |
| x264 (H.264) · preset medium | 48 | 327.9 kbps | 18.82 | 15.29 | 28.11 | 46.51 | 15.3 |
| x264 (H.264) · preset slow | 18 | 13,240.2 kbps | 99.47 | 97.25 | 42.24 | 6.96 | 88.7 |
| x264 (H.264) · preset slow | 24 | 3,938.3 kbps | 95.67 | 92.44 | 40.25 | 13.3 | 52.0 |
| x264 (H.264) · preset slow | 30 | 1,856.2 kbps | 83.87 | 80.92 | 37.64 | 20.65 | 37.2 |
| x264 (H.264) · preset slow | 36 | 962.1 kbps | 63.58 | 60.67 | 34.67 | 29.4 | 27.8 |
| x264 (H.264) · preset slow | 42 | 527.3 kbps | 38.25 | 35.21 | 31.39 | 37.83 | 23.3 |
| x264 (H.264) · preset slow | 48 | 307.3 kbps | 17.62 | 14.12 | 27.88 | 42.45 | 19.0 |
| x265 (HEVC) · preset medium | 20 | 6,375.6 kbps | 98.79 | 96.23 | 42.06 | 10.06 | 97.9 |
| x265 (HEVC) · preset medium | 26 | 2,415.2 kbps | 93.89 | 91.08 | 40.15 | 14.22 | 69.3 |
| x265 (HEVC) · preset medium | 32 | 1,164.4 kbps | 82.22 | 79.53 | 37.63 | 18.12 | 54.2 |
| x265 (HEVC) · preset medium | 38 | 570.8 kbps | 62.10 | 58.76 | 34.67 | 22.13 | 44.0 |
| x265 (HEVC) · preset medium | 44 | 264.1 kbps | 36.42 | 32.57 | 31.37 | 26.75 | 34.7 |
| x265 (HEVC) · preset medium | 50 | 161.9 kbps | 15.49 | 11.13 | 28.28 | 32.77 | 27.1 |
| x265 (HEVC) · preset slow | 20 | 6,863.1 kbps | 99.39 | 97.23 | 42.35 | 3.98 | 246.7 |
| x265 (HEVC) · preset slow | 26 | 2,533.9 kbps | 96.48 | 93.66 | 40.48 | 5.33 | 183.5 |
| x265 (HEVC) · preset slow | 32 | 1,223.5 kbps | 86.53 | 83.85 | 38.05 | 6.49 | 150.9 |
| x265 (HEVC) · preset slow | 38 | 604.3 kbps | 68.19 | 64.93 | 35.18 | 7.87 | 124.2 |
| x265 (HEVC) · preset slow | 44 | 281 kbps | 41.76 | 37.48 | 31.95 | 10.09 | 96.9 |
| x265 (HEVC) · preset slow | 50 | 209.3 kbps | 20.45 | 16.32 | 29.41 | 12.27 | 79.6 |
riverbed — riverbed (fine ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 18 | 38,282.7 kbps | 99.97 | 100.00 | 40.87 | 11.46 | 90.2 |
| x264 (H.264) · preset medium | 24 | 18,482 kbps | 99.74 | 98.74 | 37.60 | 13.04 | 80.1 |
| x264 (H.264) · preset medium | 30 | 9,188.1 kbps | 81.34 | 79.28 | 34.26 | 16.16 | 65.2 |
| x264 (H.264) · preset medium | 36 | 4,446.8 kbps | 52.61 | 49.61 | 30.79 | 19.51 | 47.9 |
| x264 (H.264) · preset medium | 42 | 1,889.2 kbps | 28.33 | 25.50 | 27.01 | 20.68 | 31.8 |
| x264 (H.264) · preset medium | 48 | 802.4 kbps | 21.17 | 18.40 | 24.75 | 20.91 | 25.3 |
| x264 (H.264) · preset slow | 18 | 39,379.1 kbps | 99.97 | 100.00 | 40.87 | 4.9 | 203.6 |
| x264 (H.264) · preset slow | 24 | 19,078.7 kbps | 99.92 | 100.00 | 37.61 | 6.22 | 160.9 |
| x264 (H.264) · preset slow | 30 | 9,371.5 kbps | 83.05 | 80.02 | 34.18 | 8.29 | 119.7 |
| x264 (H.264) · preset slow | 36 | 4,214.4 kbps | 51.35 | 47.78 | 30.46 | 12.41 | 80.7 |
| x264 (H.264) · preset slow | 42 | 1,572 kbps | 26.98 | 24.28 | 26.50 | 18.83 | 45.1 |
| x264 (H.264) · preset slow | 48 | 620.5 kbps | 20.72 | 18.13 | 24.32 | 20.02 | 31.0 |
| x265 (HEVC) · preset medium | 20 | 24,234.5 kbps | 99.96 | 100.00 | 39.68 | 3.4 | 288.5 |
| x265 (HEVC) · preset medium | 26 | 12,067 kbps | 92.25 | 88.31 | 36.64 | 4.34 | 225.8 |
| x265 (HEVC) · preset medium | 32 | 5,880.9 kbps | 71.63 | 66.24 | 33.45 | 5.75 | 169.4 |
| x265 (HEVC) · preset medium | 38 | 2,512.6 kbps | 46.32 | 41.08 | 30.21 | 8.09 | 121.3 |
| x265 (HEVC) · preset medium | 44 | 868.8 kbps | 25.73 | 21.58 | 27.15 | 13.69 | 72.0 |
| x265 (HEVC) · preset medium | 50 | 503 kbps | 21.73 | 17.77 | 24.98 | 24.93 | 37.8 |
| x265 (HEVC) · preset slow | 20 | 25,542.1 kbps | 99.97 | 100.00 | 40.53 | 1.42 | 687.5 |
| x265 (HEVC) · preset slow | 26 | 12,819.8 kbps | 99.13 | 97.09 | 37.55 | 1.7 | 572.8 |
| x265 (HEVC) · preset slow | 32 | 6,264.1 kbps | 82.36 | 76.96 | 34.27 | 2.14 | 455.0 |
| x265 (HEVC) · preset slow | 38 | 2,740.5 kbps | 55.78 | 49.48 | 30.88 | 2.87 | 339.5 |
| x265 (HEVC) · preset slow | 44 | 973.4 kbps | 30.71 | 25.45 | 27.65 | 4.57 | 212.2 |
| x265 (HEVC) · preset slow | 50 | 767.3 kbps | 26.86 | 23.69 | 26.76 | 7.66 | 127.5 |
rush_hour — evening rush-hour traffic
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 18 | 15,030.2 kbps | 97.17 | 95.82 | 42.64 | 13.49 | 64.9 |
| x264 (H.264) · preset medium | 24 | 3,883 kbps | 91.33 | 89.45 | 41.07 | 23.42 | 37.1 |
| x264 (H.264) · preset medium | 30 | 1,778.7 kbps | 80.57 | 77.94 | 39.10 | 33.85 | 26.6 |
| x264 (H.264) · preset medium | 36 | 875.7 kbps | 63.43 | 59.94 | 36.45 | 42.47 | 20.2 |
| x264 (H.264) · preset medium | 42 | 414.6 kbps | 41.99 | 37.73 | 33.10 | 44.57 | 16.3 |
| x264 (H.264) · preset medium | 48 | 193.7 kbps | 24.16 | 20.19 | 29.20 | 46.84 | 13.3 |
| x264 (H.264) · preset slow | 18 | 15,992.7 kbps | 97.48 | 96.08 | 42.62 | 6 | 112.6 |
| x264 (H.264) · preset slow | 24 | 3,577.4 kbps | 91.13 | 89.00 | 40.92 | 13.4 | 53.8 |
| x264 (H.264) · preset slow | 30 | 1,544 kbps | 78.82 | 75.84 | 38.75 | 21.88 | 36.4 |
| x264 (H.264) · preset slow | 36 | 753.5 kbps | 60.08 | 56.25 | 35.95 | 32.95 | 25.7 |
| x264 (H.264) · preset slow | 42 | 362.8 kbps | 37.95 | 33.15 | 32.62 | 41.82 | 18.8 |
| x264 (H.264) · preset slow | 48 | 177.9 kbps | 21.21 | 16.88 | 28.95 | 44.2 | 16.1 |
| x265 (HEVC) · preset medium | 20 | 5,922.2 kbps | 95.44 | 94.01 | 42.20 | 8.92 | 110.0 |
| x265 (HEVC) · preset medium | 26 | 2,198.4 kbps | 88.97 | 86.82 | 40.73 | 13.44 | 73.3 |
| x265 (HEVC) · preset medium | 32 | 917.1 kbps | 76.91 | 73.68 | 38.54 | 19.77 | 49.8 |
| x265 (HEVC) · preset medium | 38 | 370.5 kbps | 58.30 | 54.34 | 35.69 | 25.97 | 35.3 |
| x265 (HEVC) · preset medium | 44 | 153.5 kbps | 36.58 | 32.48 | 32.34 | 30.27 | 27.4 |
| x265 (HEVC) · preset medium | 50 | 83.5 kbps | 18.76 | 15.41 | 29.27 | 32.18 | 23.6 |
| x265 (HEVC) · preset slow | 20 | 6,123.8 kbps | 97.02 | 95.67 | 42.49 | 3.63 | 270.2 |
| x265 (HEVC) · preset slow | 26 | 2,423.7 kbps | 91.53 | 89.42 | 41.08 | 4.98 | 195.6 |
| x265 (HEVC) · preset slow | 32 | 1,027.9 kbps | 80.73 | 77.80 | 39.05 | 6.84 | 142.3 |
| x265 (HEVC) · preset slow | 38 | 424.3 kbps | 63.53 | 60.29 | 36.37 | 9.57 | 101.4 |
| x265 (HEVC) · preset slow | 44 | 173.1 kbps | 41.30 | 37.81 | 33.15 | 12.79 | 75.9 |
| x265 (HEVC) · preset slow | 50 | 122.1 kbps | 25.02 | 22.10 | 30.68 | 14.56 | 66.6 |
How to read it, and what we observed
1. File size at equal VMAF: x264 → x265 (medium)
Interpolated bitrates (x264 → x265). A minus sign means x265 is smaller. For these 10-second clips, kbps × 1.25 ÷ 1,000 gives the file size in MB. At riverbed VMAF 95, x265 was 0.2% larger.
2. File size at equal VMAF: x264 → x265 (slow)
Interpolated bitrates (x264 → x265). Only one comparison went past half (−50%): rush_hour at VMAF 95, −51.2%.
- Only 1 of 24 comparisons reached "half or less." The 12 medium comparisons topped out at −39.1% (rush_hour, VMAF 95), and the 12 slow comparisons at −51.2% (same video, same VMAF). Counting from the table values, no medium comparison saved 40% or more, and 5 slow comparisons did.
- The answer changed depending on how the presets were paired. The simple average of 12 comparisons is 22.3% for medium vs. medium and 37.8% for slow vs. slow. Numbers close to "half" appeared only in some of the slow comparisons; with medium vs. medium, no video or quality level got past 40%.
- The type of video mattered a lot. riverbed (a very detailed video) gained almost nothing at medium (+0.2% to −12.6%), while rush_hour and pedestrian_area saved −24.0% to −39.1% even at medium. With the same x265, the result ranged from single digits to the 30s depending on the video.
- How savings changed as the quality target went up differed by video. For rush_hour, savings grew (slow: −35.2% → −44.1% → −51.2%); for blue_sky they shrank (medium: −21.5% → −19.1% → −17.4%, slow: −42.5% → −35.3% → −29.9%); for riverbed slow they stayed almost the same (−30.9% → −30.8% → −30.7%). It is hard to name a single direction.
3. Why the gap widened at slow: the effect of the preset (VMAF 93)
Calculated from values interpolated at VMAF 93. How much smaller and how much slower slow is than medium within the same codec.
- x264 barely got smaller going from medium to slow (−0.4% to −4.6%), while x265 got −14.0% to −23.8% smaller. This difference is why x265's savings are larger when comparing slow with slow. We also covered the effect of presets in the x264 preset test and the x265 preset test.
- Getting close to the "half the size" figure required a slow preset. The cost is time: x265 slow took 2.26–2.66x the CPU time of x265 medium.
4. Side note: how many times more CPU time does x265 use than x264?
CPU time (utime) interpolated at VMAF 93. Across all 12 comparisons including VMAF 90 and 95, the range is 1.75–3.24x at medium and 2.84–3.74x at slow. IDLE priority, so treat as a rough guide.
x265 used more CPU time than x264 on every video. You pay for the smaller files with time, so if encoding server cost or turnaround time matters, don't choose based on savings alone. Tests that look at time on its own are in encode time by CRF and encode time by video complexity.
Limitations
- These are interpolated values. We did not actually encode to hit VMAF 90, 93 or 95. In many places the VMAF gap between the two neighboring points is more than 10 points (especially for x264, where the six CRF steps are far apart), so the error can be large. We wrote the savings to one decimal place, but that does not mean they are that precise.
- blue_sky saturates in VMAF early. At low CRF both encoders score above 99 and cannot be told apart, so we used only the high-CRF points for the comparison.
- There are only four 10-second clips. They differ in character (landscape, city, ripples), but animation, screen recordings, dark video and noisy video are missing. Do not apply the savings here directly to other videos. The averages of 22.3% and 37.8% are just simple averages of 12 comparisons, not representative values.
- VMAF can disagree with human eyes. The same average VMAF does not guarantee the same perceived quality, and each codec degrades picture detail in its own way. We did not interpolate the bottom 5% (rather than the mean) in this article. For videos that matter, check them yourself.
- 8-bit yuv420p, 1080p25, 4 threads per job, and only the medium and slow presets. We did not measure 4K, HDR, 10-bit, slower presets (slower, veryslow) or faster presets. Giving x265 other options (such as a tune) could change the results.
- One PC, one run. We did not estimate error from repeated runs. Time is CPU time (utime) measured at IDLE priority, so treat it as a rough guide.
- This article cannot answer whether there are conditions under which the rule of thumb holds. We can only speak to the range we checked: 1080p25, these four videos, VMAF 90–95.
Practical recommendations
- When switching to HEVC, don't expect "half." In this data, savings ranged from 0 to 39% at medium and 30 to 51% at slow, depending on the video. A very detailed video like riverbed may gain almost nothing at medium. Test one or two representative videos first (see the CRF recommender and the CRF equivalence table).
- If you want more savings, slowing x265 down by a preset step helped. At VMAF 93, going from medium to slow saved another 14.0–23.8%, but took 2.26–2.66x the CPU time. For x264 the same move gained only 0.4–4.6%. For the trade-off between time and file size, see also preset penalty by quality range.
- Compatibility comes first. A smaller file is no use if the target device can't play it. Check your target environment with codec support check and the HEVC/AV1 → H.264 compatibility conversion size planner before choosing.
- To predict file size after switching codecs, use the [re-encode size predictor](/en/tools/reencode-size-predictor-codec-switch), but keep this article's video-to-video spread (+0.2% to −51.2%) in mind. To look beyond these codecs, see VP9 vs HEVC and x265 vs SVT-AV1.
You can download the full raw data as a CSV at the bottom of the page. You can recompute the interpolated values yourself from kbps, utime_s and vmaf_mean in the CSV.
Raw data: hevc-vs-h264-50percent-myth-v1.csv