Video Compression Calculator

Work out what a file size leaves you, or what a resolution costs. The bitrate is exact arithmetic; the resolution verdict is a recommendation, and this page keeps the two apart — then shows what we actually measured at that bitrate on three kinds of 1080p footage.

sec
MB
Total bitrate
3,425 kbps
exact
Left for video
3,297 kbps
after 128 kbps audio
At 1080p
watchable but soft
recommendation

25 MB over 1 min leaves 3,297 kbps for video. The best resolution that clears its comfortable threshold is 720p. 1080p is the highest that is still watchable.

What 25 MB clears

  • WhatsApp Video in chat (mobile) 16 MB
  • Gmail in practice 18 MB· base64 adds ~37%
  • Discord Free 20 MB
  • Gmail 25 MB
  • TikTok Android app 72 MB
  • X (Twitter) Standard 512 MB

What we measured at this bitrate

VMAF from our own encodes at 1080p, libx264 preset medium, measured 2026-09-14. One clip per content type, so treat these as positions rather than tolerances — the gap between them is the finding, not the individual numbers.

  • Screen recording
    ≥ 99.99VMAF
    above every bitrate we measured for this content (top was 835 kbps → 99.99); not extrapolated
  • Animation
    84.3VMAF
    between measured 3,232 kbps → 84.07 and 4,140 kbps → 87.68
  • Camera footage
    86.3VMAF
    between measured 3,157 kbps → 85.61 and 3,878 kbps → 89.42

The arithmetic

Given a size and a duration there is exactly one answer, and it is a hard ceiling rather than an opinion. Everything the calculator labels “exact” comes from these two lines.

total kbps  = size_MiB × 8,388,608 × 0.98 ÷ seconds ÷ 1,000
video kbps  = total kbps − audio kbps
  • 8,388,608 is bits per mebibyte. Upload limits are enforced in mebibytes while being called megabytes, so using 1,000,000 would compute a target about 5% larger than the one actually being applied.
  • 0.98 reserves container and muxing overhead. MP4 costs roughly 1–2%; this budgets the pessimistic end, because the failure mode worth avoiding is landing just over a hard cap.
  • 128 kbps is the default audio assumption — stereo AAC at a sane quality. Speech starts to sound thin below about 96 kbps.

Where the resolution thresholds come from

These are the numbers the calculator compares your budget against. They are recommendations, not measurements: derived from published H.264 bitrate ladders — YouTube’s recommended upload bitrates and Apple’s HLS authoring specification — and pulled down by roughly a third. Those ladders describe a first encode of a clean master, while compressing an existing MP4 starts from footage that has already been through one lossy pass and survives a lower bitrate than a master does. Deliberately conservative: the failure we care about is telling someone their video will look fine when it will not.

H.264 bitrate thresholds per resolution at 30 fps
ResolutionComfortableWatchable
4K20,000 kbps12,000 kbps
1440p9,000 kbps5,500 kbps
1080p4,000 kbps2,000 kbps
720p2,200 kbps1,100 kbps
480p1,000 kbps500 kbps
360p600 kbps300 kbps

At 30 fps. A 60 fps clip of the same resolution wants more, and lowering frame rate is usually the wrong lever — the cost lands on motion, where viewers notice most.

What we measured, and why one bitrate cannot serve everyone

Eighteen encodes: three kinds of 1080p footage at six quality settings each, libx264 preset medium, VMAF scored against the original every time. Measured 2026-09-14. The reason it is on this page is the spread — the three content types sit in completely different places at the same bitrate, so a calculator that returns one verdict is telling at most one of them the truth.

Screen recording

measured 389–835 kbps

  • 835 kbps99.99
  • 752 kbps99.99
  • 637 kbps99.98
  • 543 kbps99.97
  • 488 kbps99.71
  • 389 kbps96.92

Animation

measured 1,945–10,864 kbps

  • 10,864 kbps94.86
  • 8,337 kbps93.76
  • 5,855 kbps91.42
  • 4,140 kbps87.68
  • 3,232 kbps84.07
  • 1,945 kbps73.94

Camera footage

measured 2,051–8,406 kbps

  • 8,406 kbps97.98
  • 6,926 kbps96.62
  • 5,210 kbps93.74
  • 3,878 kbps89.42
  • 3,157 kbps85.61
  • 2,051 kbps75.44

What this does not cover, so nobody builds a claim on it: one clip per content type, ten seconds each, all 1080p and all H.264. Enough to show that the three classes sit in completely different places; not enough to quote a tolerance on any single number, and it says nothing about H.265. The calculator interpolates between these points and refuses to extrapolate past them.

Quick reference

The highest resolution that clears its comfortable threshold, for common sizes against common lengths. Assumes 128 kbps of audio. This is the calculator’s answer for the combinations people ask for most, worked out in advance.

Best comfortable resolution by target size and clip length
Size15s30s1 min2 min5 min10 min
8 MB1080p480p360p———
10 MB1080p720p480p———
16 MB1080p1080p480p360p——
25 MB1440p1080p720p480p——
50 MB4K1440p1080p720p480p—
100 MB4K4K1440p1080p720p480p
200 MB4K4K4K1440p1080p720p

A dash means no resolution on the ladder clears its comfortable threshold at that combination — the clip is too long for the size. Trim it, or accept a soft result.

Calculator questions

How do I calculate the bitrate for a target file size?

Multiply the size in mebibytes by 8,388,608 to get bits, divide by the duration in seconds, then divide by 1,000 for kbps. Subtract the audio bitrate to get what is left for video, and take off about 2% for container overhead. That is the whole calculation, and it has exactly one answer — the judgement only starts when you ask whether that bitrate is enough.

Is the resolution recommendation measured or estimated?

Estimated, and labelled as such throughout. The thresholds come from published H.264 bitrate ladders — YouTube’s recommended upload bitrates and Apple’s HLS authoring specification — pulled down by roughly a third, because those ladders describe a first encode of a clean master and compressing an existing MP4 starts from footage that has already been through one lossy pass. The bitrate figures on this page are arithmetic; the pass/fail verdicts are a recommendation.

Why does the same bitrate look fine on one video and bad on another?

Because content decides how far a bitrate goes. We encoded three kinds of 1080p footage at six quality settings each and scored VMAF on all eighteen: at around 3,300 kbps a screen recording sits above every bitrate we tested for it, animation lands near 89, and handheld camera footage near 85. At the bottom of the range the gap widens to more than fifteen points. A single recommended bitrate cannot serve all three, which is why this page shows all three.

Should I lower the resolution or the quality setting?

Resolution, almost always, and earlier than feels natural. Because pixel count is two-dimensional, 720p needs about 44% of 1080p’s pixels, so dropping a rung buys far more than squeezing the quality setting — and it buys it without the blocking and smearing that over-compression produces. Match the resolution to where the video will actually be watched, then adjust quality.

Does the audio track matter?

On a short clip, a lot. A 15-second video inside 2 MB has about 1,090 kbps to spend in total; a 128 kbps stereo track is nearly 12% of that before the first frame. On anything over a minute it is close to a rounding error. If a clip has no narration, check whether it is carrying a full stereo track of silence — removing it is free.

Why 1 MB = 1,048,576 bytes and not 1,000,000?

Because that is what upload limits are enforced in. Platforms and operating systems overwhelmingly measure in mebibytes while calling them megabytes, so a calculator using 1,000,000 would report a target about 5% larger than the one being enforced — which is exactly the margin that makes an upload fail at the stated limit.

Can a calculator guarantee the exact compressed file size?

No. The bitrate budget is exact arithmetic, but the encoded file is an estimate because video complexity, audio, container overhead and encoder behavior vary. For a hard upload cap, aim a few percent below it rather than using the published limit as the target.

Why should I set a target below the platform's upload limit?

Because an encode can land slightly above its requested size, and platforms reject the file at the hard ceiling. A small safety margin absorbs that variance; VidSmaller's platform presets already use a safe target below the stated limit.

Can I keep the original resolution and still hit my target size?

Only when the target leaves enough bitrate for that resolution and duration. If 1080p falls below its watchable bitrate threshold, keeping 1080p will produce a softer result than dropping to 720p. File size, duration and resolution cannot all be fixed independently.

Skip the arithmetic

These pages have the answer worked out and the compressor already preset, for the numbers people hit most.