How to Compress a Video to a Specific File Size (Exact MB)

Quick answer: a video’s file size is its bitrate multiplied by its length. To hit an exact size, work out the bitrate that fits your limit, then encode the video at that bitrate using two passes. You can do the math yourself (it’s below), or set the size in MB in an exact-size video compressor and let it do the work.

Most compressors only offer “low, medium, high” quality. That is fine until a job portal says maximum 10 MB, or a chat app refuses anything over its limit. Then you are stuck compressing the same clip again and again, hoping the next attempt lands under the line. This guide shows you how to get it right the first time.

Why “quality” settings can’t hit an exact size

Quality-based settings (called CRF in most video software) keep the picture quality steady and let the file size float. A calm talking-head video comes out small. A shaky concert clip with confetti comes out huge, even at the same setting. That is great for quality, but it means you can’t predict the final MB.

To land on a specific size you have to flip it around: fix the size, and let the quality adjust to fit. That is called target bitrate encoding.

The file size formula

Bitrate is how much data each second of video uses. Multiply it by the number of seconds and you get the file size. Rearranged for our purpose:

Video bitrate (kbps) = (Target size in MB × 8,192 ÷ length in seconds) − audio bitrate

The 8,192 converts megabytes into kilobits. Then take off a couple of percent for the container (the MP4 “wrapper”) so you don’t go over.

Worked example: a 2-minute video under 25 MB

  1. Total budget: 25 × 8,192 = 204,800 kilobits.
  2. Spread over 120 seconds: 204,800 ÷ 120 ≈ 1,707 kbps.
  3. Subtract audio at 128 kbps: about 1,579 kbps for the picture.
  4. Keep about 3% back for the container: roughly 1,530 kbps video.

That is a healthy bitrate for 720p, and workable for 1080p if the footage isn’t too busy.

How much bitrate does each resolution need?

If your budget is small, lowering the resolution often looks better than squeezing a big frame. These are rough starting points for H.264 at 30 fps:

Resolution Looks decent from Looks good from
480p ~600 kbps ~1,000 kbps
720p ~1,200 kbps ~2,500 kbps
1080p ~2,500 kbps ~5,000 kbps

Screen recordings, slides and animation need far less. Sports, gaming and handheld phone footage need more. If your calculated bitrate falls below the “decent” column, drop a resolution step or trim the video.

How to compress a video to an exact size with SizeMyVideo

  1. Open the video compressor and drop in your video (MP4, MOV, MKV, WebM and more, up to 1 GB).
  2. Under Size, choose Exact size and type the number of MB you need.
  3. Leave the codec on H.264 if the video has to play everywhere. H.265 gives a sharper result at the same size, but some older devices and websites can’t play it.
  4. Press Compress video. The tool does the bitrate math for you, encodes in two passes so the size lands where you asked, and keeps a little headroom so the file stays under the limit.
  5. Download the MP4. Files are deleted from the server automatically after an hour.

Common limits already have one-click presets: 10 MB, 25 MB, 50 MB, email and WhatsApp.

Why two-pass encoding matters

In a single pass, the encoder has to decide how many bits to spend on each scene before it has seen the rest of the video. It either runs out of budget at the end or plays it too safe. In a two-pass encode, the first pass studies the whole video, and the second pass spends the budget where it is needed: more on busy scenes, less on still ones. The result is both closer to your target and better looking.

What to do when the target is too small

Sometimes the math simply doesn’t work, for example a 20-minute video into 10 MB. You have three honest options:

  • Trim it. Cut the parts nobody needs with the video trimmer. Every second removed gives the rest more bitrate.
  • Split it. Send it as several parts that each fit, using the video splitter and its “by size” option. See how to split a video by file size.
  • Lower the resolution or frame rate. 720p at 30 fps needs far less data than 1080p at 60 fps, and on a phone screen the difference is small.

Frequently asked questions

Why is my compressed file a little smaller than the size I typed?

Good exact-size tools aim slightly under the limit on purpose. Upload forms reject a file that is even one kilobyte too big, so a small safety margin is better than a failed upload.

Will compressing to a smaller size lower the quality?

Yes, a smaller file always has less data to work with. The trick is to spend that data wisely: two-pass encoding, the right resolution for the budget, and removing parts you don’t need.

Can I compress a video to an exact size on my phone?

Yes. SizeMyVideo runs in the browser, so it works on iPhone and Android without installing an app. Choose Exact size, type the MB and compress.

Which is better for a fixed size, H.264 or H.265?

At the same file size, H.265 usually looks noticeably cleaner. Use it when you know the person or site can play it. Use H.264 when it has to work everywhere.

Need a smaller video? Do it in a minute.

More guides

November 20, 2026

How to Convert WebM to MP4 So It Plays on WhatsApp, iPhone and Everywhere

WebM is common on the web but awkward everywhere else: WhatsApp sends it as a file, and iPhone Photos will not save it. Here is the quick fix.
Read guide
November 20, 2026

How to Convert iPhone MOV to MP4 Without Losing Quality

iPhone videos are saved as MOV, often in HEVC, which many PCs, TVs, editors and websites cannot handle. Here is how to get an MP4 that plays everywhere
Read guide
November 20, 2026

Why Your Video Has Black Bars on Instagram, TikTok or Shorts

Black bars around your Reel or TikTok make it look smaller and less professional. Here are the three causes, and the fix for each one.
Read guide