A two-minute screen recording that’s 800 MB. A wedding highlight reel that won’t attach to an email. A YouTube upload that takes 45 minutes on a good connection. Video files are enormous — but they don’t have to be.
The good news: you can cut video file sizes by 50–80% with virtually no perceptible quality loss. Here’s how.
Why Video Files Are So Large
Raw video is staggeringly large. A single frame of 1080p footage is roughly 6 MB uncompressed. At 30 frames per second, one minute of raw video would be 10 GB. Everything you record is already being compressed by your camera or phone — the question is how much further you can go without seeing the difference.
Video compression exploits two key facts:
- Spatial redundancy: Adjacent pixels are usually similar. A blue sky doesn’t need to encode every pixel individually.
- Temporal redundancy: Adjacent frames are usually similar. If nothing is moving, only the differences between frames need to be stored.
Modern codecs are extraordinarily good at exploiting both.
The Four Factors That Determine File Size
1. Codec
The codec is the algorithm used to encode and decode video. It’s the single biggest lever you have. A more efficient codec produces smaller files at the same quality — or better quality at the same file size.
2. Resolution
Resolution (width × height) directly affects how much data each frame contains. A 4K video (3840 × 2160) has four times as many pixels as 1080p (1920 × 1080). Halving the resolution typically reduces file size by 60–70% for the same bitrate.
If your video will primarily be watched on phones or embedded at small sizes, there’s no point in delivering 4K.
3. Bitrate
Bitrate is the amount of data per second of video, measured in Mbps (megabits per second) or kbps (kilobits per second). Lower bitrate = smaller file = lower quality. The goal is finding the minimum bitrate where compression artifacts become invisible.
Typical target bitrates:
- 1080p at 30fps: 4–8 Mbps (H.264) / 2–4 Mbps (H.265/AV1)
- 720p at 30fps: 2.5–5 Mbps (H.264) / 1.5–3 Mbps (H.265/AV1)
- 4K at 30fps: 15–25 Mbps (H.265) / 10–20 Mbps (AV1)
4. Frame Rate
Frame rate (fps) affects how many frames are encoded per second. Dropping from 60fps to 30fps roughly halves the temporal data. For anything other than gaming content or sports, 30fps is indistinguishable from 60fps on most screens.
Codec Comparison: Which Should You Use?
H.264 (AVC)
The workhorse of web video since 2003. Near-universal browser and device support. Produces good quality at moderate bitrates, and hardware encoding/decoding is available on virtually every device.
Use H.264 when compatibility is your primary concern — for email attachments, legacy systems, or content that needs to play everywhere without fail.
H.265 (HEVC)
The successor to H.264, offering roughly 40–50% better compression at equivalent quality. A 1080p video that needs 8 Mbps in H.264 typically only needs 4 Mbps in H.265.
H.265 has good but not universal browser support (requires hardware decoder fallbacks on some devices). Use H.265 for long-form content, archival, or when file size really matters and you can control the playback environment.
VP9
Google’s open-source alternative to H.265. Similar compression efficiency (30–50% better than H.264). Supported in Chrome, Firefox, and Edge. Less hardware decoding support than H.265, meaning higher battery consumption on mobile.
AV1
The current state-of-the-art. 20–30% more efficient than H.265 or VP9, with better quality at very low bitrates. Browser support is now solid (Chrome, Firefox, Safari 16+, Edge). The catch: AV1 encoding is computationally expensive — software encoding can be slow, though hardware encoders (on newer GPUs and Apple Silicon) have closed the gap significantly.
AV1 is the right choice for 2026 if you’re optimizing for minimum file size and don’t need to support very old devices.
Practical Compression Tips
Reduce resolution for mobile-first content
If your video is going on TikTok, Instagram Stories, or YouTube Shorts, the maximum displayed resolution is 1080 × 1920 px (9:16). Encoding at 4K gains you nothing — the platform will re-encode it anyway. Deliver at 1080p and save the encode time and bandwidth.
Use H.265 for the best quality-to-size ratio
For most use cases where you want to share high-quality video without enormous file sizes, H.265 at 1080p is the practical sweet spot. You get excellent visual quality, half the file size of H.264, and broad enough device support that virtually everyone can play it.
Target bitrate, not quality percentage
Many tools offer a “quality” slider (0–100). These values aren’t standardized and vary between encoders. Instead, set a target bitrate that matches your output resolution (see the values in the table above). Consistent bitrates give you predictable file sizes across different content.
Two-pass encoding for better results
For important exports, use two-pass encoding if your tool supports it. Pass 1 analyzes the video to understand which scenes are complex (fast motion, lots of detail) and which are simple (static shots). Pass 2 uses that analysis to allocate more bits to complex scenes and fewer to simple ones, improving quality at the same average bitrate.
Strip unnecessary audio tracks
Video files sometimes contain multiple audio tracks, subtitle tracks, or embedded metadata. Unless you need them, stripping these can reduce file size modestly (typically 1–5% for typical web video).
What Each Platform Recommends
| Platform | Recommended Codec | Max Resolution | Max File Size |
|---|---|---|---|
| YouTube | H.264 or H.265 | 4K (3840×2160) | 256 GB |
| Instagram Reels | H.264 | 1080×1920 | 650 MB |
| TikTok | H.264 | 1080×1920 | 287.6 MB |
| Twitter/X | H.264 | 1920×1200 | 512 MB |
| H.264 | 1080×1920 | 10 GB | |
| H.264 | 1920×1080 | 5 GB |
All major social platforms re-encode your video on their servers regardless of what you upload. Uploading at slightly higher quality than their recommended settings (but not wildly over) gives their encoder better source material to work with.
Compress Your Video in the Browser
No installs, no uploads to third-party servers, no waiting.
Compress and resize your video for free with Resizor — powered by WebCodecs, everything runs locally in your browser.
