Skip to content
VideoHow-to

How to Compress Video for Email, Web, and Social

Practical settings to shrink video for 25 MB email limits, fast web embeds, and social uploads — resolution, CRF, H.264, and trimming, all in your browser.

Maya BauerJune 23, 20267 min read

Video is the heaviest thing most people try to share. A single minute of footage straight off a phone or camera can run hundreds of megabytes — far too big to attach to an email, slow to load on a web page, and likely to get re-crushed the moment a social platform touches it. The good news is that you can shrink almost any clip dramatically without it looking bad, as long as you match a few settings to where the video is going. This guide walks through the three most common targets — email, web, and social — and the exact levers that get you there.

Why video files get so large

A video is just a long sequence of images played quickly, plus audio. The size depends on four things: resolution (how many pixels per frame), frame rate (frames per second), duration (how many seconds), and bitrate (how many bits the encoder spends per second of footage). A 4K, 60 fps clip has roughly nine times the pixels of 1080p at 30 fps before you change anything else. That is why the single most effective thing you can do is reduce resolution and length — you are removing data, not just squeezing it.

Bitrate is where the actual compression happens. Modern codecs throw away detail your eye is least likely to miss, so a lower bitrate means a smaller file with some loss of fidelity. The art is finding the bitrate that is small enough for your target but high enough that nobody notices.

Start with resolution and length

Before touching encoder settings, ask whether you even need every pixel and every second. Downscaling is the highest-leverage change you can make:

  • 4K to 1080p cuts the pixel count to a quarter. For email and almost all web embedding, 1080p is plenty.
  • 1080p to 720p roughly halves it again and is fine for quick screen recordings, demos, and anything that will play in a small window.
  • Trimming dead air off the start and end, or cutting to just the part that matters, scales the file size linearly. A 30-second clip is half the size of a 60-second one at the same quality.

If you only remember one thing, remember this: shrinking a 2-minute 4K clip down to a 40-second 720p highlight will do more for your file size than any amount of bitrate tweaking.

CRF and bitrate: controlling quality

Once resolution and length are set, you control quality with either a target bitrate or a quality factor called CRF (Constant Rate Factor). CRF tells the encoder to aim for a consistent visual quality and spend whatever bitrate that takes, frame by frame — busy scenes get more bits, static ones get fewer. For H.264, CRF runs from about 0 (lossless, huge) to 51 (tiny, ugly), and lower numbers mean better quality:

  • CRF 18–20: visually near-lossless, larger files — good for masters or web video where quality is paramount.
  • CRF 23: the common default — a strong balance of size and quality for most web and social use.
  • CRF 26–28: noticeably smaller, with mild softening — handy when you must hit a hard size limit like an email cap.

When you have a strict ceiling — say a 25 MB email attachment — a target bitrate is more predictable than CRF. The rough math: a target file size in megabits (multiply MB by 8) divided by the duration in seconds gives your total bitrate budget. Reserve roughly 128 kbps for audio and give the rest to video. For a 25 MB cap on a 60-second clip, that is about 3.3 Mbps total, comfortably enough for clean 720p.

Choose H.264 for compatibility

Codec choice decides whether your video plays everywhere or fails silently. H.264 (also called AVC) is the safest pick by far: it plays in every modern browser, email client preview, phone, and social platform, and it pairs with AAC audio inside an MP4 container. Newer codecs like H.265/HEVC, VP9, and AV1 compress better — sometimes 30–50% smaller at the same quality — but support is uneven, and an email recipient on an older device may see nothing at all. For sharing, stick with H.264 in an MP4 unless you control exactly how the file will be played.

If you want to understand which codecs a given browser actually supports and why, MDN keeps a thorough, current reference in its guide to web video codecs. It is the best single source for deciding when it is safe to move beyond H.264.

Settings by destination

Here is how the pieces come together for each common target.

  • Email attachments: Most providers cap attachments around 25 MB (Gmail and Outlook both sit near there). Aim for 720p, H.264/MP4, and trim aggressively. If you are still over, drop to CRF 26–28 or set a target bitrate from the math above. For anything longer than a couple of minutes, a link is usually kinder than an attachment.
  • Web embedding: Page speed matters, so keep files lean — 1080p at CRF 23 is a sweet spot, and 720p for background or decorative loops. Use MP4/H.264 as your baseline so the video plays without a fallback.
  • Social platforms:Instagram, TikTok, X, and others re-encode whatever you upload, so there is no point sending a massive master — it will be crushed anyway. Upload a clean 1080p H.264 file at a reasonable bitrate and let the platform do its pass. Matching the platform’s aspect ratio (vertical 9:16 for Reels and TikTok) matters more than raw size.

Compressing privately, in your browser

You do not need to upload your footage to a stranger’s server to compress it. FileShrinking’s video compressor runs entirely in your browser — your video is processed on your own device and never leaves it, which matters for anything personal or confidential. There are dedicated tools for the most common formats too: compress MP4 for the universal H.264 container and compress MOV for footage straight off an iPhone or camera. If a clip is mostly audio that happens to be in a video wrapper, the audio compressor can shrink the sound track on its own.

The one honest trade-off: in-browser encoding uses your computer’s CPU, so it is slower than a cloud service for long or high-resolution clips, and a very large file can take a while. For the privacy of never uploading your video, most people find that wait well worth it. Start from your highest-quality original, downscale and trim first, pick H.264, and only then dial in CRF or bitrate — do that and you will hit any email, web, or social target with room to spare.