Skip to content
White sparkle particles split diagonally across a dark charcoal background and a grey checkerboard transparency pattern
Back to blogtips

WebM with Transparency: Complete VP9 Alpha Guide

ANFX 2026-11-23 10 min read

How transparent WebM works, which browsers and editors support VP9 alpha in 2026, the Safari HEVC workaround, and ffmpeg commands that keep the alpha.

Advertisement

A WebM file can carry transparency: both VP8 and VP9 video support an alpha channel inside WebM. Chrome, Edge and Firefox play it on a web page with the background showing through. The exception is Safari. As of November 2026, released versions of Safari play WebM but ignore its alpha, so Apple devices need a second file, HEVC with alpha. Most video editors don’t import WebM at all, so for editing timelines the alpha format is still ProRes 4444 or a PNG sequence.

This guide covers what each transparent format is good for, where VP9 alpha does and doesn’t work, how to embed transparent video so it works in every browser, and the ffmpeg commands to convert between formats without losing the alpha.

Why Transparent Video Matters

An alpha channel stores, for every pixel, how opaque it is. Video with alpha can sit on top of anything: a web page background, other footage, a stream layout. That’s what you need for:

  • Web animations that float over page content, such as product cutouts, animated stickers, or UI demos.
  • Overlays and elements in an edit: lower thirds, snow, sparkles, subscribe buttons.
  • Stream graphics in OBS that sit over gameplay or a webcam.

Without alpha, you have two fallbacks: render on black and use a Screen or Add blend mode, or render on green and key it. Both work for many effects (blend modes explained). But keying soft edges, glows and anti-aliased text is lossy, and blend modes change the colours. Real alpha avoids both problems.

The Transparent-Video Formats Compared

Format Alpha Relative size Editors Browsers Best for
WebM, VP9 alpha Yes (8-bit, 4:2:0) Small Poor (see below) Chrome, Edge, Firefox. Safari plays it without alpha Transparent video on websites
WebM, VP8 alpha Yes Small, a bit larger than VP9 Poor Same as VP9 Web and browser-based tools where VP9 encoding is slow
MOV, HEVC with alpha Yes (separate alpha layer) Small to medium Apple apps; Resolve on macOS can export it Safari (macOS Catalina / iOS 13 and later) The Safari source in a web embed
MOV, ProRes 4444 Yes, mathematically lossless up to 16-bit Very large (~330 Mbps at 1080p29.97) Premiere, Final Cut, Resolve, After Effects None Editing and compositing masters
PNG sequence Yes, lossless Very large Everything None (as video) Guaranteed-compatible handoff between tools
MP4 on green or black No Small Everything, including CapCut and mobile All Overlays for editors with weak alpha support

The ProRes figures are Apple’s own: ProRes 4444 and 4444 XQ are “the only Apple ProRes codecs that support alpha channels,” with “a mathematically lossless alpha channel of up to 16 bits,” at about 330 Mbps for 4444 at 1080p29.97 (Apple: About Apple ProRes). ProRes 422 and 422 HQ have no alpha, which is a common reason an “alpha” export arrives opaque.

For a sense of web file sizes: in Jake Archibald’s 2024 tests of one short animation, the VP9 alpha WebM came out at 1.1 MB and the native HEVC-with-alpha file at 3.4 MB (Video with alpha transparency on the web). Those numbers are for one clip, so treat them as a rough ratio, not a rule.

Browser Support for Transparent WebM and HEVC

Browser WebM VP8/VP9 alpha HEVC with alpha
Chrome (desktop) Yes, since Chrome 31 No
Edge Yes (Chromium) No
Firefox Yes, since Firefox 53 No
Safari (macOS, iOS, iPadOS) Plays WebM, alpha not rendered in released versions Yes, since macOS Catalina / iOS 13

Sources and details:

  • Chrome added alpha playback for WebM in version 31, for both VP8 and VP9 (Chrome Developers).
  • Firefox shipped WebM alpha in Firefox 53 (Mozilla bug 944117).
  • Safari supports WebM playback (on iPhone and iPad since Safari 17.4) but has not rendered VP9 alpha. WebKit’s bug “VP9 with transparency plays back incorrectly” was marked fixed on 10 November 2026 when a patch landed in WebKit’s main branch (WebKit bug 275908). That fix isn’t in the Safari 27.2 release notes or the 27.3 beta notes (16 November 2026). Until a Safari release lists it, plan on Safari showing your transparent WebM without its transparency.
  • HEVC with alpha is Apple’s extension. Apple’s WWDC 2019 session says it is “supported by Safari in iOS 13 and macOS Catalina.” It stores colour and alpha as two HEVC layers in one track, so “an HEVC decoder that does not know how to handle the Alpha layer will ignore it and display the base layer alone” (WWDC19 session 506). In a player without alpha support, the file still plays but with no transparency.

Test on real phones, not just desktop browsers. Mobile playback of alpha video has had its own bugs over the years, and a desktop check won’t catch them.

Editor Support: Why Your WebM Won’t Import

WebM is a web delivery format, and most editors treat it that way:

Editor WebM import Alpha workflow to use
Premiere Pro Not documented as native by Adobe. Third-party importer plugins exist, and users report alpha through them is unreliable ProRes 4444 MOV or PNG sequence
Final Cut Pro WebM and VP9 aren’t on Apple’s supported formats list ProRes 4444 MOV
DaVinci Resolve 20 WebM isn’t in Blackmagic’s codec list. VP9 decodes only from MOV, MP4 and MKV, with no alpha ProRes 4444 MOV, or PNG sequence
CapCut Not documented. Transparent WebM is hit and miss MP4 on green or black, keyed or blended (CapCut overlay guide)
OBS Studio Media Source plays WebM, and many people use transparent WebM there. Results depend on how the file was encoded, so test yours WebM with alpha, or MOV with alpha (OBS overlays guide)

The Resolve row comes from Blackmagic’s DaVinci Resolve 20 Supported Formats and Codecs list (July 2025). It lists ProRes 4444 with alpha in MOV, and on macOS it also marks H.265 in MOV as able to export alpha. Final Cut’s list is Apple’s supported media formats page.

The practical rule: WebM with alpha is for browsers. For a timeline, use ProRes 4444 or PNGs. If you have a transparent WebM and need it in an editor, convert it to ProRes 4444 with the command below rather than to MP4. The browser WebM to MP4 converter outputs H.264, which has no alpha, so the transparent areas come out solid.

How to Embed Transparent Video on a Website

Give the browser two sources: HEVC with alpha for Safari and VP9 WebM for everyone else. HEVC goes first. Safari can play the WebM, so if WebM came first it would pick it and drop the transparency. This is the pattern from Jake Archibald’s article:

<video autoplay muted loop playsinline width="640" height="360">
  <source src="overlay.mov" type="video/quicktime; codecs=hvc1.1.6.H120.b0">
  <source src="overlay.webm" type="video/webm; codecs=vp09.00.41.08">
</video>

Notes on the snippet:

  • autoplay needs muted in modern browsers, and playsinline stops iOS from going full screen. loop suits decorative animation.
  • Set width and height (or a CSS aspect-ratio) so the page doesn’t shift when the video loads.
  • Jake Archibald notes a theoretical risk: a non-Apple device that decodes HEVC could choose the first source and play it without alpha. He says he hadn’t seen it happen. If your audience matters enough, test on the Chrome and Android devices you care about.
  • If the animation is decorative, a static PNG poster keeps something on screen before playback starts.

The full attribute list is in MDN’s <video> reference.

Converting Between Formats With ffmpeg

These commands work with a current ffmpeg build (they were checked against ffmpeg 8.0). One detail matters most: ffmpeg’s built-in VP8/VP9 decoders ignore WebM alpha. When reading a transparent WebM, put -c:v libvpx-vp9 (or -c:v libvpx for VP8) before -i, or the output will have no transparency.

# Transparent WebM (VP9) → ProRes 4444 MOV, for Premiere / Final Cut / Resolve
ffmpeg -c:v libvpx-vp9 -i input.webm -c:v prores_ks -profile:v 4444 \
  -pix_fmt yuva444p10le -vendor apl0 output.mov

# Transparent WebM (VP9) → PNG sequence
ffmpeg -c:v libvpx-vp9 -i input.webm frame_%04d.png

# ProRes 4444 MOV or PNG sequence → VP9 WebM with alpha (for the web)
ffmpeg -i input.mov -c:v libvpx-vp9 -pix_fmt yuva420p -crf 30 -b:v 0 -an output.webm
ffmpeg -framerate 30 -i frame_%04d.png -c:v libvpx-vp9 -pix_fmt yuva420p -crf 30 -b:v 0 output.webm

# → VP8 WebM with alpha (faster to encode; -auto-alt-ref 0 is required)
ffmpeg -i input.mov -c:v libvpx -pix_fmt yuva420p -auto-alt-ref 0 \
  -crf 10 -b:v 2M -an output.webm

For VP8, leaving out -auto-alt-ref 0 makes ffmpeg fail. The site’s own lower-thirds exporter sets it for the same reason.

HEVC with alpha needs Apple’s VideoToolbox encoder, so it only works on a Mac. Jake Archibald’s command:

ffmpeg -i in.mov -c:v hevc_videotoolbox -require_sw 1 -alpha_quality 0.1 \
  -tag:v hvc1 -q:v 35 -vf "premultiply=inplace=1" out.mov

He found this route makes larger files than Apple’s Compressor. You can also export HEVC with alpha from Apple’s own tools, or from Resolve on macOS. Raise -alpha_quality (0 to 1) if edges look rough. Always check the result in Safari over a coloured background.

To check whether a WebM actually has alpha, run ffprobe input.webm and look for alpha_mode : 1 in the stream metadata. If it isn’t there, there’s no alpha to recover.

Free Transparent Assets and Tools on ANFX

For the wider codec picture (H.264 vs ProRes vs WebM for editing, delivery and archiving), see Best Codec for Motion Graphics. For containers, see MP4 vs WebM vs MOV. The lower thirds guide covers getting alpha graphics into each editor.

FAQ

Does Safari support WebM with transparency?

Not in released versions as of November 2026. Safari plays WebM but shows it without the alpha channel. WebKit merged a fix on 10 November 2026 (bug 275908), but it hasn’t appeared in Safari release notes yet. Serve HEVC with alpha first in your <video> sources so Safari uses that instead.

Why does my transparent WebM show a black background?

There are three common causes. The player doesn’t render WebM alpha (Safari, many editors). The file never had alpha: check ffprobe for alpha_mode : 1. Or the tool decoding it ignored the alpha, which ffmpeg does unless you put -c:v libvpx-vp9 before -i. In an editor, convert to ProRes 4444 instead of fighting the WebM.

What’s the smallest video format with an alpha channel?

Of the formats browsers play natively, VP9 WebM is usually the smallest. In Jake Archibald’s 2024 test it was about a third the size of the HEVC-with-alpha version of the same clip. ProRes 4444 and PNG sequences are far larger because they’re built for editing quality, not delivery.

GIF or WebM for a transparent animation?

WebM, where it’s supported. GIF transparency is on or off per pixel with a 256-colour palette, so soft edges, glows and shadows get jagged halos. WebM alpha has 256 levels of opacity per pixel and full colour, usually in a much smaller file. GIF still makes sense where video isn’t allowed at all.

Can Premiere Pro or DaVinci Resolve import transparent WebM?

Not reliably. Adobe doesn’t document native WebM import for Premiere Pro, and Blackmagic’s Resolve 20 codec list doesn’t include the WebM container. Convert the WebM to ProRes 4444 MOV, or to a PNG sequence, and both editors read the alpha.

Advertisement

Enjoy this article?

Share it with your creative community and help others discover great content.