Skip to content
mbshrink
CompressConvertEditAll toolsGuidesAbout
Home/Guides/How to compress a video

Guide

How to compress a video to an exact size

Most compression advice is a quality slider and a shrug. This is the arithmetic that actually decides the file size, and the order of operations that gets the best picture for the budget.

The four steps

  1. Find the real limitLook up what the destination accepts, then subtract about 5% for headroom — and a third more if it is going by email. The limits page has the current numbers.
  2. Trim before you compressA two-minute clip cut to forty seconds gives the encoder three times the bitrate per frame. That improves the picture far more than any setting. Use the trim tool first.
  3. Pick the target and let it workDrop the file into the compressor and choose the number. It computes the bitrate from the duration, encodes, measures, and retries at a lower resolution if it overshoots.
  4. Check the resultThe result card shows the exact output size. If it could not get under the target it says so instead of pretending, and suggests trimming.

The arithmetic, in one paragraph

File size is bitrate multiplied by duration. A target of 10 MB is 80 megabits; divide that by the clip’s length in seconds and you have the total bitrate budget. Subtract the audio bitrate — 96 kbps is plenty for speech — and the rest is available for video. A 30-second clip at 10 MB gets about 2.5 Mbps after audio, which is comfortable 720p. A three-minute clip gets about 400 kbps, which is not. That is the whole reason long videos look worse at the same size: the budget is fixed and the duration is not.

This is also why a quality setting (CRF) cannot hit a target size reliably. CRF asks for a constant visual quality and lets the size fall where it may; a busy scene costs more bits than a static one. A size target has to work backwards from the number, which is what the compressor does.

Choose a target that fits the destination

5–10 MB for chat apps, forums and older upload forms. 20 MB for a free Discord account and Outlook. 25 MB for Gmail — but target 15–18 MB, because attachments are base64-encoded and grow by a third. 50–100 MB when the destination allows it and the picture matters. Current numbers for each service are on the limits page.

Trim first, always

If a clip is too long for its budget, cutting it is not a compromise — it is the only thing that actually improves quality per second. Removing the first ten seconds of a two-minute clip gives every remaining frame 9% more data. Cutting it to forty seconds gives 200% more. No encoder setting comes close. The trim tool cuts by start and end time without uploading anything.

What compression cannot fix

A two-hour 4K recording will not become a good 10 MB file. There is a floor: below roughly 150 kbps of video, H.264 turns to blocks regardless of who encoded it. If the result is unwatchable at the size you need, the options are to shorten it, lower the resolution deliberately, or accept that the destination’s limit is incompatible with the footage.

Two operations avoid the problem entirely because they do not re-encode the picture:removing the audio track copies the video stream bit-for-bit and shaves 5–10% off the size, and extracting the audio discards the picture altogether, which is the right answer when the destination only needs sound.

Do it without an upload

Every step above can run inside the browser tab. The encoder is FFmpeg compiled to WebAssembly, so the file is read from disk, decoded and re-encoded locally, and the result is handed back as a download. Nothing is sent to a server, which means no queue, no size cap imposed by someone else’s free tier, and no copy of your video on a machine you do not control.

Questions

Does compressing a video twice make it worse?

Yes. Every re-encode is another lossy generation. Compress once from the original, at the size you actually need. If you must redo it, go back to the source.

What bitrate do I need for 1080p?

Roughly 4–8 Mbps for H.264 at 1080p30 depending on content. For 720p, 2–3 Mbps. A one-minute clip at 5 Mbps is about 37 MB.

Why does my 10 MB target produce a 12 MB file?

It should not — the encoder aims 2% under and retries up to four times, dropping resolution each pass. If it still cannot reach the target, the result is the smallest it could manage on your device and the card says so.

Is compressing the same as converting?

No. Compressing keeps the format and reduces the bitrate. Converting changes the container or codec — MOV to MP4, MP4 to WebM, video to GIF. Some conversions also change the size, but for a different reason.

Can I compress a video without losing quality?

Not really. You can lose very little by choosing a generous target, but any re-encode discards something. The only lossless option is trimming or removing the audio track without re-encoding the picture.

Compress a video now

More: all guides · what each service accepts ·which format to use

mbshrink

Free browser-only video tools. Your files are processed on your own device — never uploaded, stored or logged.

Compress

  • Compress a video
  • To 5 MB
  • To 10 MB
  • To 20 MB
  • To 25 MB
  • All compress

Convert

  • Video to GIF
  • GIF to MP4
  • MP4 to MP3
  • Video to WAV
  • Audio to MP3
  • All convert

Edit

  • Mute video
  • Vertical 9:16
  • Square 1:1
  • Trim video
  • All edit

Guides

  • All guides
  • Compress to a size
  • Upload limits
  • Video formats
  • GIF vs MP4

Site

  • All tools
  • About
  • Privacy
  • Terms
  • Licenses
  • Email

© 2026 mbshrink. Trademarks named on this site belong to their owners; no affiliation is implied.

No uploads. No account. No watermark.