Test a transparent WebM video

Updated: November 25, 2026

If a video intended to be transparent appears in a black rectangle, test the WebM over two page backgrounds. The alpha channel says how much of the background should show through each pixel. The file needs to retain that channel, and the browser needs to composite it.

Prepare a short sample

Export two seconds of the animation with an edge that has partial transparency. Try a white arrow with a soft shadow. Put the same file in a light box and a dark box. If the arrow stays white and its shadow changes with the background, the composition works in that browser.

Check the file and the page separately

If both boxes show the same rectangle, inspect the export first. Open the file in an editor that can display its alpha channel. Confirm the source had transparency and the export kept it. Then inspect the page’s video element and its styles. A dark background on that element can also hide transparency.

Temporarily change both backgrounds to strongly contrasting colors and look at a partially transparent edge. A rectangle baked into the picture stays visible on both. Record the browser and exact file you tried. A later export may drop the alpha channel while keeping the same filename.

Prepare another way to show it

Test the published page in the browsers and devices your audience uses, including phones. If a browser does not composite the video as expected, offer a transparent still that serves the same visual purpose. For an explanatory video, keep the information available in the page text as well.

Frequently asked questions

WebM is the container. The alpha channel depends on how the video was encoded and whether the player supports that output.

You might also like

Host your videos for free and earn from every view

Create your account in under a minute, upload your first video and start earning from day one.