MP4 Converter
Published Updated
Re-record any video your browser can play as an MP4, or a WebM where the browser cannot write MP4, at up to 30 frames per second.
Playing is the test
This converter never opens the file's codecs itself. If your browser can show the video in the preview, the conversion can run, and if it cannot, no setting will help. In practice:
- MP4 with H.264 and WebM play in current browsers. A MOV plays when the codec inside does, and iPhone clips are often HEVC, which needs a browser with HEVC support.
- AVI, MKV and WMV often do not play in a browser, even if the extension is accepted.
- A file the browser cannot open shows a message to check that it is valid and not corrupted.
The MDN guide to media containers lists which formats browsers support.
What is fixed
| Setting | Value |
|---|---|
| Frame rate | Up to 30 per second |
| Picture size | Same as the source |
| Video bitrate | The browser's default |
| Container tried first | MP4 with H.264, then MP4, then WebM |
| Sound | AAC in MP4, Opus in WebM, where the browser lets the page capture the audio |
| Speed | Playback speed |
Converting a video to MP4
Step 1
Add any video
The picker accepts any file marked as video. What matters is whether your browser can play it.
Step 2
Press Convert to MP4
The clip plays in a hidden player and is drawn onto a canvas while the browser records it. The percentage follows the playback.
Step 3
Preview and download
Check the result. The button says MP4 or WEBM, depending on what your browser could record.
Why it records instead of converting
Browsers have no API for converting a file, only for playing and recording it. So the tool plays the video into a canvas and records the canvas with MediaRecorder. That is simple and runs on your device, but it means a second pass of lossy compression and playback-time processing. If you only need to change the wrapper of an H.264 file, a desktop tool is quicker and loses nothing.
One WebM in, three browsers out
The test input is a generated 4-second, 640 x 480 VP8 WebM at 25 fps with no sound (712,706 bytes). We ran the tool's recording code on it, which plays the video into a canvas and records the canvas, in Chromium 153.0.8010.12 (the build that ships with Playwright, headless, not Google Chrome), Playwright's WebKit build (user agent Version/26.6, not the Safari app) and Firefox 155.0.
| Engine | Container written | Output size | Recording time | Video length read back |
|---|---|---|---|---|
| Chromium 153 | MP4 (avc1) | 594,614 B | 4.01 s | 4.00 s |
| WebKit 26.6 | MP4 (avc1) | 702,851 B | 4.03 s | 4.03 s |
| Firefox 155 | WebM (VP8) | 910,933 B | 4.03 s | 4.03 s |
Two things follow from this run. The recording took as long as the video, as the page says. And converting did not shrink the file: the output was 83 percent of the source in Chromium, 99 percent in WebKit and 128 percent in Firefox, where the tool wrote WebM and not MP4. A different source, a longer clip or another bitrate would give other ratios.
In Firefox the tool never offered an MP4 here, because MediaRecorder there reported no support for any MP4 type, only for WebM with VP8. Chromium and WebKit reported support for the avc1 type and for plain MP4, and all three refused the type string h264, which is why the tool tries avc1 first.
What browsers say they can play
Before the tool records anything, the browser has to play your file. We asked each engine canPlayType for a few types. Its answer is probably, maybe, or nothing, and maybe is a guess, not a promise.
| Type | Chromium 153 | WebKit 26.6 | Firefox 155 |
|---|---|---|---|
| MP4 with H.264 (avc1.42E01E) | probably | probably | probably |
| MP4 with HEVC (hvc1) | no answer | probably | no answer |
| WebM with VP8 or VP9 | probably | probably | probably |
| Matroska (MKV) | maybe | no answer | maybe |
| AVI | no answer | maybe | no answer |
| QuickTime (MOV) | no answer | maybe | maybe |
The AVI row matches what we found on the AVI to GIF page: Chromium 152 and Firefox 155 refused both of our test AVI files, while the WebKit build opened the Motion JPEG one.
MP4 Converter FAQ
My AVI or MKV will not load. Why?
The page does not decode video itself. It asks your browser to play the file, and browsers refuse many AVI and MKV files because of the codec inside, for example DivX or Xvid. If the preview stays empty, convert it with a desktop program.
Why did I get a .webm file?
The tool tries H.264 MP4 first, then falls back to WebM when your browser cannot record MP4. The download button and the result line show which one you got, and an amber notice says the browser can only record WebM.
Is conversion faster than the video length?
No. It runs at playback speed because the browser records while the video plays. A 12-minute file takes about 12 minutes, with no cancel button.
What happens to 60 fps video and large frames?
Width and height carry over. The frame rate is limited to 30, so 60 fps footage keeps about half of its frames or fewer.
How is this different from MOV to MP4 and Video Converter?
Only the file picker and the choice of output differ. MOV to MP4 accepts QuickTime files, this page accepts any video and always aims at MP4, and Video Converter lets you aim at MP4 or WebM.
Does the MP4 have sound?
Where the browser lets the page capture the playing video's audio, the sound is recorded with the picture; the page skips Firefox, and a browser without it gives a silent file. The result card says when that happens.
Will converting make my video smaller?
Not necessarily. In our test a 712,706-byte VP8 WebM became 594,614 bytes in Chromium 153, 702,851 bytes in the WebKit build, and 910,933 bytes in Firefox 155, which wrote WebM. The tool records with the browser's default bitrate, so sizes depend on the browser and the clip.
Does Firefox give me an MP4?
Not in our test. Firefox 155 reported no MP4 recording support, so the tool wrote a WebM. The result card shows an amber notice for that.
Related guide
MP4, MOV and WebM: which video format to use and how to convert. The guide shows that an MP4 written by a browser recorder is fragmented, unlike one from a desktop encoder, and that the converter writes MP4 in two engines and WebM in Firefox.