Why WebM alpha fails in Safari
Safari on macOS and iOS can decode VP9 WebM video, but at the time of writing it does not composite the WebM alpha channel. The video plays; the transparent area simply is not transparent. This is a browser limitation, not a problem with your file—the same file is transparent in Chrome, Firefox and Edge.
HEVC with alpha: Apple’s format
Apple introduced HEVC video with an alpha channel for Safari and iOS in 2019 (WWDC 2019, session 506). It is encoded with Apple’s own media frameworks, so it is made on a Mac—for example with Compressor, or with FFmpeg’s hevc_videotoolbox encoder, which runs only on macOS.
This site does not produce HEVC with alpha. If you already have a compatible source, keep it for Safari and make a transparent WebM from supported HEVC alpha for other destinations. Conversion does not add WebM alpha playback to Safari. Test any Apple delivery file on a real device.
Serving the right file to each browser
A common suggestion is to list both files in <source> elements and let the browser choose. Be careful: some non-Safari browsers can decode HEVC without its alpha, and would happily pick it. A small script that chooses by browser is more predictable:
<video id="presenter" autoplay muted loop playsinline></video>
<script>
const safari = /^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent);
document.getElementById('presenter').src = safari ? 'presenter-hevc.mov' : 'presenter.webm';
</script>
Why feature detection does not help here
The usual advice — test for the capability instead of sniffing the browser — breaks down for alpha. video.canPlayType() answers whether a browser can decode a codec, not whether it composites that codec's alpha channel. A browser can report HEVC support and still drop its alpha; Safari itself decodes VP9 while ignoring its alpha. No web API reports alpha compositing, which is why the pragmatic pattern above reads the user agent instead.
Test on real devices either way. A Mac is not an iPhone, and iOS Safari adds its own autoplay rules — muted and playsinline are what let transparent video start without a tap.
No HEVC file? Use a still in Safari
If you only have WebM, show a transparent PNG of a representative frame to Safari visitors and the moving WebM to everyone else. That is exactly what our own home page does: Safari gets a verified transparent still, other browsers get the video. Our result page can give you both—the WebM and, for images, a transparent PNG.
The shortcut: bake the background in
If the destination background is a flat, unchanging colour, there is a simpler escape: export an ordinary MP4 whose background pixels already match the page. No alpha, no HEVC, no fallback — every browser just plays it, and it blends as long as the backdrop stays that exact colour behind the video's rectangle.
It stops working the moment reality gets richer: gradients, images or patterns behind the video, a page that scrolls content under a fixed overlay, rounded corners, or the same clip reused on different pages. For a hero strip on one stable page it is a legitimate shortcut; for anything that floats, use real alpha.
Check the result before you ship it
Two minutes of checking beats a support email from an iPhone user:
- Open the page in Chrome and in Safari. The video should float in one and stay acceptable in the other.
- Try it on a real iPhone, not just a resized desktop window — iOS autoplay rules and mobile networks both bite hardest there.
- Drag the video into the transparency checker — it runs in your browser — to confirm the file itself carries alpha, independently of what any one browser does with it.
- Keep the WebM lean: it is what most visitors download. Safari visitors get the HEVC if you made one, otherwise the still.
Common questions
Does Safari play WebM at all?+
Yes — Safari on macOS and iOS can decode VP9 WebM video. The limitation is compositing: it does not apply the WebM alpha channel, so transparent areas render as a solid background. The file is fine; the display is not.
Can I create HEVC with alpha on Windows?+
This converter does not create HEVC output on any platform. Apple tools are one established encoding route; newer encoder builds also vary, so verify actual Safari playback rather than assuming compatibility. You can use this browser tool to read supported HEVC alpha and export WebM without owning a Mac. Keep an existing compatible HEVC file or use a still fallback for Safari.
Why does my transparent WebM show a black box only in Safari?+
Because Safari decoded the video but ignored the alpha channel. The same file is transparent in Chrome, Firefox and Edge. It is a browser limitation, not an export error — re-exporting the file will not change it.
Is there an alpha format every browser accepts?+
No. WebM VP9 alpha covers Chrome, Firefox, Edge and OBS; HEVC with alpha covers Safari and iOS. No single video format composites its alpha in all of them, which is why two-format serving or a still fallback is the standard pattern.