Can MP4 Have a Transparent Background? Short Answer: Not Everyday H.264

Updated

No. Everyday H.264 MP4 does not have a true alpha channel. Transparent areas are filled, usually with black, and black baked into the pixels cannot be turned back into transparency by re-encoding alone.

Apple HEVC-with-alpha can be stored in an MPEG-4 or QuickTime container. That is a Safari-oriented exception and a different codec from everyday H.264 — it is not a universal “transparent MP4.” ExportAlpha writes transparent VP9 WebM (up to 60 seconds) or short ProRes 4444 MOV (up to 8 seconds). It does not export HEVC-with-alpha, and it does not export a transparent H.264 MP4.

This page answers only whether MP4 can be transparent. For a side-by-side of WebM, MOV, MKV, and MP4, and for the full compatibility matrix, see which video formats support transparency.

Skip everyday MP4 if you need transparency

ExportAlpha writes transparent VP9 WebM for Chrome, Firefox, and OBS, or ProRes 4444 MOV for editors. It does not ship HEVC-with-alpha.

Google sign-in required · Failed jobs refund credits

Limits

ExportAlpha on this path

  • Writes transparent WebM ≤60s or ProRes 4444 ≤8s after removal / alpha-capable source
  • Does not ship “transparent H.264 MP4” or HEVC-with-alpha
  • Does not recover alpha from an already black-composited MP4 without a new matte
  • 5 free credits · Google sign-in · failed jobs refund credits · Quick $8.99/60

GIF: not a substitute for video alpha; ExportAlpha does not export GIF. See the GIF answer on transparent video formats.

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

MP4 is the box; H.264 is usually what’s inside. Transparency is a codec (and pixel-format) problem, not a file-extension trick.

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. Per Apple WWDC19 session 506: HEVC video with Alpha is supported by Safari in iOS 13 and macOS Catalina. This is a specific Apple implementation. We did not play-test HEVC-alpha. This is not the same as saying "any MP4 can be transparent."

What to do instead of H.264 MP4

  1. Stop exporting everyday H.264 MP4 when you need holes in the frame.
  2. Create a matte (AI background remove or chroma key)—do not expect re-encode of a black-filled MP4 to invent alpha.
  3. Export WebM (yuva420p) for web / OBS, or ProRes 4444 for editors.
  4. Verify over a non-black background. Color through = alpha; solid black in H.264 = composite.
  5. Safari-only web holes: encode HEVC-with-alpha elsewhere if required—not from ExportAlpha.

How to remove a video background and keep it transparent · convert MP4 to transparent WebM · transparent video formats.

Frequently Asked Questions

Can MP4 have a transparent background?

Not if you mean a normal H.264 MP4. A transparent background has to live in a codec that actually stores alpha. Re-encoding an opaque MP4 does not create one. After you have a matte (AI remove or chroma key), export WebM or ProRes 4444 — see how to remove a video background and keep it transparent and convert MP4 to transparent WebM. For other containers and the player matrix, see which video formats support transparency.

Is Apple HEVC-with-alpha the same as “transparent MP4”?

No. HEVC Video with Alpha can be stored in MPEG-4 or QuickTime containers (Apple WWDC19 session 506 / interoperability notes). That is a different codec from everyday H.264. Calling it “MP4 with alpha” in marketing confuses the container with a universal transparent download. Players that ignore that alpha layer show a solid picture. ExportAlpha does not ship HEVC-with-alpha. Matrix: transparent video formats.

What should I use instead of H.264 MP4 for alpha?

  • Chrome / Firefox / Edge / OBS: VP9 WebM with yuva420p (tested in our format matrix on Linux).
  • Premiere / Resolve / Final Cut / After Effects: ProRes 4444 MOV (vendor docs; Apple: only 4444 / XQ carry alpha).
  • Safari web: HEVC-with-alpha from another encoder if required—not available from ExportAlpha.

Do not export H.264 MP4 when you need holes in the frame.

Can I export MP4 with alpha?

Not as everyday H.264 MP4. For true alpha, export transparent WebM or ProRes 4444 MOV. “MP4 alpha output” in marketing usually means a different codec (often Apple HEVC-with-alpha), not a normal H.264 download.

Can you do alpha on an MP4 that already has black built in?

No. Black built into the frame is opaque. Re-encoding that MP4 cannot invent transparency. Run background removal on footage that still has a separable subject, then export WebM or ProRes with alpha.

Can MP4 be transparent?

Everyday H.264 MP4 cannot. Typical exporters fill the holes. Apple HEVC-with-alpha is the exception when it is stored in an MP4 or MOV container, and it is not a drop-in replacement for “any MP4.” For Chrome, Firefox, and OBS, use VP9 WebM. For editors, use ProRes 4444.

Does MP4 support an alpha channel?

H.264 MP4 does not, in the workflows people actually use. An “MP4 with alpha channel” search usually lands on Apple HEVC Video with Alpha—same container family, different codec. Players that ignore that alpha layer show a solid picture. We publish a player-by-player alpha matrix (tested / docs / untested) here: Which video formats support transparency?. Still test your own file in the target app.

Does MP4 support a transparent background?

Not as everyday H.264 MP4. You need WebM with alpha or ProRes 4444 (or a separate HEVC-with-alpha pipeline for Safari).

Can I convert a black-background MP4 back to transparency?

Not if the black is opaque pixel data. You must recreate alpha (key a flat color, or AI-remove a real background), then encode WebM or ProRes. See convert MP4 to transparent WebM and green screen to WebM.

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, or run background removal to generate a new matte.

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 outside Safari?

HEVC-with-alpha outside Safari was untested in our matrix (we could not produce a true HEVC-alpha file on Linux). ExportAlpha does not ship HEVC-with-alpha. See the full alpha compatibility matrix.

Sources

Export with real alpha, not everyday MP4

Upload a clip and download transparent WebM or ProRes 4444 — formats that actually store alpha. New accounts get 5 free credits.

Google sign-in required · Failed jobs refund credits