← Back to Complete Guide

Compress a Video to 16MB for WhatsApp or 25MB for Email

Both of these limits are the same maths problem wearing different numbers: a fixed byte budget divided by the running time gives the bitrate you are allowed, and everything else — resolution, codec, audio — is spent out of that budget. Get the arithmetic right and the file lands under the cap on the first try, at a quality the encoder chose deliberately instead of one it stumbled into.

By Hadi Karaki, maker of Formatif: media processing suiteNovember 27, 20269 min read

The short answer

A one-minute clip fits 16 MB at about 2 Mbps total and 25 MB at about 3.3 Mbps. Reserve 96 kbps for audio, encode the rest in two passes at 720p, and verify the size before sending. For WhatsApp, send it as a document or it will be re-compressed regardless.

Watch a video compressed to an exact 16MB and 25MB

A target-size compressor doing the arithmetic from step 3 automatically: set the megabyte ceiling, and the bitrate is calculated to hit it — locally, with no upload and no second export to shave off the overshoot.

What are the actual size limits?

Inline media is capped around 16 MB on WhatsApp and 25 MB on Gmail, with most consumer mail around 20 MB. Every one of those services accepts a much larger file through a link or a document upload — the small number is a limit on previews, not on files.

ChannelCapWhat it actually governs
WhatsApp chat (video/media)~16 MBPhotos and videos sent inline. WhatsApp re-encodes, so the file also loses resolution even when it fits.
WhatsApp documentup to 2 GBSent as a file, not a video preview — no re-encode, plays only after the recipient downloads it.
Gmail attachment25 MBAbove 25 MB Gmail offers a Drive link instead of a real attachment.
Outlook / consumer mail~20 MBVaries by account and plan; assume 20 MB unless you have checked your own limit.
Discord (free)20 MBNitro tiers raise it to 50 MB and 500 MB. The Discord-specific recipe is elsewhere on this site.

Limits change without notice — treat the table as a starting point and check the current cap in the app if a send fails. The Discord-specific recipe, including the 20 MB free-tier ceiling, is in compressing Medal and ShadowPlay clips for Discord.

Why does WhatsApp still ruin the video when it fits?

Because WhatsApp re-encodes every video it sends inline, whatever its size. The 16 MB figure is a maximum it will accept, not a promise to keep your bitrate — so a perfectly encoded 14 MB clip can still arrive softer and lower-resolution than the file you made.

The workaround is not a better encoder, it is a different channel. Attach the file with Document instead of Gallery/Camera, and WhatsApp transfers the bytes untouched. The trade-off is that the recipient gets a file to open rather than an inline player — fine for a client deliverable, awkward for a quick share.

That one decision changes what you are optimising for. Inline: aim for something that survives WhatsApp's own encode, which means not fighting it — 720p, modest bitrate, and accept the re-compression. Document: aim for the exact file you want to deliver, up to 2 GB.

What bitrate fits 16MB or 25MB?

Bitrate equals file size times eight, divided by duration in seconds. A one-minute clip at 16 MB therefore gets 2.13 Mbps in total; the same clip at 25 MB gets 3.33 Mbps. Shorter clips get more per second, longer clips get less — and past a few minutes there is not enough left to look good.

DurationFor 16 MBFor 25 MB16 MB verdict25 MB verdict
15 s8.53 Mbps13.33 MbpsEasyEasy
30 s4.27 Mbps6.67 MbpsComfortableComfortable
60 s2.13 Mbps3.33 MbpsTight but fine at 720pGood at 1080p
2 min1.07 Mbps1.67 Mbps720p only720p comfortable
5 min0.43 Mbps0.67 MbpsUnusable — split itVisible softness

These are ceilings, not targets: land 5–10% under the cap rather than exactly on it, because container overhead and the audio track eat into the number you calculated.

Skip the arithmetic

Set the megabyte figure, not the bitrate

Formatif Pro takes a target size and calculates the bitrate to hit it, so a folder of clips can all be compressed to 16 MB or 25 MB in one run — H.264 for compatibility or H.265/AV1 for smaller files, encoded on your GPU.

  • Exact 16MB / 25MB target size
  • Batch a whole folder at the same cap
  • H.264, H.265, and AV1 locally
  • No upload, no watermark, one-time license

Formatif Pro is $8.95 once.

How do you compress to exactly 16MB or 25MB?

Trim first, drop to a resolution the budget can afford, subtract the audio bitrate, then encode in two passes to the number you calculated. Verify the container size before sending, and check the last few seconds of playback where bitrate starvation shows up first.

1. Cut the clip before compressing it

Duration is the denominator in the bitrate formula, so every second you remove raises the bits available per second. Trimming dead air is free quality; no encoder setting buys it back.

Trim on keyframes (no re-encode yet)

ffmpeg -ss 00:00:12 -to 00:01:07 -i in.mp4 -c copy trimmed.mp4

2. Pick the resolution the cap can afford

For 16 MB at one minute, 720p is the honest choice; 1080p at the same bitrate looks worse than 720p because the same bits are spread over more pixels. For 25 MB at a minute, 1080p is comfortable.

720p, width computed to keep the aspect ratio

scale=-2:720

3. Subtract the audio from your budget

The cap covers video and audio together. Reserve 96–128 kbps for speech, then the remainder is your video bitrate. At 60 seconds and 16 MB, the total budget is 2.13 Mbps, so video gets about 2.0 Mbps.

The only bitrate formula you need

total = (size_MB × 8) ÷ seconds     ·     video = total − audio

4. Encode to the number, not to a guess

Two-pass targets the bitrate exactly and lands within a few percent of the cap. A single CRF pass with a maxrate ceiling is faster but only approximately bounded — use it when overshooting by 10% is acceptable.

Two-pass, 60 s clip, 16 MB target (Windows)

ffmpeg -y -i trimmed.mp4 -c:v libx264 -preset slow -b:v 2000k -pass 1 -an -f mp4 NUL
ffmpeg -i trimmed.mp4 -c:v libx264 -preset slow -b:v 2000k -pass 2 -c:a aac -b:a 96k out.mp4

5. Verify the size before you send it

Check the container size, not the video stream size — container overhead is small but real. Then play the last ten seconds: the end of a bitrate-starved encode is where artifacts show first.

Read the actual file size in bytes

ffprobe -v error -show_entries format=size -of default=nw=1 out.mp4

Resolution or bitrate — which one do you cut first?

Cut resolution. A fixed bitrate spread across fewer pixels is sharper than the same bitrate spread across more, so 720p at 2 Mbps looks better than 1080p at 2 Mbps in almost every case — especially with motion.

The exception is text. Screen recordings, slides, and anything with fine lettering survive a lower bitrate better at full resolution than at half of it, because scaling text down destroys the strokes. For a recording of a screen, keep the native resolution and cut bitrate; for camera footage, cut resolution first.

One more lever costs nothing: audio. Speech at 96 kbps mono is transparent for messaging, and dropping from 128 kbps stereo frees roughly 4 MB every ten minutes — which is often all a clip needs to fit. The batch pipeline for exactly this is in shrinking video files with FFmpeg and HandBrake.

The desktop shortcut

Type the limit. Let it do the maths.

Formatif Pro's compressor takes a target size in megabytes and derives the bitrate from the clip's duration, so the guesswork in step 3 disappears. Drop a folder in, set 16 MB or 25 MB once, and every clip is written under that ceiling — H.264 for universal playback, or H.265 and AV1 when the encoder has the headroom. Everything runs locally for $8.95 once.

  • Exact target size in MB
  • Batch queue for whole folders
  • GPU encoding, H.264 / H.265 / AV1
  • No upload, no watermark, no credits

Keep reading

Frequently asked questions

What is WhatsApp's video size limit?

Media sent inside a chat is capped around 16 MB, which is why long clips get refused or silently compressed. The same app allows documents up to 2 GB, so sending the file as a document is the way around the media cap when quality matters.

Why does WhatsApp compress my video even when it's under 16MB?

The 16 MB cap is a maximum, not a promise of untouched quality. WhatsApp re-encodes video for streaming and device compatibility, which lowers resolution and bitrate regardless. Sending as a document is the only way to have it arrive as the file you made.

What bitrate fits 25MB for email?

Divide 25 MB by the duration in seconds and multiply by 8: a one-minute clip gets about 3.33 Mbps total, so roughly 3.2 Mbps of video plus 96 kbps of audio. For a two-minute clip the budget drops to about 1.67 Mbps, which is 720p territory.

Should I lower resolution or bitrate first?

Resolution. Dropping from 1080p to 720p removes pixels the encoder was spending bits on, so the remaining bitrate looks sharper. Cutting bitrate at 1080p produces blocking and smeared motion before it produces a small enough file.

Can I compress to an exact size instead of guessing?

Yes — two options. Two-pass FFmpeg encoding targets a bitrate precisely, or a desktop compressor with a target-size field calculates the bitrate for you. Formatif Pro takes the megabyte figure directly, including a batch of clips at the same target.

Does compressing a video for email ruin the quality?

At 25 MB for a short clip, no — that is several Mbps, which is plenty at 720p. The quality loss becomes visible when the clip is long enough that the per-second budget collapses, which is a duration problem, not a compression problem.

What if the video is simply too long for the cap?

Split it into parts, or send a link instead of an attachment. A five-minute clip at 16 MB works out to 0.43 Mbps, which no encoder can make look good at any resolution worth sending.

Under the cap, on the first try.

Formatif Pro is $8.95 once — target-size compression, batch queues, and 63 offline tools. Formatif AI ($12.95) adds the local neural models; both together are $16.95.

HK

Written by

Hadi KarakiLinkedIn

Founder of Formatif, a local-first offline media processing suite for Windows and Linux. Hadi writes about video, image, and audio formats, compression, and privacy-first desktop workflows.