Reference · Containers

What is WebM?

WebM is an open multimedia container derived from a constrained subset of Matroska and designed for predictable web media delivery.

WebM is: a container. WebM is not: VP9, VP8, AV1, Opus or Vorbis; those are codecs used within WebM profiles.

Typical WebM codecs

Track typeCommon WebM codecs
VideoVP8, VP9 and modern AV1 deployments where supported
AudioVorbis or Opus
Container familyMatroska-derived, with a deliberately constrained web-oriented profile

What WebM keeps—and what it leaves out

WebM keeps Matroska's track-based structure, allowing many tracks, track flags, chapters and tags. But WebM guidelines intentionally reject some broader Matroska features to make browser/player behaviour more predictable.

  • Multiple media tracks: supported.
  • Default/forced track flags: supported.
  • Chapters: supported in the WebM subset.
  • Tags: supported in a restricted form.
  • General Matroska Attachments: not part of the WebM profile.
  • Codec choices: deliberately constrained compared with ordinary MKV.

WebM vs MKV

WebM is based on Matroska but is intentionally more restrictive. MKV is appropriate when broad codec, attachment and presentation flexibility matters; WebM prioritises interoperable web delivery.

The .webm extension still does not tell you the codec

Two .webm files can use different video or audio codecs. If a device says it supports “WebM,” you still need to know which codecs, profiles, bit depths and features it actually decodes.

What codecs does WebM use?

Media typeCommon WebM codecsWhat they do
VideoVP8, VP9, AV1Compress the moving image
AudioVorbis, OpusCompress the sound
ContainerWebMPackages the streams together

WebM vs MP4

MP4 is usually the safest compatibility choice across phones, TVs, apps, and social platforms. WebM is especially useful for web delivery, open codec workflows, transparent video use cases, and browser-oriented media.

Frequently asked questions

What does WebM mean?

WebM means Web Media. It is a web-focused container format for audio and video.

Is WebM a codec?

No. WebM is a container format, not a codec.

What codecs does WebM use?

WebM commonly uses VP9 or AV1 for video and Opus or Vorbis for audio.

Is WebM better than MP4?

WebM can be excellent for web delivery, but MP4 is usually more broadly compatible.

Can WebM contain AV1 or Opus?

Yes. WebM can contain AV1 video and Opus audio.