How do I convert WebM to MP4?
A WebM file is a video made for the web, and plenty of tools produce it: browser screen recorders, web cameras, canvas and game capture, downloads from open-content sites. The trouble starts afterwards. Many editors, phones, TVs, slide programs and upload forms accept only MP4. Converting WebM to MP4 gives you an H.264 video with AAC audio, the pair that almost every device plays.
This tool does it in your browser. A WebM normally holds VP8 or VP9, so the picture is always re-encoded: it is decoded and written again as H.264, at the quality you choose. Frame dimensions are rounded to even numbers, which H.264 requires, and the MP4 gets its index at the start so it can begin playing on a web page before it finishes downloading. Audio becomes AAC at 160 kbit/s.
FFmpeg compiled to WebAssembly does the work in a worker inside the page. The engine is about 32 MB, downloads from this site once and stays in your cache. The file is not uploaded: no server, no account, no watermark. A single browser thread encodes, so allow time for long videos; the progress bar shows what is left and you can cancel.
A recording that will not open in your editor
A very common case is a screen or camera recording made in the browser, which is often saved as WebM. Many editors and apps refuse WebM. Converting it to MP4 gives a file in the format they expect.
What the conversion does not keep
WebM can store transparency (an alpha channel) and several audio tracks. The MP4 produced here uses the plain yuv420p format of H.264, so transparent areas become opaque, and only the first video and first audio track are kept. If you need transparency, keep the WebM.
MP4 (H.264) compared with WebM (VP8 or VP9)
H.264 is decoded by hardware in nearly all phones, computers and TVs, which means smooth playback and low battery use. VP9 can be smaller at the same quality, but converting it to H.264 usually makes the file somewhat larger. If the video will only play in a modern browser, keeping the WebM is fine; convert when it has to travel.
How to convert WebM to MP4
- Drop one or more WebM files on the page, or pick them with the button. Only
.webmfiles are accepted here. An example is loaded first. - Choose the Quality: Smallest file (H.264 with CRF 30), Balanced (CRF 25, default) or High quality (CRF 21).
- Click Convert to MP4. The first time, the engine downloads before the work starts.
- Wait with the tab open; you can Cancel at any moment and nothing is changed.
- Download each MP4, or Download all as ZIP when you converted several. The name stays the same with the
.mp4extension. - If the result is too big, continue with Compress video; to take out the start or the end, use Trim video.
Examples
Browser screen recording for a company chat
recording.webm, 1920 × 1080, 4 minutes, from a browser recorder. The chat app wants MP4. Convert with Balanced: you get recording.mp4 with H.264 and AAC that plays in the app.
Webcam clip for a slide deck
intro.webm, 640 × 480, 20 seconds. Presentation programs usually insert MP4 but not WebM. Choose High quality: at that resolution the file stays small, and the slide plays inline.
A sample with odd dimensions
capture.webm, 853 × 479. H.264 in the format used here needs even width and height, so the tool rounds each down to the nearest even number and the result is 852 × 478. You lose at most one pixel on each side.
A long talk to cut and share
talk.webm, 50 minutes. Convert with Balanced, then cut the part you need with Trim video. Encoding runs on one browser thread, so expect it to take a good part of the video's length; keep the tab open.
Common errors and how to fix them
- "The media engine could not process this file." The file may be damaged or a recording that was cut off. Check it in a player and try Video converter.
- "The browser ran out of memory." Long, high-resolution videos are held in memory. Convert one file at a time, close other tabs or split the recording first.
- "is not a supported file for this tool." This page takes WebM only. For a MOV use MOV to MP4; for other formats use Video converter.
- The MP4 has no sound. The WebM had no audio track, or it was recorded without a microphone.
- The picture has lost its transparent background. MP4 cannot hold transparency here; keep the WebM for that use.
- The engine download fails. Click Try again; what already arrived is kept.
Frequently asked questions
Does converting WebM to MP4 lose quality?
Yes, a little, because the picture is re-encoded to H.264. At High quality (CRF 21) the difference is very hard to see. Keep the original WebM if the best quality matters.
Why is the MP4 bigger than the WebM?
H.264 is generally less efficient than VP9 at the same quality, and the tool re-encodes it. Choose Smallest file or run the result through Compress video.
Does it work on a phone?
Yes, in current browsers. Phones have less memory and process more slowly, so use short clips.
Is it free, and is my video uploaded?
It is free, without watermark or account, and nothing is uploaded: the conversion runs in your browser.
Can I convert MP4 to WebM too?
Yes, with MP4 to WebM.