How to Reduce Video File Size - CRF, Bitrate and Resolution Explained

Understand what really controls video file size, how CRF differs from target bitrate, how to calculate a bitrate for a size limit, and how to compress MP4 video.

Updated September 29, 2026 6 min read

Use the free Compress VideoShrink video files by quality (CRF) or to a target size in MB

A two-minute phone clip can easily exceed 300 MB, and then it will not fit an email attachment, a support ticket, a job application form or a messaging app's upload limit. "Compress it" is the answer, but video compressors present knobs like CRF, bitrate, preset and resolution, and picking the wrong combination gives you either a blocky mess or a file that barely shrank.

This guide explains the arithmetic behind video size, the difference between quality-based and size-based compression, and how to pick settings that make sense. Then it shows how to compress in the browser, with HandBrake, or with ffmpeg.

What determines video file size

File size is simply bitrate multiplied by duration:

size (MB) ≈ (video bitrate + audio bitrate) in kbps × duration in seconds ÷ 8 ÷ 1000

A 5,000 kbps video with 128 kbps audio, lasting 120 seconds, is about (5,128 × 120) ÷ 8 ÷ 1000 ≈ 77 MB.

Phones record at high bitrates so the footage survives later editing. Codecs such as H.264 and HEVC can deliver very similar visual quality at a fraction of that bitrate, especially for scenes that do not change much. Compressing means re-encoding with a lower bitrate while losing as little visible quality as possible.

Three levers matter:

  1. Bitrate (set directly, or indirectly through a quality setting).
  2. Resolution. Fewer pixels need fewer bits. 720p has about 44% of the pixels of 1080p.
  3. Encoder efficiency. Slower encoder presets search harder for redundancy and produce smaller files at the same quality.

Frame rate plays a smaller role: 60 fps footage needs more bits than 30 fps, but not twice as many.

CRF vs target size

CRF (constant rate factor)

CRF tells the x264 encoder "hold this level of visual quality" and lets the bitrate go up and down as the content demands. A static talking head needs few bits; a crowd scene needs many. The scale runs from 0 (lossless) to 51 (worst). ffmpeg's default for x264 is 23, values around 18 are often considered visually close to the source, and a common rule of thumb is that raising CRF by 6 roughly halves the file size.

CRF gives the best quality for the bytes spent, but you cannot predict the final size exactly.

Target size (average bitrate)

If a form says "maximum 25 MB", you need the size to be predictable. Rearranging the formula gives the bitrate:

video kbps ≈ (target MB × 8,000 ÷ duration in seconds) − audio kbps

A 3-minute (180 s) video with a 25 MB limit and 128 kbps audio: 25 × 8,000 ÷ 180 ≈ 1,111 kbps total, minus 128 ≈ 983 kbps for video. That is comfortable for 720p and tight for 1080p.

Leave a margin for container overhead. The encoder then spreads that average bitrate across the video. A single pass can land slightly off target; professional workflows use two-pass encoding for accuracy.

Compress a video with our tool

The Compress Video tool outputs an H.264 + AAC MP4 that plays everywhere, and it runs on your own device.

  1. Open Compress Video and drop the file.
  2. Choose a Compression method: Target quality (CRF, recommended) or Target file size.
  3. For Target quality, move the Quality (CRF) slider between 18 and 36. The default is 28 ("Balanced"); lower is better quality and bigger. For Target file size, type the size in MB. The tool shows the resulting video bitrate and warns when the target is so small for the length that the picture will break up.
  4. Under Resolution, keep the original or cap it at 1080p, 720p, 480p or 360p. Options larger than your video are disabled, so it never upscales.
  5. Choose a Speed: Fastest (larger file), Fast, or Smaller (three to five times slower). Then pick the Audio bitrate: 64, 96 or 128 kbps.
  6. Click Compress video and compare the before and after sizes.

Target-size mode uses a single-pass average bitrate and leaves about 4% for overhead, so the file usually lands near or just under your target. If the result is not smaller than the original, the tool says so: the source was already efficiently compressed, and a higher CRF or lower resolution is needed.

The honest caveat: this is single-threaded WebAssembly, so a long 4K video can take a long time, and files above roughly 500 MB may exhaust the browser's memory. HandBrake or ffmpeg on a desktop will be several times faster.

Other ways to compress video

ffmpeg with CRF

ffmpeg -i input.mp4 -c:v libx264 -crf 26 -preset medium -vf "scale=-2:720" -c:a aac -b:a 128k -movflags +faststart output.mp4

scale=-2:720 sets the height to 720 and picks an even width that keeps the aspect ratio. For a portrait video, use scale=720:-2 instead.

ffmpeg two-pass to hit a size

On Windows (use /dev/null instead of NUL on macOS and Linux):

ffmpeg -y -i input.mp4 -c:v libx264 -b:v 980k -preset medium -pass 1 -an -f null NUL
ffmpeg -i input.mp4 -c:v libx264 -b:v 980k -preset medium -pass 2 -c:a aac -b:a 128k output.mp4

HandBrake

HandBrake's RF slider is the same CRF concept, and its presets (for example "Fast 720p30") are a good starting point. It also supports two-pass average bitrate encoding.

Built-in apps

On a Mac, QuickTime Player's File → Export As offers lower resolutions. On Windows, Clipchamp lets you export at 480p, 720p or 1080p. On phones, many messaging apps compress automatically when you share. These work but give little control over quality.

Tips and pitfalls

Lower resolution before lowering quality

If a target forces a very low bitrate, the picture blocks up. Dropping to 720p or 480p usually looks better than 1080p starved of bits. Resize Video gives finer control over dimensions.

Remove what you do not need

Cutting the dead time at the start and end with Trim Video reduces size in direct proportion. If sound is irrelevant, Mute Video removes the audio track without re-encoding.

Do not compress twice

Each lossy re-encode adds artefacts. Compress from the original, and if the result is too big, go back to the original with stronger settings rather than compressing the compressed file.

HEVC sources may grow

iPhone HEVC video is already efficient. Converting it to H.264 at similar quality can make it larger, which is why the tool reports when the output is not smaller.

Frequently asked questions

What CRF value should I use?

For H.264, 18-23 is high quality, 24-28 is a good balance for sharing, and above 30 is for small previews. Check the result on the screen where it will be watched.

How do I compress a video to a specific size?

Use target-size mode, or calculate the bitrate as target MB × 8,000 ÷ seconds minus the audio bitrate. Two-pass encoding in ffmpeg or HandBrake hits the target most precisely.

Does compressing a video reduce quality?

Yes, some quality is always lost when re-encoding with fewer bits. With sensible CRF values and resolution the loss is often hard to notice on a phone or laptop.

Why is my compressed video bigger than the original?

The original was already efficiently encoded, often HEVC from a modern phone, and the chosen quality asks for more bits than it had. Raise the CRF or reduce the resolution.

Which is better for small files, lower resolution or higher CRF?

For large reductions, lowering the resolution usually looks better. Small reductions are best done with CRF alone.

Try it now: Compress Video

Loading tool…