Compress Video to Size
Published Updated
Pick 8, 16, 25, 50 or 100 MB, or type a size in MB or KB, and the tool chooses a resolution and bitrate meant to land just under it. Each attempt plays the video once at normal speed, and you get up to three.
From a size limit to recorder settings
File size is bitrate times length, so the tool divides your target in bits by the video's duration, keeps 85% as a margin and never asks for less than 80 kbps. That figure goes to the browser's MediaRecorder as videoBitsPerSecond.
Resolution depends on how many bits each megapixel would get. With plenty, the frame stays full size; with less, it steps down to 75%, 50%, 35% or 25% of the width and height, since in the planner's tests the encoder came much closer to the requested size at a smaller frame.
Planned settings for a 1920 x 1080 video
Frame and total bitrate from the planner; with sound, 96 kbps of each goes to audio.
| Length | 8 MB target | 25 MB target | 50 MB target |
|---|---|---|---|
| 1 minute | 960 x 540, 951 kbps | 1440 x 810, 2,971 kbps | 1920 x 1080, 5,942 kbps |
| 3 minutes | 672 x 378, 317 kbps | 960 x 540, 990 kbps | 1440 x 810, 1,981 kbps |
| 5 minutes | 480 x 270, 190 kbps | 672 x 378, 594 kbps | 960 x 540, 1,188 kbps |
| 10 minutes | 480 x 270, 95 kbps (too low with sound) | 672 x 378, 297 kbps | 672 x 378, 594 kbps |
With sound the picture is given at least 50 kbps, a 146 kbps floor in total, so on paper 8 MB stops fitting after about 7 minutes 40 seconds. Silent recordings, with an 80 kbps floor, last to about 14 minutes.
One measured run
A silent 12-second, 1920 x 1080 test clip of moving shapes and noise (11.45 MB), put through the same planner and recorder settings in Google Chrome 156:
| Target | Planned frame and bitrate | Result |
|---|---|---|
| 8 MB | 1920 x 1080, 4.75 Mbps | 6.79 MB |
| 2 MB | 960 x 540, 1.19 Mbps | 1.71 MB |
| 512 KB | 672 x 378, 297 kbps | 497.9 KB |
Each run took 12.0 seconds. Busy real footage can refuse to shrink as far as asked, which is what Try More Aggressive is for.
With sound, in four browsers
We ran the page's real tool in Chrome 156, Chromium 153 (Playwright build, not Google Chrome), Firefox 155 and Playwright's WebKit build (not the Safari app) on a generated 640 x 360 MP4 of 4.14 seconds with a stereo AAC tone (634,269 bytes), with typed targets of 300 KB (307,200 bytes) and 150 KB (153,600 bytes), one attempt each. The planner chose 640 x 360 at 504,572 bit/s for 300 KB and 480 x 270 at 252,286 bit/s for 150 KB. The source played muted and we decoded the sound offline without listening; one run per engine.
| Engine | 300 KB target | 150 KB target | Sound |
|---|---|---|---|
| Chrome 156 | 125,261 bytes (41%), fits | 70,462 bytes (46%), fits | Kept, AAC at 96 kbps |
| Chromium 153 | 124,297 bytes (40%), fits | 71,001 bytes (46%), fits | Kept, AAC at 96 kbps |
| Firefox 155 | 247,548 bytes (81%), fits | 118,535 bytes (77%), fits | None (WebM, VP8) |
| WebKit | 390,240 bytes (127%), over | 223,769 bytes (146%), over | None (MP4) |
With sound, Chrome 156 and Chromium 153 gave the picture 96 kbps less than the plan (408,572 bit/s at 300 KB), and still came in far under the targets on this simple picture. Firefox 155 and the WebKit build attached no sound, so the picture got the whole plan. Across five clips (MP4 with a stereo, a mono or a digitally silent AAC track, WebM with and without sound) Chrome 156 landed at 36.5 to 51.2 percent of the target, Firefox 155 at 76.9 to 82.5 percent, and the WebKit build went over every time, at 127.0 to 159.4 percent, and the card said so.
Try More Aggressive did its job in the WebKit build, in a separate run: on the MP4 with a tone, the 150 KB target fitted on the second attempt (149,542 bytes at 320 x 180), while the 300 KB target came down from 387,344 to 335,771 and then 313,493 bytes and was still 2 percent over when the three attempts ran out. The WebM without sound fitted 300 KB on the third attempt (304,536 bytes) and 150 KB on the second. Every file in these runs read back 4.01 to 4.39 seconds long for sources of 3.97 and 4.14 seconds.
Hitting a size limit
Step 1
Add an MP4 or WebM
The preview shows the clip's resolution, length and current size.
Step 2
Set the target
Tap a preset (25 MB is selected at first) or type a number and choose MB or KB. A typed value overrides the preset.
Step 3
Compress and check the card
Green means the file fits. Amber gives the real size and, while attempts remain, a Try More Aggressive button.
Units, retries and limits
- MB means 1,048,576 bytes here, KB 1,024. If a site counts 1,000,000 bytes per megabyte, the 25 MB preset is 26.2 million bytes, so type 23.8 MB for a 25,000,000-byte cap. Gmail, for one, allows 25 MB per message on personal accounts.
- Try More Aggressive divides the bitrate by how far the last file overshot, and steps the resolution down once more if it was over by more than 30%. Three attempts in total.
- Shorter beats smaller. Halving the length doubles the bitrate for what is left; Trim Video does that first, and Video Compressor has fixed levels when no exact size is needed.
Compressing to a size limit
Why is the result under my target and not exactly on it?
The planner asks the recorder for only 85% of the bitrate that would fill the target, because overshooting is worse than undershooting. In a Chrome test the files landed between 85% and 97% of their targets. On our simpler 4-second clips Chrome 156 landed far lower, at 36.5 to 51.2 percent, and the WebKit build went over instead (see the measured section).
What happens if my video is already small enough?
Nothing is re-encoded. A file at or below the target is reported as fitting, and the download is your original, with its quality and sound untouched.
How long does it take?
Each attempt lasts as long as the video, because it is recorded while it plays: three attempts on a five-minute clip can take fifteen minutes. Keep the tab visible.
Will my video lose resolution?
Only when the budget per pixel runs thin. A one-minute 1080p clip keeps full size at 50 MB, drops to 1440 x 810 at 25 MB and to 960 x 540 at 8 MB. The short side never goes below 160 pixels.
Does the compressed file keep the audio?
Where the browser lets the page capture the playing video's audio, yes, at 96 kbps, and that share comes out of the budget before the picture gets the rest. In our test that was Chrome 156 and Chromium 153, which kept stereo and mono AAC sound. Firefox 155, which the page skips because that capture has not been checked there, and WebKit wrote silent files, so the picture got the whole budget, and the card said the video has no sound.
Can I compress a MOV file?
The picker lists MP4 and WebM only, but drops are not filtered, so a MOV your browser plays can be dragged in. The result is MP4 or WebM.
Why is my compressed video still bigger than the target?
The recorder treats the bitrate as a request, and some browsers write more. WebKit went over the target in all 10 runs, at 127 to 159 percent, while Chrome 156, Chromium 153 and Firefox 155 fitted every time. Try More Aggressive brought three of four WebKit cases under the target within the three attempts; one stayed 2 percent over.
Does the sound count against my target size?
Yes, where sound is kept. The page takes 96 kbps out of the planned bitrate before the picture gets the rest: for our 4-second clip and a 300 KB target, the picture got 408,572 bit/s with sound in Chrome 156 and Chromium 153, against 504,572 bit/s in Firefox 155, where no sound was attached. A silent clip gives the picture the whole budget.