H.264 vs H.265 comes down to compatibility versus file size. H.264 (AVC) plays almost everywhere, on every browser, phone, PC and platform, and is the codec most upload guides recommend. H.265 (HEVC) typically produces a noticeably smaller file at similar visual quality, often by a quarter to a half, but it is harder to encode and decode and is not supported everywhere. As a rule of thumb: use H.264 for anything you share or upload, and H.265 for archives and long recordings you keep yourself, where file size matters more than compatibility.
Below is a side-by-side comparison, what the difference means on a Windows PC, and which codec to pick for each common job.
What a codec actually does
A codec is the method used to compress video so it fits in a reasonable file. Raw, uncompressed screen video would be enormous, many gigabytes per minute. Codecs save space by storing only what changes between frames and by discarding detail your eyes are unlikely to notice.
The codec is different from the container. MP4, MOV and MKV are containers, the "box" that holds the video, audio and other data. An MP4 file can contain H.264 or H.265 video, which is why two MP4 files can behave very differently on the same PC.
What about other codecs?
You will also see VP9 and AV1 mentioned, especially around YouTube. These are mainly used by platforms for streaming to viewers: YouTube re-encodes uploads into its own formats whatever you send it. For your own exports, H.264 and H.265 remain the practical choices, because they are supported by hardware encoders, editing software and almost every player. Lossless and intermediate codecs exist for professional editing, but they create huge files and are not needed for screen recordings.
H.264 vs H.265 side by side
| H.264 (AVC) | H.265 (HEVC) | |
|---|---|---|
| File size at similar quality | Baseline | Typically 25 to 50% smaller |
| Compatibility | Almost universal | Good on modern devices, patchy elsewhere |
| Windows built-in playback | Works out of the box | May need the HEVC Video Extensions |
| Web browsers | Plays everywhere | Depends on the browser and the hardware |
| Encoding load | Lighter | Heavier, especially in software |
| Hardware encoding | Supported by nearly all GPUs | Supported by most GPUs from recent years |
| Accepted by YouTube | Yes, recommended | Yes |
| Best for | Sharing, uploading, email, chat | Archiving, long recordings, 4K storage |
The size saving varies with content. Screen recordings with large still areas compress very efficiently with either codec, so the gap can be smaller than with camera footage.
Playing H.265 on Windows
If an H.265 file will not play, or plays with no picture, in the Windows Media Player or Photos apps, the usual reason is a missing decoder.
- Open the Microsoft Store.
- Search for HEVC Video Extensions.
- Install it if it is not already on your PC. Some PCs come with it preinstalled by the manufacturer.
- Restart the player and try again.
Even with the decoder installed, older PCs without hardware HEVC decoding may stutter on 4K H.265 files, because decoding falls back to the processor. If smooth playback on any PC matters, H.264 is the safer choice.
Which codec for which job?
| Job | Codec | Reason |
|---|---|---|
| Uploading to YouTube | H.264 | Recommended by YouTube; the platform re-encodes everything anyway |
| TikTok, Reels, Shorts, LinkedIn, X | H.264 | The safest choice for every upload tool |
| Emailing a video | H.264 | The recipient's device is unknown |
| Sharing in chat apps | H.264 | Inline previews are most reliable |
| Archiving recordings on your drive | H.265 | Smaller files, and you control the playback device |
| Long meeting or lecture recordings | H.265 | Hours of video in far less space |
| Uploading 4K on a slow connection | H.265 | Smaller upload, if the platform accepts it |
For uploads, the platform decodes your file and encodes its own versions for streaming, often in yet another codec. What matters is that your upload is high quality and accepted without problems, and H.264 at a generous bitrate does that reliably. Our guide to the best export settings for YouTube lists the recommended bitrates.
Does H.265 make recording heavier?
When encoded on your graphics card's hardware encoder, H.265 recording is usually fine on PCs from the last several years. In software, on the processor, it is considerably heavier than H.264 and can cause dropped frames while you record. If your recordings stutter, recording in H.264 with hardware encoding and converting to H.265 later for storage is a practical compromise. Our guide to fixing a lagging screen recording covers other settings that help.
Quality is about bitrate, not just codec
A common misunderstanding is that H.265 automatically looks better. It does not; it is more efficient. At the same bitrate, H.265 usually looks better than H.264. At the same visual quality, it uses fewer bits. But an H.264 file at a generous bitrate will look better than an H.265 file squeezed to a tiny size. Choose the codec for compatibility and size, then choose a bitrate that suits the content.
Converting an existing H.264 file to H.265 does not improve its quality. It can only keep roughly the same quality in less space, and every re-encode loses a little detail.
Choosing the codec when you export
Motion Casts saves MP4 files with either H.264 or H.265, as well as MOV, MKV, WebM, AVI and GIF. The presets for YouTube, Instagram, Facebook, X and LinkedIn use MP4 with H.264 for maximum compatibility. For archives, you can save a custom preset with H.265 and reuse it whenever you want smaller files to keep.
If you need to hit an exact size, such as an email attachment limit, the codec helps but is not the whole answer. Motion Casts can also export to a target size; our guide to compressing a video for email covers the other settings that matter, like resolution and frame rate.
The short version
- Sharing or uploading anything: H.264.
- Storing long recordings yourself: H.265.
- H.265 file will not play on Windows: install the HEVC Video Extensions, or re-export as H.264.
- Quality depends on bitrate and resolution as much as on the codec.
- Re-encoding an H.264 file as H.265 saves space but never adds quality.
Frequently asked questions
Is H.265 better than H.264?
H.265 typically gives similar quality at a smaller file size, but it is less widely supported. H.264 is still the safer choice for sharing and uploading.
Why won't my H.265 video play on Windows?
Windows may need the HEVC Video Extensions from the Microsoft Store to play H.265 in the built-in apps, and some PCs lack hardware decoding for it.
Which codec should I use for YouTube?
H.264 is YouTube's recommended codec and works everywhere. H.265 uploads are accepted, but there is little benefit unless file size or upload time matters.
