How to convert MP4 to WebM
- Choose an .mp4 (or .mov, .mkv, .webm) file.
- Keep Format on WebM; the codec is chosen automatically from what your browser can encode.
- Optionally lower Maximum resolution (videos are never enlarged).
- Select Convert to WebM and download the file.
Worked example
demo.mp4 (H.264 and AAC) becomes demo.webm. MP4 and WebM use different codecs, so the video is re-encoded rather than copied, and the file list names the codec used.
Formats and limits
| Input | MP4 |
|---|---|
| Output | WebM |
| Limits | Input files up to 4 GB are read in pieces; the converted file is built in memory, so outputs above about 2 GB may fail. Needs a browser with WebCodecs (current Chrome, Edge, Safari 17+ or Firefox 130+). Other browsers are told so before any work starts. |
| Engine | Mediabunny (WebCodecs): streams are copied when compatible, otherwise re-encoded; MP3 via a WebAssembly encoder |
Limitations
- The video is always re-encoded, which takes time and changes the picture slightly.
- Only the main video and audio tracks are kept.
- The WebM is built in memory, so outputs above about 2 GB may fail.
- Needs a browser with WebCodecs: current Chrome or Edge, Safari 17 or later, or Firefox 130 or later. Other browsers are told so before any work starts.
Questions
Why is the video re-encoded instead of copied?
MP4 holds H.264 or H.265 and WebM holds VP8, VP9 or AV1, so the video must be re-encoded. The codec is chosen from what your browser can encode.
It says a codec is unavailable.
Encoder support depends on the browser and device; try current Chrome or Edge.
Can I make the WebM smaller at the same time?
Yes. Set Maximum resolution to 1080p, 720p or 480p; videos are never enlarged.
Are subtitles kept?
No. Only the main video and audio track are kept.
Privacy
Runs on your device. Files and text are processed in this browser tab and are not uploaded.
This page opens the Video format converter ready for this task. See the privacy policy for how toolsdocks handles data.