You have a video to email. It's 200MB. Gmail rejects anything over 25MB. The universal experience of 2026: record something on your phone, try to attach it, and watch the email client refuse.

The solution is compression — reducing the video's file size while keeping it watchable. This isn't about achieving cinematic quality. It's about getting a video small enough to land in someone's inbox while still being clear enough to serve its purpose. That means aggressive settings that would be wrong for any other context, applied with precision.

Here are the exact limits, the math behind file sizes, and the step-by-step process to get under them.

Email Attachment Limits by Provider

Email ProviderMax Attachment SizeNotes
Gmail25MBAuto-suggests Google Drive for larger files
Outlook (Microsoft 365)20MBShared mailboxes may have lower limits
Yahoo Mail25MBTotal for all attachments combined
Apple iCloud Mail20MBMail Drop auto-uploads to iCloud for larger files (up to 5GB)
ProtonMail25MBEncrypted attachments have additional overhead
Zoho Mail20MBBusiness plans may allow more

Important: These limits apply to the encoded attachment, not the raw file. Email attachments are Base64-encoded, which adds ~33% overhead. A 25MB limit means your actual file should be under ~18.75MB to guarantee delivery. Target 18MB to be safe.

Also: the recipient's email provider matters too. You might send a 24MB attachment from Gmail, but if the recipient is on Outlook (20MB limit), it may bounce. Target 18MB to clear every major provider.

The File Size Formula

Video file size is determined by a simple equation:

File size (MB) = Bitrate (Mbps) x Duration (seconds) / 8

Examples:

  • 5 Mbps x 60 seconds / 8 = 37.5 MB (too big for email)
  • 2 Mbps x 60 seconds / 8 = 15 MB (fits in email)
  • 1 Mbps x 120 seconds / 8 = 15 MB (fits in email)
  • 1 Mbps x 180 seconds / 8 = 22.5 MB (borderline)

Working backward from the limit: For an 18MB file (safe email limit), you need:

Video DurationMaximum Average Bitrate
30 seconds4.8 Mbps
1 minute2.4 Mbps
2 minutes1.2 Mbps
3 minutes0.8 Mbps
5 minutes0.48 Mbps
10 minutes0.24 Mbps (unwatchable)

Beyond 3-5 minutes, the bitrate required for an 18MB file is too low for acceptable video quality at any resolution. Use a cloud sharing link for longer videos.

Five Compression Strategies

Each strategy reduces file size. Combine them for maximum reduction.

1. Reduce Resolution

Resolution has the biggest impact on file size. Halving the resolution roughly quarters the number of pixels, which roughly halves the bitrate needed for equivalent perceived quality.

ResolutionPixelsRelative Size
4K (3840x2160)8.3M4x
1080p (1920x1080)2.1M1x (baseline)
720p (1280x720)0.9M0.5-0.6x
480p (854x480)0.4M0.25-0.3x

Recommendation: 720p is the sweet spot for email. It looks fine on phone screens and laptop monitors, and it roughly halves the file size compared to 1080p. Only drop to 480p if you're compressing a long video and 720p still doesn't fit.

2. Increase CRF (Reduce Quality)

CRF (Constant Rate Factor) controls quality. Higher CRF = lower quality = smaller file. For H.264:

  • CRF 18: Visually lossless. Not for email — too large.
  • CRF 23: Default. Good quality, still often too large for email.
  • CRF 28: Noticeable softness on close inspection. Acceptable for email.
  • CRF 32: Visibly soft, some blocking artifacts. Acceptable for casual email clips.
  • CRF 36+: Obviously degraded. Only for extreme compression needs.

Recommendation: Start with CRF 28. If the file is still too large, increase to 30-32. Quality perception depends heavily on content — talking head videos tolerate CRF 32 well because there's little motion, while fast-action sports look bad above CRF 26.

3. Reduce Frame Rate

Phones record at 30fps or 60fps. For an email attachment, 24fps is sufficient — human perception doesn't need 60fps for a casual clip. Dropping from 60fps to 24fps reduces the amount of data by up to 40%.

Recommendation: Use 24fps for all email video. The only exception: screen recordings with scrolling, where lower frame rates make the scrolling look choppy.

4. Trim the Video

File size is directly proportional to duration. A 3-minute video at any reasonable quality will struggle to fit under 18MB. Trim to the essential segment.

Ask yourself: does the recipient need the entire video, or just the 30-second clip that shows the relevant moment? Trimming from 3 minutes to 30 seconds reduces file size by 83%.

5. Choose the Right Codec

H.264 in MP4 is the only correct choice for email attachments. Not H.265 (recipient may not have a player that supports it). Not WebM (Gmail might play it but many email clients won't preview it). Not AVI (too large, no advantages).

MP4 with H.264 video and AAC audio is the format that every email client, phone, and computer can play without installing anything. Convert MOV to MP4 | Convert MKV to MP4 | Convert WebM to MP4 | Convert AVI to MP4.

SettingValue
ContainerMP4
Video codecH.264 (Main or High profile)
Resolution720p (1280x720)
Frame rate24 fps
CRF28-32
Audio codecAAC
Audio bitrate96 kbps mono or 128 kbps stereo
FaststartEnabled (-movflags +faststart)

Expected file sizes with these settings:

  • 30 seconds: 3-6 MB
  • 1 minute: 6-12 MB
  • 2 minutes: 10-18 MB
  • 3 minutes: 15-25 MB (borderline)

The faststart flag is important for email: it moves the MP4 metadata to the front of the file, allowing the recipient's email client to start playback before downloading the entire attachment.

Two-Pass Encoding for Exact File Size

CRF mode targets quality, not file size. If you need to hit exactly 18MB, use two-pass encoding with a target bitrate instead.

Calculate the target bitrate:

  1. Target file size: 18MB = 144 Mbit = 144,000 kbit
  2. Video duration: e.g., 120 seconds
  3. Audio overhead: ~96kbps x 120s = 11,520 kbit
  4. Video bitrate: (144,000 - 11,520) / 120 = 1,104 kbps

With FFmpeg, the two-pass encoding approach analyzes the content first, then allocates bits optimally in the second pass. The result hits your target size within a few percent while distributing quality evenly across easy and complex scenes.

For most email scenarios, CRF 28-32 at 720p will land under 18MB without the complexity of two-pass encoding. Only use two-pass if you need precise size control.

When to Use Cloud Sharing Instead

If your video exceeds 3 minutes at any reasonable quality, email attachment isn't the right approach. Use a cloud sharing link:

  • Google Drive: 15GB free. Share link auto-offered by Gmail for large attachments.
  • Dropbox: 2GB free. Generates a shareable link the recipient doesn't need an account to access.
  • WeTransfer: 2GB free. No account needed. Link expires in 7 days.
  • iCloud: Apple's Mail Drop auto-uploads attachments over 20MB, provides a download link valid for 30 days.
  • OneDrive: 5GB free. Integrates with Outlook for seamless sharing.

Cloud sharing is objectively better for videos over 3 minutes: no compression needed, full quality preserved, recipient can watch or download at their convenience. The only advantage of an email attachment is offline access and no dependency on a third-party link.

Email attachments are the worst way to share video, but sometimes they're the only way. When the recipient doesn't use cloud services, when corporate email blocks external links, or when you just need to send a 30-second clip without ceremony — compression to fit under 18-25MB is the solution.

The recipe is simple: 720p, H.264 CRF 28, 24fps, AAC 96kbps. That covers 90% of email video needs. For the other 10%, trim the clip shorter or accept that a cloud link is the right tool for the job.