Video Compressor

Lower the resolution and bitrate, re-encode in the page, download a smaller file.

Megabits per second. 1–2 Mbps is fine for 720p; 4–6 for 1080p detail.

The re-encode happens in real time: a two-minute clip takes two minutes, because the browser plays it through and records the result. Output is WebM with whatever codec your browser supports — Chrome and Firefox use VP9 or VP8, Safari may produce H.264. Nothing is uploaded at any point.

What it does not do

Output is WebM, not MP4. Browsers have no H.264 encoder outside Safari, so writing MP4 needs ffmpeg.wasm — a 25–30 MB download that would defeat the purpose of a page that opens instantly.

There are two ways to make a video smaller: throw away resolution, or throw away bitrate. Dropping 1080p to 720p removes 55% of the pixels before any compression decision is made; halving the bitrate from 8 Mbps to 1.5 Mbps then removes most of the rest. Doing both is how a 90 MB phone clip becomes 7 MB.

The catch is that the browser re-encodes in real time. MediaRecorder records a live stream, so a two-minute clip takes two minutes — there is no faster path without a WebCodecs pipeline, which is not available in every browser yet.

How to use it

  1. Drop a video. It loads into the player and reports its duration and size.
  2. Choose an output size — 50% is the usual sweet spot — and set the bitrate.
  3. Press Start and let it play through once. The audio track is carried over, so expect some sound.

Why WebM and not MP4

MP4 is a container, usually holding H.264 video. Chrome and Firefox can decode H.264 but do not ship an encoder for it; Safari can encode it. WebM with VP8 or VP9 is the format browsers can actually produce, and it is well supported everywhere except older Apple devices.

For sending a clip to a messaging app or attaching it to an email, that is usually fine. For a video that has to play on a television or in PowerPoint, WebM will often not open — in which case a desktop tool with a real H.264 encoder is the correct choice, and this page is honest about why.

Reviewed 2026-10-26. This tool runs entirely in your browser — no server, no account, and nothing you generate is stored.

Frequently asked questions

Why does the output have a .webm extension?

Because the browser's recorder produces WebM. Producing MP4 means encoding H.264, which browsers do not ship outside Safari. The quality is comparable; the container is the difference.

Why is compression slower than the file is long?

MediaRecorder records a live stream, so it runs at playback speed. A three-minute video takes three minutes. Stopping early and keeping the partial result is the only way to go faster.

Does it keep the audio?

Yes. The audio track of the source element is added back onto the canvas stream, so the result sounds like the original. This is the one thing people expect and most canvas-based compressors get wrong.

How much smaller will the file be?

Halving the resolution plus a 1.5 Mbps bitrate typically takes 720p phone footage from 8 Mbps to 1.5 Mbps — roughly an 80% reduction. The exact figure is shown after the encode.

Related tools

More from Audio & video.