What Is WebM? Why Browsers and Downloads Use It
By Ismail, Founder of Filoshi
WebM is the open, royalty-free video format made for the web. What's inside a .webm file, where it plays, and when to turn it into MP4 instead.
WebM is an open, royalty-free media format designed for the web. A .webm file is a container, based on Matroska, that holds VP8 or VP9 video (and, in newer files, AV1) together with Vorbis or Opus audio. It plays in modern browsers. Phones, video editors and TVs are less predictable.
The WebM Project describes it as an open, royalty-free media file format designed for the web, with a file structure based on the Matroska container. If you only need a file to play on a PC, a phone or a TV, the practical answer is usually to convert it to MP4.
Inside a WebM
A container is the box. The codecs are what is inside it. A WebM file has a few parts:
- Video: VP8 or VP9, both open codecs. MDN's container guide also lists AV1 as a video codec that WebM can carry.
- Audio: Vorbis or Opus. Opus is the modern choice, standardized as RFC 6716, and it scales from low bitrate speech to high quality stereo music.
- The wrapper: a Matroska-style structure that stores the streams and their timing.
The container does not decide quality. Two WebM files can look very different depending on the codec, the bitrate and the settings used to make them. If the difference between a container and a codec is new to you, the post on containers vs codecs explains it in plain words.
Where you meet WebM
Most people do not choose WebM. It shows up on its own.
- Browser screen recorders. Tools that record a tab, a window or the screen from inside a browser often save a .webm file, because browsers can write it natively.
- Downloads from video sites. Web video is frequently delivered in WebM form, so saving a clip with a download tool can give you a .webm.
- Web animation. Short looping clips on web pages are often WebM, as a smaller alternative to GIF. The post comparing GIF, MP4 and WebP animation goes into this.
- Audio-only files. A WebM can hold only an Opus or Vorbis track. MDN lists a separate
audio/webmtype for this. A voice recording from a web tool can arrive as an audio-only .webm.
Where it plays and where it does not
In browsers, WebM is well supported. MDN's container guide lists Chrome, Edge, Firefox and Safari as supporting the VP8 and VP9 video codecs and the Vorbis and Opus audio codecs in WebM. It also notes that Firefox for Android does not yet support AV1. Browser support changes over time, so check the compatibility tables on MDN for your exact versions.
Outside the browser the picture is mixed. Some video editors, phone gallery apps, smart TVs and older media players do not open WebM, or open it without sound. On Windows, a .webm file that shows a black picture or no audio often needs a Microsoft Store extension. The free Web Media Extensions and the AV1 Video Extension are the two to look at. The post on video that won't play on Windows 11 walks through the fix step by step.
Because support varies, a WebM that plays fine in your browser can still fail when you drop it into an editor or send it to a friend. That is the main reason people convert.
WebM vs MP4
MP4 is the safer choice for sharing. It is built on well-known codecs and is understood by nearly every phone, TV and editor. MDN calls MP4 a popular container that supports several of the most-used codecs and is broadly supported.
WebM's advantages are about openness. The format and its VP8, VP9 and Opus codecs are free to use without licenses, which suits browsers and open-source tools. For you as a viewer, there is not much of a quality difference. A well-made WebM and a well-made MP4 can look equally good at the same bitrate.
| Question | WebM | MP4 |
|---|---|---|
| Typical video codec | VP9 (or VP8, AV1) | H.264 (or HEVC, AV1) |
| Typical audio codec | Opus or Vorbis | AAC |
| Licensing | Open and royalty-free | Depends on the codec |
| Plays in browsers | Yes, in current ones | Yes |
| Plays in editors, phones, TVs | Varies | Almost always |
When to convert
- For editing. If your editor will not import a .webm, or imports it with stuttering playback, convert to MP4 first.
- For sharing to phones and TVs. MP4 with H.264 and AAC is the format that works most often.
- For audio. An audio-only .webm can be converted to MP3 so any player can open it.
- For the web. Going the other way, converting an MP4 to WebM can give web pages a smaller clip, if you need that.
Remember that converting between lossy formats re-encodes the video, which adds a little loss. Keep the original if the quality matters.
Converting WebM with Filoshi
Filoshi converts in both directions. By default, WebM to MP4 gives H.264 video with AAC audio, and MP4 to WebM gives VP9 video with Opus audio. WebM to MP3 pulls the sound out of an audio or video file. All of these passed Filoshi's automated test on Windows 11, and the files are converted on your own PC, never uploaded. You can also try one WebM free in the browser on the home page, where it runs with FFmpeg.wasm. The video is always re-encoded rather than copied, so expect a conversion to take a little while on a long clip.
If you work with video files often, the video size guide is a good companion read.
A practical way to check what you have
You cannot tell what is inside a .webm by its name, because VP8, VP9 and AV1 video can all sit in the same wrapper. Right-click the file, open Properties and look at the Details tab, or open it in a player that shows codec information. If a WebM plays with sound but a black picture, the video codec is usually the missing piece. If it shows a picture and no sound, the audio codec is. That tells you which Windows extension, if any, to look for, and it tells you what a conversion will have to re-encode.
Screen recordings made in a browser deserve one more note. They often have no fixed length stored in the file, so a player may not show the total time or let you jump around. Converting the file to MP4 usually fixes that, because the new file gets a proper index and duration. It is another good reason to convert before editing.
Frequently asked questions
Is WebM better quality than MP4?
No, not by itself. The container does not decide quality. Quality depends on the codec, the bitrate and the encoder settings. A WebM with VP9 and an MP4 with H.264 can look about the same at similar bitrates. The real difference is compatibility: MP4 plays in more places.
Why won't my WebM file play on my iPhone?
Support depends on the app and the system version. MDN lists Safari as supporting WebM with VP8, VP9, Vorbis and Opus, but a gallery app, a messaging app or an editor may not open the file. Converting it to MP4 with H.264 and AAC avoids the problem.
Can WebM contain only audio?
Yes. A WebM can hold just an Opus or Vorbis audio track. MDN lists an audio/webm type for it. Audio-only WebM files often come from web recording tools. If a player will not open one, converting it to MP3 is the simple fix.
Is WebM free to use?
Yes. The WebM Project describes the format as open and royalty-free, and the codecs it uses (VP8, VP9, Vorbis, Opus) are likewise free of licensing fees. Playing it on a given device still depends on whether that device has the codecs installed.
Sample Rate and Bit Depth: 44.1 vs 48 kHz, 16 vs 24-bit
Next →24, 30 or 60 fps? Video Frame Rates Explained
Ready to convert files privately?
1,841 tested conversions. No uploads. No accounts. Runs entirely on your machine.
Get Filoshi · $29