WebM to MP4 Converter

Convert WebM to MP4 locally in your browser, one file up to 50 MB at a time. This tool re-encodes VP8, VP9 and AV1 video to H.264 with AAC audio.

Drop files here or choose files
Converted in your browser, not uploaded · one video at a time, up to 50 MB

A WebM from the web usually holds VP8, VP9 or AV1 picture. This tool re-encodes VP8, VP9 and AV1 to H.264 for MP4 output — some quality is lost, and it takes far longer than a container swap. The few .webm files that already hold H.264 or HEVC picture are stream-copied instead, without re-encoding.

How to use

  1. Choose one WebM file: Drop a .webm onto the box or click to pick it — one file per run, up to 50 MB. Dropping several files at once adds none of them and tells you how many were refused. The picker shows other videos too, and a file that isn't .webm is converted anyway with a note.
  2. Press Convert to MP4: The first run shows "Getting the engine ready…" while about 31 MB of processing engine is fetched and your file is inspected; a percentage appears once the conversion itself starts. Cancel works at every stage and returns you to the form with no error.
  3. Read what the result says about your file: The first line names the route the initial inspection predicted — stream copy, or picture re-encoded to H.264 — with the size before and after. The lines under it describe that predicted route: the picture, the sound, the extra tracks, the playback index and the metadata. The conversion engine reads the file again on its own, and the two readings are never compared.
  4. Save the MP4: The result is previewed with a video player when your browser can decode it, and falls back to a card with a download button when it can't. Download gives you a file named after the original with .mp4 on the end; on a phone, Save to device opens the system share sheet if the browser supports file sharing and otherwise downloads the MP4.

How this WebM to MP4 converter works

This page converts WebM to MP4 locally in your browser, one file up to 50 MB at a time: pick a file, press Convert to MP4, and the tool re-encodes VP8, VP9 and AV1 video to H.264 with AAC audio, handing back an MP4 named after the original. Nothing is uploaded and there is no sign-up. The converter is FFmpeg compiled to WebAssembly (ffmpeg.wasm), downloaded with the page and run on your own device, so a file your device cannot finish ends in an error message rather than somewhere else. Nothing is kept: close the tab and both the file and the result are gone.

Which of two routes runs is decided by the picture codec inside the file, not by its name. A WebM downloaded from a website or produced by a screen recorder usually carries VP8, VP9 or AV1 picture with Opus or Vorbis sound, and this tool re-encodes VP8, VP9 and AV1 to H.264 for MP4 output, with the sound becoming AAC. Some .webm files — re-wrapped downloads, and the output of some capture tools — already carry H.264 or HEVC picture, and those are copied into the MP4 container with FFmpeg's -c copy, with no encoder involved at all.

There is nothing to choose here: no quality slider, no resolution, no frame rate, no container choice, no metadata switch. The first run spends a while on "Getting the engine ready…" because about 31 MB of processing engine has to be downloaded and compiled, and the file is inspected twice before the conversion starts; there is no percentage during that part, and the bar only starts moving once the conversion itself is running. The result panel then names the route that first inspection predicted for your file — the conversion engine inspects the file again independently, and the code never compares the two readings.

Picture codec inside the .webmWhat this page does
VP8, VP9 or AV1 — what a WebM normally holdsRe-encodes the picture to H.264 and the sound to AAC
H.264 or HEVC (H.265)Copies the streams into an MP4 container (-c copy)
MPEG-4 Part 2 (DivX, Xvid)Re-encodes — a bare container swap would not play reliably
Anything else, or no codec could be readRe-encodes the picture to H.264 and the sound to AAC

The route is chosen from the codec the file inspection reports, never from the file extension.

Can you convert WebM to MP4 without losing quality?

For most WebM files, no. This tool re-encodes VP8, VP9 and AV1 to H.264 for MP4 output, so the picture is decoded and encoded again — a lossy step. That encode is fixed at CRF 23 with the veryfast preset and 8-bit yuv420p, and the sound becomes AAC at 128 kbps whether it started out as Opus or Vorbis. There is no setting to raise those values, and no way to get back detail the original encoder already discarded.

The one case that is lossless for the streams it keeps is the copy route. When the inspection reads H.264 or HEVC (H.265) picture inside the .webm, the arguments are just -c copy: the same encoded picture and sound data are written into the MP4 container, so there is no re-compression and no generation loss. Even that route can't be called instant, though — the engine still has to be prepared, the file is still inspected twice, and the whole file is still read into memory and written back out. This page quotes no timings for either route, because none were measured.

Neither route is a compressor and neither promises a smaller file. On the re-encode route the size is a by-product of CRF 23: it can come out smaller or larger than the WebM you started with, because the newer formats a WebM usually holds are generally efficient at storing the same picture. On the copy route the streams aren't re-compressed, but MP4 container overhead and the question of which tracks actually came along both affect the result, so it can move in either direction there too.

If what you actually need is a smaller file rather than a different container, Compress Video re-encodes with a quality setting you choose.

What is kept, what is dropped, and what happens to the metadata

The two routes differ on nearly every line, which is why the result panel describes the route predicted for your file instead of making one promise for both. On the re-encode route the arguments are explicit: -map 0:v:0 -map 0:a? -sn -dn. The first picture track and every audio track are written out, each audio track becoming AAC, and subtitle and data tracks are not written at all. If the first picture track in the source happens to be a cover image rather than the video itself, that image is what you get — nothing in the code excludes attached pictures.

On the copy route nothing selects the tracks. There is no -map, so which streams are taken is left to the engine's default selection, and the code contains no ordering rule of its own. That is why a file with several audio tracks gets a warning that they can't all be promised, and why subtitle tracks may or may not appear in the result: this route neither keeps nor discards them deliberately. If you need one specific track kept, this isn't the tool for it.

Two things happen to the metadata on both routes. Location (GPS) tags are cleared: on this converter's two routes, nine location metadata keys are blanked, including Apple's com.apple.quicktime.location fields. This page provides no option to keep them. The original recording date (creation_time) isn't carried over either, so a photo library may file the result under today's date. Titles, comments and similar global tags are normally kept, and chapters are left to FFmpeg's default behaviour.

One further difference matters if the MP4 is going onto a web page. The re-encode route writes the playback index at the front of the file (-movflags +faststart), so a player that streams progressively can read the file's map first. The copy route does not move the index, which is harmless for local playback but can mean a web player has to download the whole file before it starts.

ItemRe-encodeStream copy
Audio tracksAll of them, each re-encoded to AAC 128 kbpsNot all promised — the engine's default selection decides
SubtitlesDropped (-sn)May or may not appear in the result
Playback index (moov)Written at the front (+faststart)Not moved
Location (GPS) dataRemovedRemoved
Recording dateNot copied into the resultNot copied into the result

Each line comes from the arguments the conversion actually runs; the copy route sets no track selection of its own.

Stream-copied file that needs its index moved forward? Faststart MP4 does exactly that, again without re-encoding.

Limits, browser support, and what the buttons do

One file per run, up to 50 MB, MP4 out. Once a file is in the list the drop area is gone, so press ✕ to remove it before choosing another. The file picker will offer other videos too, and a file that isn't .webm is converted anyway with a note, by the same rule as everything else: H.264 or HEVC video is stream-copied, other codecs are re-encoded. Two kinds of file are refused outright — one whose streams can't be read at all, which is reported as damaged before any conversion starts, and an audio-only file, because an MP4 made here needs a picture track. That second case includes those .webm audio downloads that contain nothing but Opus.

Both routes run through the multi-threaded build of the engine, which needs SharedArrayBuffer and cross-origin isolation, so this page is served with the headers that provide them and carries no ads or analytics. If your browser doesn't report cross-origin isolation, the page stops you on the click with a message rather than letting you download 31 MB of engine first. The two conditions are checked in different places, though, so a browser that reports isolation but withholds SharedArrayBuffer isn't stopped early: there the engine falls back to its single-threaded build and the conversion can end in the generic error instead. Whether a particular window works comes down to what the browser actually hands the page — when it does, you can convert WebM to MP4 in the browser with nothing installed.

The whole file is read into memory, with the input and the output both present inside the engine, so a large clip on an older phone can run out of memory and end in an error rather than a download. The engine also stops itself if it goes 75 seconds without reporting any progress. Cancel works while the file is being read, while the engine is loading, during the inspection passes and during the conversion, and returns you to the form with no error line — though an engine download that hasn't finished initialising may carry on in the background.

When the conversion finishes, the result is previewed with a video player if your browser can decode it, and falls back to a card with the file name and a download button if it can't. The download is named after your original file with .mp4 on the end. On a phone the save button opens the system share sheet when the browser supports sharing files, and simply downloads the MP4 when it doesn't; if you dismiss the share sheet yourself, nothing is saved and nothing else happens.

When this is the wrong tool

It can't make a video better than it was. The copy route reproduces what was already in the file and the re-encode route can only lose a little, so there is no upscaling, no sharpening and no bitrate to raise. It also can't repair a genuinely broken file: if the inspection can't read any streams, the file is refused instead of being patched up.

It can't hit a size limit either. There are no compression levels and no target size on this page, so a re-encoded MP4 that is still too large for an upload form needs a second pass through a compressor.

And it only goes one way, with no editing on the side: no trimming, muting, rotating, resizing or track picking, no batch runs, and no MP4-to-WebM page on this site yet. Transparency doesn't survive the trip — VP8 and VP9 can carry an alpha channel, but H.264 with 8-bit yuv420p has nowhere to put one, so transparency is not preserved in the MP4, and we have no measured sample showing how a given file ends up looking. HDR deserves the same caution: the re-encode always writes 8-bit yuv420p and has no tone-mapping step, so colours and brightness can differ from the original.

When the limit is a specific number of megabytes, Compress Video to Target Size aims at it directly.

How this tool is checked

  • The logic behind this tool is covered by 12 automated test cases (hand-checked examples, edge cases and invalid input), and they run again before every release.
  • Before each release, a real browser opens this page, runs it on sample files (including a damaged one) and checks the file it produces.
  • Your files are processed in your browser and are never uploaded to our server.
  • Formulas, figures and definitions are checked against the sources listed at the end of this page.

How we build and test our tools →

Frequently asked questions

Does converting WebM to MP4 lose quality?
VP8, VP9 and AV1 video is re-encoded with lossy compression; selected H.264 or HEVC streams are copied without re-encoding. The re-encode is fixed at CRF 23 with AAC 128 kbps sound, and the stream copy runs as -c copy, so nothing is re-compressed on that route. Which one you get is decided by the picture codec the inspection reads, not by the file name.
Is my WebM uploaded to a server?
No. The conversion runs in your browser with ffmpeg.wasm, and the code has no server fallback — the fallback list is empty and the fallback function only raises an error, so nothing is sent anywhere. Closing the tab discards both the file and the result.
How large a WebM can I convert, and can I do several at once?
One file at a time, up to 50 MB. Dropping several files adds none of them and tells you how many were refused. On an older phone the practical ceiling is lower than the limit, because the whole file is read into memory with the output sitting alongside it.
Why does the page say my browser needs multi-threaded processing?
Because this conversion needs SharedArrayBuffer and cross-origin isolation, and your browser isn't reporting isolation for the page. Open it in an up-to-date Chrome, Edge or Firefox and reload; private windows and some in-app browsers can switch that capability off. The check happens on the click, before the engine downloads.
Why is my WebM to MP4 conversion so slow?
The re-encode route decodes every frame and compresses it again as H.264, single-threaded inside WebAssembly — and that is the route a VP9 WebM takes. The first run also fetches about 31 MB of engine and inspects the file twice. No timings are quoted here because none were measured; the engine does give up if it goes 75 seconds with no progress.
What happens to subtitles, extra audio tracks and the recording date?
Subtitles are dropped on the re-encode route (-sn) and may or may not survive a stream copy, since that route selects no tracks at all. A re-encode brings every audio track across as AAC; a copy can't promise all of them. On both routes, location data is removed and the recording date isn't copied into the result.
Can it keep a transparent background or HDR colours?
No to transparency, and HDR isn't properly converted either. H.264 with 8-bit yuv420p has no alpha channel, so a transparent VP8 or VP9 WebM loses its transparency in the MP4. The re-encode also writes 8-bit yuv420p with no HDR-to-SDR step, so an HDR source can come out with different colours and brightness.
Can I choose the quality, or convert an MP4 back to WebM?
Neither. This page has no settings at all — no quality, resolution, frame rate or bitrate — and it only writes MP4; there is no MP4-to-WebM page here yet. If the MP4 is too big, send it through one of the video compressors on this site afterwards.

Add this tool to your website

Free for any website, personal or commercial. Paste the code where you want the tool to appear — it works on WordPress, Blogger, Google Sites, Notion and plain HTML.

This tool needs a browser mode that only works on its own page, so the embed shows a card with a button that opens it in a new tab.

<div class="gingertool-widget" data-embed="https://gingertool.com/embed/en/video/webm-to-mp4/" data-height="240" style="font-size: 13px; line-height: 20px; margin: 6px 0 16px; text-align: left">WebM to MP4 Converter &#183; <a href="https://gingertool.com/en/video/webm-to-mp4/">Gingertool</a></div>
<script src="https://gingertool.com/embed.js" async></script>

Please keep the credit link below the tool. Embedded tools show no ads.

Step-by-step: Google Sites · Blogger · WordPress · Notion

Cite this tool

Using a result in a report, paper or assignment? Copy a ready-made reference.

APA
Gingertool. (2026). WebM to MP4 Converter [Online tool]. Retrieved November 21, 2026, from https://gingertool.com/en/video/webm-to-mp4/
MLA
“WebM to MP4 Converter.” Gingertool, November 21, 2026, https://gingertool.com/en/video/webm-to-mp4/. Accessed November 21, 2026.
BibTeX
@misc{gingertool-webm-to-mp4,
  author = {{Gingertool}},
  title = {WebM to MP4 Converter},
  year = {2026},
  url = {https://gingertool.com/en/video/webm-to-mp4/},
  note = {Accessed: 2026-11-21}
}