WebM

The open, royalty-free video container Google launched for the web. Browser screen recordings produce it, and YouTube delivers much of its video in its codecs.

Updated: November 2026 4 min read Encoding
In short

WebM is an open video container — the file wrapper, like MP4 or MOV. It holds VP8, VP9 or AV1 video and Opus or Vorbis audio, all royalty-free. Chrome, Firefox and Edge play it; for maximum compatibility, especially on Apple devices, MP4 with H.264 is still the safe choice.

What is WebM?

WebM is a video file format Google introduced in 2010 for the web, based on the Matroska (MKV) container. It defines which codecsCodecThe algorithm that compresses and decompresses video — H.264, H.265 (HEVC) and AV1 are the most common in modern streaming.Open definition → it can hold: VP8, VP9 or AV1AV1The open, royalty-free codec: about 40% less data than H.264 for the same picture, in exchange for heavier encoding.Open definition → for video and Vorbis or Opus for audio. All of them are open and royalty-free.

A container and a codec are different things. The container is the wrapper that keeps the video and audio tracks with their metadata; the codec compresses each track. That is why two WebM files can differ a lot in quality and size.

Where you meet WebM

Screen and camera recordings made in the browser with the MediaRecorder API usually come out as WebM, and so do many web capture tools. YouTube uses VP9, one of the WebM codecs, for much of its video. WebM is also used for short animations on websites as a lighter alternative to GIF.

WebM vs MP4

WebMMP4
Video codecsVP8, VP9, AV1H.264, HEVC, AV1
Audio codecsOpus, VorbisAAC, MP3, Opus
LicensingRoyalty-freeDepends on the codec
Browsers Chrome, Firefox, Edge; Safari depending on version and codecAll
Editing softwareUneven supportPractically all

If the video must play on every device, MP4 with H.264H.264 (AVC)The most compatible video codec: practically every browser, phone and smart TV plays it. The safe format to upload and deliver.Open definition → is still the safe choice.

How to convert WebM to MP4

HandBrake

Free for Windows, macOS and Linux. Open the WebM, choose MP4 as the format and H.264 as the video codec.

FFmpeg

A command-line tool for converting batches of files or automating it on a server.

A video platform

If the video is going to be published, the platform transcodesTranscodingRe-encoding a source video into multiple resolutions and bitrates so a player can switch between quality levels on the fly.Open definition → the original into delivery formats.

Further reading

  • The WebM Project — the official site of the format.
  • Codec — the difference between a codec and a container.
Denis Konnov

Written by

Denis Konnov Verified

CMO at Kinescope

Denis leads marketing and content at Kinescope, working closely with the platform's engineers. This glossary is reviewed and kept up to date by the team building Kinescope's streaming, encoding and CDN delivery infrastructure.

FAQ

Can’t find the answer you need? Check out our Help Center.

A video file in the open container Google launched in 2010. Inside it holds VP8, VP9 or AV1 video and Vorbis or Opus audio, all royalty-free.

Both work on the open web. MP4 with H.264 plays on practically any device and in any program; WebM is royalty-free and is what many in-browser recordings produce. If in doubt, MP4 is the more compatible choice.

With HandBrake, which is free, or with FFmpeg. Choose MP4 as the container and H.264 as the video codec for maximum compatibility.

WebM support in Safari arrived late and depends on the codec and the OS version. On Apple devices, MP4 with H.264 or HEVC always works.