Compress Video to a Size

Type the megabytes. The plan shows the picture size before anything is encoded. The file stays in this tab.

Add a video, or open the sample. Nothing is uploaded.

Share the cap

This link carries the megabyte number. It does not carry the video.

/tools/video-compressor?mb=25

Type the megabytes

The box starts at 25. That is 25,000,000 bytes. Change it to the cap you actually have. One megabyte is the floor. 2,000 is the ceiling for the number you type. The input file itself has no size ceiling on this page. A file over 400 MB gets a warning, because the tab may run out of memory before the encode finishes.

Before you press Compress, the plan names the picture size and the frame rate it will use, and the budget it is aiming under. If the clip is already under the cap and you are keeping the whole timeline, the page does not re-encode it.

A cut uses the same clock for sound

Start and end are seconds into the file you opened. A 10 minute clip that cannot fit under 8 MB can still fit once you keep 20 seconds of it, because the bitrate is spent on those 20 seconds. The picture and the sound are trimmed to that same window. A vertical frame stays taller than it is wide. A 90 degree phone rotation is applied before the scale.

The encoder is the browser's

Chrome and Edge on a computer can encode. If this tab cannot encode video, the page says so and stops. It does not fall through to a server. Chat attachment caps, with the sizes Discord publishes, are on the Discord compressor. A picture with a kilobyte cap is the image compressor.

Questions

Does the file leave this tab?

No. The encode uses this browser's WebCodecs encoder, through Mediabunny. Mediabunny is MPL-2.0. There is no upload and no watermark. Mixpanel and Google Analytics load with Softery.io. They see that someone opened the tool. They get a size band and a duration band. They do not get the video.

Why is the plan smaller than the number I typed?

The encode aims at 95 percent of the cap, so the finished file has room to land under it. The number on the plan is that budget. The byte count you can trust is the one after the encode, next to the download.

What do start and end do?

They keep one stretch of the clip. Picture and sound use the same two times, so they stay together. A window shorter than a fifth of a second is refused. A cut is always a fresh encode, and the bitrate is planned from the cap for that stretch. A short piece of a small file can come out larger than the file it came from, and still under the cap.

What if the tab runs out of memory?

A long or large file can exhaust this tab. The page says so, and it does not send the file to a server to finish the job. Shorten the end time, or use Chrome or Edge on a computer. A phone may encode slowly or not at all. There is no clock on this page, because a duration would be a guess.

Looking for something else?