Video Compressor
Compress MP4 video in your browser with WebAssembly FFmpeg.
The media engine runs in your browser. Its WebAssembly core is loaded on demand from a public CDN.
Compress MP4 video in your browser with WebAssembly FFmpeg.
The media engine runs in your browser. Its WebAssembly core is loaded on demand from a public CDN.
This tool shrinks an MP4 by re-encoding it with FFmpeg compiled to WebAssembly, which runs inside your browser tab. You choose the file, press Compress video, and when the run finishes your browser saves the result as eldosa-compressed-video.mp4. The original is not changed, and nothing about your video is sent to a conversion server.
The settings are fixed and visible in the code. Video is encoded with the H.264 codec at constant rate factor 30 using the veryfast preset, and audio is encoded as AAC at 96 kbps. A higher rate factor means lower quality and a smaller file, and 30 is a fairly strong squeeze, noticeable on detailed footage. The veryfast preset favors encoding speed over squeezing out every last byte.
There are no sliders, no target file size and no resolution change, so what you get is whatever that quality level produces for your clip. It works best on high-bitrate recordings, such as phone or screen captures, that you want to email or upload somewhere with a size limit. Because encoding runs on your own processor, a long or large video takes a long time and a lot of memory.
Videos from a phone are often recorded at a very high bitrate. Re-encoding at this quality level can make them far easier to attach to an email or send in a message.
Screen captures of slides or demos usually contain large flat areas that compress well, so the output is often much smaller while staying readable for a tutorial or bug report.
Forms, forums and support portals often cap attachment sizes. Compress the clip first, check the file size, and if it is still too large, trim the video before running it again.
On a locked-down work or school computer you may be unable to install an encoder. A browser-based version needs only a modern browser, though you should still try a short clip first.
Encoding runs in your browser, and the video file is not intentionally sent to a server. The FFmpeg WebAssembly core is fetched on demand from a public CDN, so your device contacts that CDN when you start.
The tool runs FFmpeg in your browser with H.264 video at CRF 30 and the veryfast preset, plus AAC audio at 96 kbps. It re-encodes the whole file, which is how it reduces the size of high-bitrate recordings.
The video is processed on your device and is not intentionally sent to a server. What the page does download is the FFmpeg WebAssembly core, which it loads from a public CDN when you press Compress video.
The code sets no size limit, but the file has to fit in your browser's memory during processing. Short clips usually work, while very large files can fail, depending on your device, available memory and browser.
The page only shows a status message, such as Loading media engine and Processing, then Done. Encoding in the browser can take a while, so leave the tab open and wait until the status changes.
No. The quality setting is fixed at CRF 30, with the veryfast preset and 96 kbps AAC audio, and the resolution and frame rate are left as they are in the source. If you need other values, use desktop encoding software.
If the original was already encoded efficiently, for example by a previous compression or a streaming service, there is little left to remove. Re-encoding can then save little or even increase the size, so keep the original in that case.