This page's code did not start.

Opening index.html directly from a folder blocks JavaScript modules, so nothing will happen when you choose a video. Serve the folder over http instead:

powershell -ExecutionPolicy Bypass -File serve.ps1

Then open http://localhost:8080/.

MP4 Converter

Whatever came off the screen recorder, the ripper or the camera, as H.264 and AAC in an MP4. Copied where it can be, re-encoded only where it must.

Language: English
View source
Your videos are processed in your browser. No processing upload.

The video you choose is read, taken apart, and written again as an MP4 in memory on this machine, by your own browser's codecs and code served from this address. Nothing here can make an upload, and there is no server on the other end of this page to receive one. A gigabyte never goes up to come back as a different gigabyte.

Live check: checking…

Offline: checking…

Don't take our word for it: open DevTools, watch the Network tab, and convert something. Not one request carries a video, a frame, or a filename. Or unplug from the internet and convert it anyway.

1 Choose the video

2 See what will change, and what will not

An MP4 that uploads anywhere is H.264 picture and AAC sound. Whichever of the two your file already has is copied across untouched; whichever it does not is encoded again on your machine. Nothing is re-encoded that does not have to be.

Leave the sound out For a clip that is going somewhere it will play silent anyway, or a sound track the browser cannot read.

3 Convert it

View as Markdown

How to convert a video to MP4

  1. Choose the video. One file at a time: WebM, MKV, MOV, M4V or MP4. It is read straight off your disk by the browser, and the page says what it is: how long, how big, what frame size, and what container it came in.
  2. Read the two sentences. One for the picture, one for the sound. Each says either that the track is already what an MP4 wants and will be copied across untouched, or what it is and what it will be encoded again as. There is nothing to set; the file decides. If the sound is something the browser cannot read, or you would rather the clip went silent, tick the box to leave it out.
  3. Convert it, and read the line that says it was checked. What is copied is copied; what is encoded again is encoded again, frame by frame, with a bar that says where it is. Then the finished file is opened again here and has to be the length it was, H.264, and carrying the sound it promised. It plays from memory under the download, so you can see it survived.

The longer version

How to convert a video to the MP4 that uploads What an MP4 that uploads actually is, why a WebM, an MKV or an iPhone MOV gets refused, which conversions lose nothing and which cost a generation, and how to do it in your browser without uploading the file.

Questions

Will the quality be worse?

Not for anything copied, and the page says what was. H.264 frames and AAC packets go across byte for byte, so an MKV with H.264 inside comes out as an MP4 with exactly the same picture. A track that had to be encoded again — VP9, VP8, AV1 or HEVC picture; Opus, Vorbis, MP3 or FLAC sound — is one generation further from the camera, at a bitrate chosen to match what the source spent, so that the loss is small rather than none. Keep your original either way.

Why not keep HEVC or VP9 in the MP4? They are smaller.

Because the file would open in fewer places than the one you started with, and the point of converting was that it opens everywhere. HEVC in an MP4 needs a licence the machine may not have; VP9 or AV1 in an MP4 is refused by most upload forms and every mail client. H.264 and AAC are the one combination nothing refuses, so that is what the page writes, and it says the cost up front rather than hiding it.

My WebM is a screen recording. Will the sound survive?

Yes. A browser records Opus, which an MP4 cannot carry, so it is decoded and encoded again as AAC at 160 kbit/s — more than a microphone ever needed. The picture, VP8 or VP9, is encoded again as H.264. Both happen on your machine, and the finished file is opened again here to check it is the length it was and still has its sound.

Why does my MOV need converting at all? Isn't it already MP4?

Nearly. MOV and MP4 are the same design, and a MOV with H.264 and AAC inside is copied across in seconds without a frame re-encoded — what changes is the container, which is what a form that checks the extension was refusing. An iPhone MOV with HEVC inside is the other case: the picture is re-encoded as H.264, wherever the browser can decode HEVC, which is most machines but not all.

Which files does it read?

WebM and MKV with VP8, VP9, AV1, H.264 or HEVC picture and Opus, Vorbis, AAC, MP3 or FLAC sound; MP4, MOV and M4V with H.264, HEVC, VP9 or AV1 picture and AAC sound. What the browser will not decode is named: a picture it cannot read stops the conversion, a sound it cannot read is left out and the picture still converts. AVI, WMV, FLV and MPEG-2 are not read here.

How long does it take?

A copy takes about as long as reading the file twice: seconds for most clips. A re-encode takes as long as your machine takes to encode the picture — with a hardware encoder, most laptops and every recent phone, faster than the clip is long; without one, slower, and a long 4K clip is a long wait. The bar says which frame it is on, and cancelling stops it at once and writes nothing.

Are my videos uploaded anywhere?

No. The file is read, decoded where it must be, encoded and written by your own browser on your own hardware, and the page's Content-Security-Policy names every address it may contact — none of them belongs to this site. The simplest way to satisfy yourself is to unplug from the network and use the page anyway. On a tool for files this size, that is also the fastest way: the upload is usually longer than the conversion.

Does it work on a phone?

On a phone whose browser can decode and encode video, yes, and a phone's own hardware encoder is quick. What a phone lacks is memory: the finished file is held in memory until you save it, so a very long clip may be more than a phone can hold. Cut it first with the Video Trimmer, or convert it on a laptop.

Is there a size limit, and does it cost anything?

The file is read from your disk in pieces, so a file larger than your memory is fine going in; the finished file is held in memory until you download it, and an MP4 written here cannot be over 4 GB. It is free, there is no account, no sign-in and no trial. The site carries advertising, which is what pays for it; the ads are not given anything about your videos.

Does it work offline?

Yes. Load the page once, then disconnect from the internet and it keeps working. That is also the simplest way to prove nothing is being uploaded: a tool that sent your video away to be converted would stop the moment you unplugged.