Video Tools

Video Compression Guide: Smaller Files, Same Quality

Learn how video codecs, bitrates, and resolution choices affect file size and quality — and how to compress videos without losing what matters.

7 min read

Video editing setup with multiple screens

A raw 4K video file can easily top 50 GB per hour of footage. Even a 10-minute screen recording can balloon to 500 MB. Whether you're uploading to social media, sending a file over email, or embedding video on your website, compression is the difference between usable and unusable.

How video compression works

Video files contain sequences of frames. Instead of storing every pixel of every frame independently, modern codecs exploit two types of redundancy:

  • Spatial redundancy — adjacent pixels in a single frame are often similar. JPEG-style compression removes this.
  • Temporal redundancy — consecutive frames usually look nearly identical. Only the differences between frames need to be stored.

This is why a panning shot compresses poorly (everything changes) while a talking-head video compresses extremely well (only the mouth moves).

Codec comparison

Codec Container Quality per bit Browser support Notes
H.264 (AVC) MP4, MKV Good Universal Safe default for web
H.265 (HEVC) MP4, MKV ~40% better than H.264 Good (not Firefox) Great for storage
VP9 WebM Similar to H.265 All modern browsers Open & royalty-free
AV1 WebM, MP4 Best compression Growing Slow to encode

For web delivery, H.264 in an MP4 container remains the safe universal choice. For maximum compression on personal storage, H.265 or AV1 are worth the encoding time.

Understanding bitrate

Bitrate is the amount of data used per second of video, measured in Mbps (megabits per second) or kbps.

File size (MB) ≈ Bitrate (Mbps) × Duration (seconds) ÷ 8

Common target bitrates for H.264:

Resolution Frame Rate Recommended Bitrate
480p 30fps 1–2 Mbps
720p 30fps 2.5–5 Mbps
1080p 30fps 5–10 Mbps
1080p 60fps 10–15 Mbps
4K 30fps 20–40 Mbps

CRF vs. target bitrate encoding

Two main modes exist for quality control:

Constant Rate Factor (CRF)

The encoder automatically adjusts bitrate frame-by-frame to maintain consistent perceptual quality. Lower CRF = higher quality.

  • CRF 18 — Near lossless, large files
  • CRF 23 — Default, excellent quality
  • CRF 28 — Noticeably degraded, smaller files

CRF is best when you care about quality and file size is secondary.

Target Bitrate (CBR/VBR)

You specify a fixed or maximum bitrate. Useful when you need files under a specific size limit (e.g., email attachments, platform upload caps).

Compress without re-encoding

Sometimes the fastest optimization is simply changing the container or removing audio tracks without touching the video stream. If your source is already in H.264 and you just need to trim or remux it, you can avoid re-encoding entirely — preserving original quality at zero cost.

Use our Video Compressor to reduce file size directly in your browser using FFmpeg compiled to WebAssembly — no uploads, no waiting, no privacy concerns.

Resolution: don't downscale unnecessarily

Halving resolution quarters the number of pixels, dramatically reducing file size. But once you go below your target display size, you lose sharpness that can't be recovered.

Rules of thumb:

  1. If your video will only ever appear at 720p, encoding at 4K wastes storage.
  2. Keep the original for archival; export a compressed version for delivery.
  3. Maintain the aspect ratio — use our Video Converter to handle format and resolution changes cleanly.

Audio compression

Don't forget the audio track:

  • AAC at 128 kbps is transparent for stereo content.
  • 192 kbps for music or high-dynamic-range audio.
  • If the video is a screen recording or tutorial, 96 kbps mono is perfectly fine and cuts audio bitrate by 75%.

Making GIFs the right way

GIFs are notoriously large — a 5-second GIF can easily be 10× larger than the same clip as an H.264 MP4. If you need looping animations for the web, consider:

  1. Use MP4/WebM with autoplay muted loop instead of GIF for web pages.
  2. If you must use GIF, limit to 320px wide, 15fps, and 10 seconds maximum.
  3. Use our GIF Maker to convert short clips and preview file size before exporting.

Quick compression checklist

  • Choose H.264 for maximum compatibility, H.265/AV1 for storage
  • Set CRF 23 for general use, adjust down for quality-critical content
  • Match output resolution to display size
  • Use AAC 128kbps stereo (or 96kbps mono for voice)
  • Remove unused audio tracks if any
  • Test playback before deleting the original

Video compression is part science, part art. The goal isn't the smallest file — it's the smallest file that still looks good enough for its purpose.