Video Compressor
Published Updated
Re-record an MP4 or WebM video at a lower resolution and bitrate in real time. In our tests Google Chrome kept the sound; Firefox and WebKit did not.
The three levels
Each level sets a resolution and a video bitrate for the recorder. Sizes are bitrate x time, including 96 kbps of audio where it is kept (1 MB = 1,000,000 bytes):
| Level | Resolution | Video bitrate | 1080p source becomes | About per minute |
|---|---|---|---|---|
| Low Compression (High Quality) | 100% | 1.5 Mbps | 1920 x 1080 | 12.0 MB |
| Standard (default) | 75% | 1 Mbps | 1440 x 810 | 8.2 MB |
| High Compression (Smallest File) | 50% | 500 kbps | 960 x 540 | 4.5 MB |
How it works, and why it takes real time
There is no video encoder in the page. The tool plays your video in a hidden player, draws every frame onto a smaller canvas and records that canvas with the browser's MediaRecorder at the chosen bitrate. Recording happens while the video plays, so it runs at normal speed.
The recorder decides the final bitrate itself, so the setting is a target rather than a promise. The result card shows the real size and the saving, if there is one.
Measured: what each engine wrote
We ran the page's real Video Compressor in Google Chrome 156, Chromium 153 (Playwright build, not Google Chrome), Firefox 155 and Playwright's WebKit build (not the Safari app), at each of the three levels, on five generated 640 x 360 clips: an MP4 with a stereo AAC tone (634,269 bytes, 4.14 s), a WebM with a stereo Opus tone (595,961 bytes, 3.97 s), the same MP4 picture with a mono AAC tone (638,900 bytes) and with a stereo AAC track of digital silence (622,102 bytes), and a WebM without sound (544,311 bytes, 3.97 s). The page plays the source muted, and our test page refused to start any element that was not muted, so nothing was played aloud. We checked the sound by decoding each result's audio track offline and did not listen. One run per engine and level.
| Engine | File written | Sound | Size at Standard | Length read back |
|---|---|---|---|---|
| Chrome 156 | MP4 (H.264 with AAC) | Kept: the AAC track decoded to 4.202 s, stereo | 273,883 bytes | 4.20 s |
| Chromium 153 | MP4 (H.264 with AAC) | Kept: 4.202 s, stereo | 273,014 bytes | 4.22 s |
| Firefox 155 | WebM (VP8) | None attached | 382,459 bytes | 4.18 s |
| WebKit | MP4 (H.264) | None attached | 372,942 bytes | 4.17 s |
The table uses the MP4 with a stereo AAC tone. In Chrome 156 and Chromium 153 every clip with a sound track kept it at all three levels: the stereo clips as stereo AAC, the mono clip as mono AAC, and the clip with digital silence as a silent stereo track. Firefox 155 and the WebKit build attached no sound to any clip, and the result card said so.
The page asks the recorder for 96 kbps of AAC. In a separate recorder test (a canvas and a generated tone, outside the page), Chromium 153's AAC recorder stopped with an encoding error after a fraction of a second at 32, 48 and 64 kbps in stereo and at 16 to 40 kbps in mono, leaving files of 1,426 to 2,138 bytes; from 72 kbps in stereo and 48 kbps in mono it worked. Chrome 156 recorded AAC at every rate we tried (16 to 192 kbps), and Firefox 155 recorded Opus at every rate we tried (32 to 192 kbps). The page's own steps run with 64 kbps sound gave the same failure in Chromium 153: 2,197 to 4,220 bytes that read as 0.03 to 0.06 seconds, for every clip with a stereo sound track, while the result card still reported a saving.
Firefox 155 reported that it cannot record MP4, so it wrote WebM. The page adds sound through the video element's own capture; in the WebKit build the recorder was given no audio track, so its MP4 had none.
Sizes against the targets
In Chrome 156, sizes for each level, with the average bitrate over the result's own length:
| Level | MP4 with a stereo AAC tone | WebM with an Opus tone | WebM without sound |
|---|---|---|---|
| Low Compression (High Quality), 640 x 360 | 397,723 bytes, about 745 kbps | 394,003 bytes, about 768 kbps | 377,744 bytes, about 754 kbps |
| Standard, 480 x 270 | 273,883 bytes, about 521 kbps | 269,771 bytes, about 525 kbps | 252,653 bytes, about 504 kbps |
| High Compression (Smallest File), 320 x 180 | 144,920 bytes, about 276 kbps | 141,400 bytes, about 278 kbps | 128,220 bytes, about 254 kbps |
On this simple, generated picture the recorder stayed well under the targets in the table above: Standard came out at about half of its 1 Mbps. We did not test camera footage. Every one of the 60 results read back 4.01 to 4.39 seconds long against sources of 3.97 and 4.14 seconds, and each recording took 4.0 to 4.6 seconds from the click, about the length of the clip.
A smaller file is not certain either. In the WebKit build, Low on the WebM without sound gave 601,352 bytes, 10.5 percent more than the source, and the card then said only that the video was compressed; the FAQ below explains why a lean source can grow. Firefox 155 and the WebKit build also wrote larger files than Chrome 156 at the same level (382,459 and 372,942 bytes against 273,883 at Standard for the MP4 with a tone).
Compressing a video
Step 1
Add an MP4 or WebM video
The resolution, length and file size are read first, so you can see what you start from.
Step 2
Pick a level
Low (full resolution, about 1.5 Mbps), Standard (75%, about 1 Mbps, the default) or High (50%, about 500 kbps).
Step 3
Let it play through
The video is re-recorded in real time, so a 3-minute clip takes about 3 minutes. Keep the tab in front.
When another tool is the better fit
- A hard size limit, for example for an email or a chat app: Compress Video to Size.
- Only part of the clip matters: Trim Video first.
- The sound alone: MP4 to MP3.
- A change of format without aiming for size: Video Converter.
Video compressor questions
How long does compressing take?
About as long as the video. The tool plays the clip at normal speed and records it, so a 10-minute video needs roughly 10 minutes. Browsers slow down drawing in background tabs, so keep the tab visible.
How big will the compressed video be?
Roughly the target bitrate times the length. Standard aims at 1 Mbps for the picture plus 96 kbps for sound, about 8.2 MB per minute; High aims at about 4.5 MB per minute and Low about 12 MB per minute. The recorder treats these as targets, so real files differ.
Is the sound kept?
In our test, in Chrome 156 and Chromium 153. The page asks the recorder for 96 kbps AAC, and both kept the sound in an MP4 for every clip that had a sound track, stereo and mono (the AAC track decoded to about the clip's length; we did not listen). Firefox 155 and WebKit wrote files without sound, and the result card says so when no sound was captured. In a separate test Chromium 153 could not record AAC at 64 kbps stereo or lower, which is why the page uses 96 kbps.
Why did my video get bigger?
If the original already uses less than the chosen bitrate, re-recording cannot make it smaller. Work out its bitrate as size in megabits divided by seconds: a 100 MB, one-minute clip is about 13 Mbps and shrinks a lot, while a 5 MB one-minute clip is under 1 Mbps already. Pick High, or keep the original.
Do I get MP4 or WebM?
MP4 when your browser can record it, which current Chrome can; otherwise WebM. The file extension matches what was recorded.
What resolution will the output have?
Standard keeps 75% of the width and height and High keeps 50%, rounded to even numbers. A 1920 x 1080 video becomes 1440 x 810 on Standard and 960 x 540 on High. The frame rate is captured at up to 30 frames per second.
Why is my compressed file smaller than the bitrate suggests?
The bitrate is a target, and the recorder can stay well below it. With simple generated clips, Standard in Chrome 156 averaged 497 to 525 kbps against its 1 Mbps target, and High 254 to 291 kbps against 500 kbps. We tested only that kind of clip, not camera footage.
Is the compressed video as long as the original?
Close. The page records while the video plays, and all 60 results read back 4.01 to 4.39 seconds long for sources of 3.97 and 4.14 seconds, with the WebKit build adding the most.
Why do I get a WebM in Firefox?
Firefox 155 reported that it cannot record MP4, so the page fell back to WebM (VP8), and no sound was attached there. Chrome 156, Chromium 153 and the WebKit build wrote MP4, and of the engines we tried only Chrome 156 and Chromium 153 wrote one with sound.
Related guide
Trim, crop and caption a video in the browser. The guide runs the three levels on a silent 4-second clip in three engines, from 22% to 108% of the source size, and explains why a low-bitrate clip can grow.