Short answer: a transparent WebM is a VP9 video with a second, hidden alpha stream. It plays transparently in Chrome, Firefox, Edge and OBS, and is tiny — 0.1–0.4 MB per second of 1080p in our tests. Safari ignores the alpha, so give Safari an HEVC-with-alpha file or a still image.

What makes a WebM transparent

A WebM file holds a VP9 (or older VP8) video stream. For transparency, the encoder writes the opacity of every pixel as a second stream tucked inside the first, and marks the track with the tag ALPHA_MODE=1. A player that understands the tag decodes both and composites the video over whatever is behind it; a player that does not simply shows the colour stream, and the background appears.

That design explains two common surprises. FFprobe reports a transparent WebM as plain yuv420p, because the main stream really is ordinary colour. And FFmpeg’s default VP9 decoder ignores the alpha stream: in our test the same file read 255 (fully opaque) with the default decoder and kept its transparency with -c:v libvpx-vp9 before -i.

One more trap: the tag alone proves nothing. When we encoded PNG frames that had been saved without alpha, the WebM still carried ALPHA_MODE=1 — and was completely opaque. Check the alpha itself, not just the tag.

Making one with FFmpeg

From any source with alpha — ProRes 4444, a PNG sequence, a MOV with an alpha pixel format:

ffmpeg -i input.mov -c:v libvpx-vp9 -pix_fmt yuva420p -b:v 0 -crf 32 -an output.webm

  • -pix_fmt yuva420p keeps the alpha. FFmpeg usually picks it by itself when the input has alpha — our RGBA frames kept their transparency without it — but it protects you from a later option forcing yuv420p, which in our test silently produced an opaque file.
  • -crf sets quality: lower is better and bigger. 32 is a good default for overlays.
  • -an drops audio, which overlays rarely need.
  • -auto-alt-ref 0, found in many guides, only matters for VP8; with VP9 the alpha survived with and without it in our tests.

How small, and what CRF does

Same real 1080p cutout — a podcast host with soft hair edges — encoded at different settings. Alpha quality is the alpha channel compared with the source (higher is closer):

SettingMB per secondEncode time (3.75 s clip)Alpha quality
1080p, CRF 240.4056 s40.8 dB
1080p, CRF 320.2351 s40.75 dB
1080p, CRF 400.1049 s40.7 dB
1080p, CRF 32, fast settings0.317 s40.76 dB
720p, CRF 320.1028 s—
720p, CRF 360.0727 s—

The useful finding: CRF barely touched the alpha. Edge quality stayed within 0.1 dB from CRF 24 to 40 while the file shrank by three quarters, so raise CRF first when a file is too big. The fast settings were -deadline realtime -cpu-used 8 -row-mt 1: seven times quicker for a third more size. For comparison, the same clip was 12.9–24.3 MB per second as ProRes 4444.

Where it plays transparently

DestinationTransparent?Notes
Chrome, EdgeYesTested in Chromium 145
FirefoxYesSame VP9 alpha support as Chrome
Safari (macOS, iOS)NoPlays the video, ignores the alpha — Safari guide
OBS media source and stingersYesOBS guide
Premiere, Resolve, Final CutUnreliableConvert to ProRes 4444 for editing
VLC and other playersUsually notOften drawn over black; not a fault in the file

In our Chromium test, a WebM and an H.264 MP4 of the same cutout were placed on a red page. The WebM’s empty areas showed the red page (RGB 255, 0, 0); the MP4’s showed black (RGB 0, 0, 0). See the screenshot in the website guide.

On a web page

<video src="presenter.webm" autoplay muted loop playsinline width="640" height="360"></video>

Autoplay needs muted; playsinline keeps iPhones from going full screen; width and height stop the layout jumping. The website guide covers serving Safari a separate file.

The checkerboard is not the file

A checkerboard is how editors and this site preview transparency. It must never be exported into the video: a correct WebM contains zero-opacity pixels, and the page or scene behind it shows through. If you see a checkerboard in the final result, it was baked in.

Creating the file

Remove the background from a clip with the video background remover and download the transparent WebM, or convert what you have with the free ProRes to WebM and PNG sequence to WebM converters. Check any WebM with the transparency checker.

How we tested

November 7, 2026: FFmpeg 6.1.1 with libvpx 1.14 on Ubuntu, a dual-core machine (encode times scale with your CPU). Source: a 1920×1080, 23.976 fps, 3.75-second background-removal result from this site, decoded to lossless RGBA. Alpha quality is the PSNR of the alpha channel against the source. Playback was tested in headless Chromium 145.

Common questions

Why does ffprobe say my transparent WebM is yuv420p?+

The alpha lives in a separate stream inside the VP9 track, so the main pixel format is ordinary yuv420p. Look for the ALPHA_MODE=1 tag, then confirm with an alpha extract using the libvpx-vp9 decoder.

Do I need -auto-alt-ref 0 for transparent WebM?+

Only for VP8, where an encode with alternate reference frames failed in our test. For VP9 the alpha came through intact with and without it, in single-pass and two-pass encoding.

Which CRF should I use for a transparent WebM?+

32 is a good default. In our test, moving from CRF 24 to 40 cut the file by three quarters while alpha edge quality changed by less than 0.1 dB, so raise CRF first when you need a smaller file.

Is VP8 or VP9 better for transparent WebM?+

VP9. It made a smaller file at similar quality in our test (0.23 MB/s at CRF 32 against 0.37 MB/s for VP8) and has none of VP8's alternate-reference restriction.

Does transparent WebM work in Safari?+

No. Safari plays the video but does not composite the alpha channel. Serve Safari an HEVC file with alpha, made with Apple's tools, or a transparent still image.

Can I make an MP4 into a transparent WebM?+

Only by removing the background: an ordinary MP4 has no alpha to convert. Run it through a background remover, which outputs a WebM with real transparency.