BitSized

H.264 vs HEVC vs VP9 vs AV1: Which Codec Does Discord Actually Play?

By the BitSized TeamWe build the tools on this site and re-check every number against official documentation.

Last verified against official docs on November 4, 2026· official platform docs

Which codec keeps videos playing inside Discord?

H.264 video with AAC audio inside an MP4 container is the combination Discord's inline player handles most reliably on every platform. Discord can also attach and often play WebM and plain MOV files, but H.264 MP4 is the export that never surprises you, which is why every preset in our compressor outputs exactly that.

A codec is the recipe a video uses to squeeze pixels into fewer bytes. Discord does not pick one recipe and force it on you; it accepts your file as-is and hands it to the player on each device. That is why the same clip can play perfectly for one friend and show a black rectangle for another: the sending side attached a codec the receiving device cannot decode cheaply.

The four codecs, explained simply

These four cover almost everything you will ever feed into Discord. Compatibility is the whole game: a codec nobody's device decodes is pointless no matter how efficient it is.

CodecWhere you meet itDiscord friendlinessOur verdict
H.264 (AVC)Phones, screen recorders, YouTube downloads, almost every cameraPlays inline everywhere; the de facto standardAlways safe. Export this.
HEVC (H.265)iPhone and newer Android camera defaults, drone footageAttaches fine; can show black screens or a stuck thumbnail on devices without HEVC hardware decodingConvert to H.264 before sending.
VP9WebM files, some screen recorders, browser downloadsGenerally attaches; playback support is patchier than H.264 across clientsFine to send; convert if a friend reports issues.
AV1Newer GPUs, modern screen recorders, bleeding-edge exportsEfficient but the least universally decoded of the fourRe-encode to H.264 for chat.

The pattern is simple: the newer and more efficient the codec, the fewer devices decode it in hardware. H.264 is old, which is exactly why it is everywhere. Efficiency only matters inside the file; compatibility matters at the moment your friend taps play.

Why iPhone videos show black screens in Discord

Since iOS 11, iPhones record in HEVC by default (under Settings, Camera, Formats, it is listed as High Efficiency). HEVC stores beautiful footage at small sizes, but hardware decoding for it is not universal: older desktops, some Android phones, and various Discord clients end up showing a black screen or a forever-loading thumbnail for a file that plays perfectly on the iPhone that recorded it.

The fix takes one step: run the clip through a compressor that outputs H.264 MP4. Our tool does this automatically for any input, which is why the iPhone-to-Discord pipeline is the single most common use of the iOS preset page. Nothing about the content changes; the recipe just becomes one every device can read.

How to check (and change) a video's codec

  • Check: right click the file, open Properties (Windows) or Get Info (Mac), and look at the video track. Tools like MediaInfo show the exact codec string.
  • Rule of thumb by extension: .mp4 is usually H.264, .mov from an Apple device is usually HEVC, .webm is VP8 or VP9.
  • Change: drop the file into a compressor or converter that targets H.264 with AAC audio. Keep the resolution the same if the file already fits your size target.
  • Verify: the output should play in your browser by drag-and-drop. Browser playback is a good proxy for Discord's inline player.

If you would rather not think about any of this, the compressor handles the decision for you: whatever goes in, H.264 MP4 comes out, sized for the limit you picked.

Which one should you actually export?

For Discord: H.264 + AAC in MP4, every time. Keep VP9 or AV1 for archives and platforms that advertise support, because their size savings are real when the whole pipeline supports them. For chat, the size difference between codecs is dwarfed by the difference between a good bitrate and a bad one, and H.264 at a computed bitrate beats AV1 at a guessed one for viewer experience.

One more practical note: Discord checks the file size before it checks anything else (that is the August 2026 change that made desktop uploads more predictable). A clean H.264 export that fits 20MB will sail through where a fancy codec that fits 19MB but fails to decode will not.

Frequently asked questions

Related tools & guides