Video Bitrate Calculator

The exact bitrate and ffmpeg command for any target file size.

Target size
MB
0 kbps
Video bitrate
0 kbps
Total (video + audio)
0 MB
Expected file size
—
Size reduction (drop a file)
—
Bits per pixel

Single-pass on the Media Engine, often 10× faster than software. Aims 5% under the bitrate to absorb VideoToolbox overshoot. -tag:v hvc1 keeps it playable in QuickTime, Photos and iOS.

Two-pass hits the target size most precisely. H.264 plays inline everywhere, including Discord on the web, older Android phones and Windows.


The formula

Video kbps = (target MB × 8,000 × 0.97 ÷ seconds) − audio kbps. The 0.97 keeps 3% headroom for the MP4 container, and 1 MB = 1,000,000 bytes. Example: 8 MB for a 1:00 clip with 96 kbps audio = 938 kbps video. Drop your own clip and the calculator reads its real size, length, resolution and bitrate. The file never leaves your device.

Platform size limits (checked November 2026)

PlatformLimitSuggested target
Discord (free)20 MB since Aug 13, 2026 (10 MB from Sep 2024)8 MB fits every server; 20 MB for 2026 free accounts
Gmail25 MB attachments25 MB (19 MB for Outlook.com’s 20 MB)
WhatsApp64 MB media video; 2 GB as Document50 MB for inline playback
Slack / TeamsLarge uploads allowed100 MB for fast previews on mobile

Do it on iPhone in two taps: zero ads

Tuck shrinks an iPhone video to the size you need: 20 MB for Discord, 25 MB for email, 50 MB for WhatsApp, or any number you type. It works out the exact bitrate and encodes on the phone with Apple’s hardware HEVC/H.264 encoder. No ads, no uploads, and a one-time Lifetime option.


Choosing resolution & codec for maximum sharpness per megabyte

  • Above 2,500 kbps: Keep 1080p 30fps (H.264 for universal compatibility, or H.265/HEVC for higher fidelity).
  • 1,000 – 2,500 kbps: Downscale to 720p 30fps: fewer pixels means cleaner text and faces with less compression smear.
  • Below 1,000 kbps: Drop to 540p or 480p at 24–30fps, switch to HEVC/AV1 if supported, and drop audio to 64 kbps mono for speech.

Two-pass ABR vs CRF & the 33% email attachment trap

Standard single-pass CRF encoding gives predictable quality but unpredictable file size. Whenever a platform enforces a hard ceiling (Discord’s 10 MB free cap, GitHub’s 10 MB PR limit, or Gmail’s 25 MB limit: which holds only ~18.5 MB of raw video after Base64 MIME encoding adds ~33%), two-pass ABR lets FFmpeg allocate extra bits to complex motion scenes while hitting your exact MB target.

Compressing clips directly on your iPhone without touching a computer or uploading to ad-heavy websites? See Tuck’s iPhone Discord & Email compression guides.

Video bitrate calculator FAQ

Why did my 20 MB video still bounce on Gmail's 25 MB limit?

Email uses Base64 MIME encoding for attachments, which inflates binary file size by ~33%. A 20 MB MP4 grows to ~26.6 MB on the wire and bounces. Always target 18 MB or less for 25 MB email servers.

Should I use two-pass ABR or CRF when targeting a specific MB cap?

Use two-pass ABR (generated by the ffmpeg command above) whenever you have a strict file-size ceiling like Discord's 10 MB free limit or Gmail's 25 MB limit. Use CRF when you care about constant visual quality and don't have a hard MB cap.

When should I downscale 4K or 1080p to 720p?

Once your available video bitrate drops below ~2,200 kbps (for H.264) or ~1,400 kbps (for HEVC), 1080p starts showing heavy macroblocking in motion. Dropping to 720p 30fps gives each pixel over twice the bits and looks visibly sharper.