WebM Video MIME Type
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 type | video/webm |
|---|---|
| Extensions | .webm |
| First standardized | 2010 |
| Created by | WebM Project |
| Browser support | Chrome, Edge, Firefox, Opera, Safari |
| Example applications | VLC media player, FFmpeg |
| Poly support | Yes. Poly recognizes `.webm` video and makes supported picture, sound, and metadata available for playback and discovery. |
| Indexed by Poly | Yes. Poly makes the filename, available technical details, spoken transcript, and visual content searchable. A transcript requires audible speech. |
| Preview in Poly | Yes. Poly provides a thumbnail, timeline previews, and in-app playback for supported media. |
| Poly agent | Yes. 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
audio/webm when the presentation is audio-only. Use video/webm when it contains video, with or without audio.2The 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:
| Layer | What it describes | Common WebM choices |
|---|---|---|
| Container | Tracks, timestamps, seeking data, and metadata | WebM |
| Video codec | How picture frames are compressed | VP8, VP9, or AV1 |
| Audio codec | How sound is compressed | Vorbis or Opus |
| Text track | Captions, subtitles, descriptions, or metadata | WebVTT |
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.
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:
| Format | Typical extension | Media type | Practical fit |
|---|---|---|---|
| WebM | .webm | video/webm | Open, web-focused delivery |
| MP4 video | .mp4 | video/mp4 | Broad browser, device, and editing compatibility |
| Matroska video | .mkv | video/matroska | Flexible 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:
| Goal | Practical choice | Tradeoff |
|---|---|---|
| Repair or reorganize a valid WebM | Remux compatible tracks into a new WebM | Fast and preserves encoded quality, but cannot fix an unsupported codec |
| Reach older devices | Encode H.264 video and AAC audio in MP4 | Broad compatibility, with possible quality loss from re-encoding |
| Keep an open web format | Encode VP9 or AV1 video with Opus audio in WebM | Efficient delivery, but test the actual target devices |
| Preserve all Matroska features | Use MKV | Broader 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
- WebM Project. About WebM. Overview of the open format, its Matroska foundation, and its core video and audio codecs. ↩ ↩2 ↩3
- WebM Project. WebM Container Guidelines. Naming, media types, codec declarations, EBML document type, seeking, and WebVTT guidance. ↩ ↩2 ↩3 ↩4 ↩5
- WebM Project. Frequently Asked Questions. Project sponsorship, codec policy, licensing, and the distinction between WebM and Matroska. ↩ ↩2 ↩3 ↩4
- Internet Assigned Numbers Authority. Media Types Registry. The current registry of standards-tree media types. ↩
- RFC Editor. RFC 9559: Matroska Media Container Format Specification. EBML identification, Matroska structure, and security considerations relevant to its WebM subset. ↩ ↩2
- MDN Web Docs. Media Container Formats. Current browser guidance for WebM, common codecs, and fallback choices. ↩ ↩2
- VideoLAN. VLC Features and Formats. First-party list of supported containers and codecs. ↩
- FFmpeg Project. FFmpeg Formats Documentation. WebM and Matroska demuxing, muxing, and related format options. ↩ ↩2