Does MP4 support a transparent background?

In everyday workflows: no. H.264/AVC (the codec most people mean by "MP4") doesn't implement alpha in real-world decoders. Transparent regions get filled with black or white on export. There is one exception: Apple's HEVC Video with Alpha, but it's not universal.

Skip MP4 if you need transparency

Export transparent WebM for Chrome, Firefox, and OBS, or ProRes 4444 MOV for editors.

Export with this tool

15 free seconds on first sign-in. No subscription required to try a short clip.

Why H.264 MP4 doesn't work for transparency

H.264/AVC is the video codec. MP4 is the container. When people say "MP4," they almost always mean H.264 inside an MP4 container.

The H.264 specification includes provisions for auxiliary pictures, but decoding alpha isn't a conformance requirement. Real-world encoders like libx264 don't support yuva pixel formats. This means transparent regions are filled in during export. The file you get has no alpha channel.

Container vs. codec

It's important to understand the distinction:

  • Container (.mp4, .mov): The file wrapper that holds video, audio, and metadata
  • Codec (H.264, HEVC, ProRes): The compression algorithm for video data

QuickTime (.mov) can contain ProRes 4444 with alpha. An MP4 container with H.264 inside typically cannot carry alpha in practice, even though the specification theoretically allows it.

The exception: HEVC-with-alpha

Apple's HEVC Video with Alpha can be stored in MPEG-4 or QuickTime containers. It works on:

  • Safari 13+
  • iOS 13+
  • macOS Catalina+

This is a specific Apple implementation. HEVC players that don't understand the alpha layer will drop it and show only the base image. This is not the same as saying "any MP4 can be transparent."

What to use instead

If you need universally transparent video:

  • For Chrome/Firefox web: VP9 WebM with yuva420p
  • For Safari web: HEVC-with-alpha (but verify it works in your version)
  • For editing in Premiere/Resolve/Final Cut: ProRes 4444 MOV

Don't export H.264 MP4 if you need transparency. It won't work.

Frequently Asked Questions

Can I convert H.264 MP4 with a black background into a transparent video?

No. Once the video is exported without alpha, the transparent regions are permanently filled. You can't recover transparency from a video that was already composited onto black or white. You need to re-export from the original source with alpha enabled.

Why does the H.264 spec mention auxiliary pictures?

The specification allows for it, but decoder implementations aren't required to support it. In practice, libx264 (the most common H.264 encoder) doesn't support yuva formats. Specification capability doesn't equal real-world usability.

Will HEVC-with-alpha work on Android or Windows?

**缺口**: Browser and player support for HEVC-with-alpha outside Apple ecosystems varies. Chrome on Windows/Android may play HEVC but not composite the alpha layer. Test in your target environment before committing.

Sources

Export with real alpha, not MP4

Upload your video and export transparent WebM or ProRes MOV — formats that actually support alpha.

Export with this tool

15 free seconds on first sign-in. No subscription required to try a short clip.