WebM Video MIME Type

Learn what video/webm identifies, which codecs WebM supports, how browsers play it, and how Poly makes WebM video useful.

MIME type details for video/webm

In active use
MIME typevideo/webm
Extensions
.webm
First standardized2010
Created byWebM Project
Browser supportChrome, Edge, Firefox, Opera, Safari
Example applicationsVLC media player, FFmpeg
Poly supportYes. Poly recognizes `.webm` video and makes supported picture, sound, and metadata available for playback and discovery.
Indexed by PolyYes. Poly makes the filename, available technical details, spoken transcript, and visual content searchable. A transcript requires audible speech.
Preview in PolyYes. Poly provides a thumbnail, timeline previews, and in-app playback for supported media.
Poly agentYes. The Poly agent can use supported visual content, spoken transcript, and metadata from the video.

What does video/webm mean?

The video/webm media type identifies a WebM file containing video, usually with the .webm extension. WebM is a multimedia container rather than a codec. It packages timed video, audio, and optional WebVTT text tracks while the codecs determine how those tracks are compressed.12

WebM is based on Matroska, but it defines a narrower profile for predictable web playback. The WebM Project specifies VP8 or VP9 video and Vorbis or Opus audio. Modern tools also commonly use AV1 video in WebM.13

Use audio/webm when the presentation is audio-only. Use video/webm when it contains video, with or without audio.2

The WebM Project documents .webm and video/webm as the format's conventional identifiers. The current IANA media-type registry does not list video/webm, so it is best described as a well-established industry media type rather than an IANA registration.24

How WebM differs from a codec

A WebM filename does not mean “VP9 video.” Container and codec answer different questions:

LayerWhat it describesCommon WebM choices
ContainerTracks, timestamps, seeking data, and metadataWebM
Video codecHow picture frames are compressedVP8, VP9, or AV1
Audio codecHow sound is compressedVorbis or Opus
Text trackCaptions, subtitles, descriptions, or metadataWebVTT

This distinction matters when a file opens but one track does not play. A browser may understand the WebM container yet lack support for a particular codec, profile, bit depth, or hardware path.

For HTML, include a codecs parameter when you know the track formats:

<source src="movie.webm" type='video/webm; codecs="vp9, opus"'>

The browser can use that declaration to choose among sources before downloading the whole video. The actual file still needs to match the label.2

History of WebM

The WebM Project introduced WebM in 2010 as an open media format designed for the web. The project is open source and sponsored by Google. Its container structure uses a constrained subset of Matroska, paired initially with VP8 video and Vorbis audio. VP9, Opus, WebVTT tracks, and AV1-based workflows followed as the open-media ecosystem developed.13

That deliberately narrow design gives .webm a clearer compatibility promise than a general .mkv file. Matroska can carry a much broader range of codecs and features, while WebM focuses on combinations intended for web delivery.3

How to identify and open a WebM file

WebM uses EBML, the same binary framework as Matroska. Both can begin with the EBML header bytes 1A 45 DF A3, so those bytes alone are not a unique WebM magic number. A reliable inspector parses the EBML header and checks that its document type is webm before examining the tracks and codecs.25

Current Chrome, Edge, Firefox, Opera, and Safari releases can play common WebM combinations. Codec support remains the deciding factor, especially on older devices or with unusual profiles. MDN recommends WebM as an open web-video container and suggests an MP4 fallback when broad compatibility matters.6

For local playback and inspection:

  • VLC supports WebM and its common codecs.7
  • FFmpeg can inspect, remux, and encode WebM files.8
  • A current browser is often enough for a delivery-ready file.
If a WebM video has sound but no picture, or picture but no sound, inspect both track codecs. Renaming the file cannot add a missing decoder or make incompatible tracks valid WebM.

WebM support in Poly

Poly turns supported .webm videos into media you can browse, search, and discuss:

  • Browse with a representative thumbnail and timeline previews.
  • Play the video in Poly and jump to relevant moments.
  • Find available details such as duration, dimensions, frame rate, codecs, color information, and audio tracks.
  • Search by filename, spoken transcript, and visual content.
  • Ask the Poly agent about supported visual content, speech, and metadata.

Transcript search requires a usable audio track with audible speech. Silent video can still benefit from visual search. Playback and content-aware features depend on the media carried inside the container.

See Supported File Types for the compact video feature comparison.

WebM compared with MP4 and Matroska

These containers overlap, but they serve different priorities:

FormatTypical extensionMedia typePractical fit
WebM.webmvideo/webmOpen, web-focused delivery
MP4 video.mp4video/mp4Broad browser, device, and editing compatibility
Matroska video.mkvvideo/matroskaFlexible tracks, attachments, and preservation workflows

WebM's narrower profile can make web delivery simpler. MP4 often provides the widest compatibility, particularly with H.264 video and AAC audio. Matroska is a better fit when retaining many tracks, attachments, or less common codecs matters more than native browser playback.36

Changing .mkv or .mp4 to .webm does not convert the file. The container must be written correctly, and every retained track must be suitable for the destination.

Converting WebM without unnecessary quality loss

Inspect the source tracks before choosing a conversion method:

GoalPractical choiceTradeoff
Repair or reorganize a valid WebMRemux compatible tracks into a new WebMFast and preserves encoded quality, but cannot fix an unsupported codec
Reach older devicesEncode H.264 video and AAC audio in MP4Broad compatibility, with possible quality loss from re-encoding
Keep an open web formatEncode VP9 or AV1 video with Opus audio in WebMEfficient delivery, but test the actual target devices
Preserve all Matroska featuresUse MKVBroader container flexibility, with less predictable browser playback

FFmpeg supports WebM demuxing and muxing. Stream copying avoids another lossy generation when the existing tracks already suit the destination; otherwise transcoding is required.8 After conversion, check duration, synchronization, captions, color, transparency, and every required audio track before removing the source.

Security and privacy considerations

Treat WebM files from unknown sources as untrusted media. The container and its codecs are complex inputs, so use maintained browsers and players. Matroska's security guidance also warns readers not to execute attachments and to validate data before using it outside the container.5

WebM can carry titles, language labels, timestamps, captions, and multiple tracks. Review those details before publishing sensitive footage. Removing the visible video alone may not remove private speech, captions, or descriptive metadata.

Footnotes

  1. WebM Project. About WebM. Overview of the open format, its Matroska foundation, and its core video and audio codecs. 2 3
  2. WebM Project. WebM Container Guidelines. Naming, media types, codec declarations, EBML document type, seeking, and WebVTT guidance. 2 3 4 5
  3. WebM Project. Frequently Asked Questions. Project sponsorship, codec policy, licensing, and the distinction between WebM and Matroska. 2 3 4
  4. Internet Assigned Numbers Authority. Media Types Registry. The current registry of standards-tree media types.
  5. RFC Editor. RFC 9559: Matroska Media Container Format Specification. EBML identification, Matroska structure, and security considerations relevant to its WebM subset. 2
  6. MDN Web Docs. Media Container Formats. Current browser guidance for WebM, common codecs, and fallback choices. 2
  7. VideoLAN. VLC Features and Formats. First-party list of supported containers and codecs.
  8. FFmpeg Project. FFmpeg Formats Documentation. WebM and Matroska demuxing, muxing, and related format options. 2
© Poly Corp. 2026