Compress Video to Target Size
- Free
- No upload
- No watermark
Quick answer
To compress a video to a target size, you work backwards from the size limit: the bitrate you can afford is roughly the target in bits divided by the duration, minus the audio. This tool does that math for you — type a number like "under 25MB for email" and it picks the bitrate to hit it, entirely in your browser. Nothing is uploaded. A one-time ~10 MB engine loads on first use; short clips work best.
Step by step
How to compress video to target size
- 01
Load the video and its limit
Drop your file, then type the ceiling you must fit under — 8, 10, 25, 50 MB, or any custom figure. The tool reads the clip’s duration automatically.
- 02
Let it compute the bitrate
It converts your target into a video bitrate using the duration and a small audio and safety allowance, so the result lands just under the limit rather than over it.
- 03
Encode and download
Start the encode — single-threaded, so a longer clip takes a while — and download the file, sized to fit your target.
In depth
How is the bitrate calculated?
File size is just bitrate times duration, so to hit a size you solve for bitrate. Convert the target from megabytes to bits, divide by the length in seconds, and subtract the audio bitrate to leave the budget for the picture:
total_bitrate (bits/s) ≈ target_bytes × 8 / duration_seconds
video_bitrate ≈ total_bitrate − audio_bitrateA worked example: to fit 25 MB for a 60-second clip, that is 25 × 1024 × 1024 × 8 ≈ 209,715,200 bits over 60 s ≈ 3,495 kbps total. Take off a 128 kbps audio track and the video gets about 3,367 kbps. The tool then trims a few percent of headroom off that, because container overhead and encoder variance can nudge the file over an exact ceiling. Naming the audio bitrate matters: at 60 seconds every 32 kbps of audio you drop hands roughly another 240 KB back to the video.
What are the common size limits?
The classic reason to do this is “keep it under 25 MB for email”, but every platform has its own ceiling. These change over time and by plan, so treat them as a starting point rather than gospel — check the current limit if you are close to the edge.
| Limit | Where it typically applies |
|---|---|
| 8 MB | Older Discord free tier, some forums |
| 10 MB | WhatsApp video, some Slack free workspaces |
| 16 MB | MMS on many carriers |
| 25 MB | Gmail and Outlook attachments, current Discord free |
| 50 MB | Slack free uploads, Discord Nitro Basic |
If the math forces the bitrate so low that the picture falls apart, you have three honest choices: shorten the clip with trim video, lower the resolution with resize video, or — when the visuals do not matter — drop the video entirely and send just the extracted audio as an MP3, which is a fraction of the size.
What are the browser limits here?
Two passes of single-threaded WebAssembly encoding is roughly double the work of an ordinary compress, so this is the slowest tool in the set on long clips, and very large inputs can exhaust the tab’s memory. It shines on the short clips people actually need to squeeze under a limit — a screen recording, a phone clip, a highlight. For a feature-length file, a desktop encoder is the better tool.
Does my video get uploaded?
No. The size calculation and the encode both run locally through ffmpeg.wasm; your file never leaves the tab. Verify it in DevTools → Network — no upload request appears while it works, and it keeps working offline once loaded. Confidential footage stays on your machine.
Related video tools
If you do not need an exact number, the quality-slider compress video is simpler. Pair this with resize when the bitrate would otherwise be too low, or trim to cut the duration in the formula. When it fits, add subtitles before you send it.
Your files never leave your device
Processed locally in your browser — nothing is uploaded. You can verify it yourself: open your browser’s developer tools, watch the Network tab, and use the tool — no upload request is ever made.
- No file is ever uploaded to a server
- Works offline after the first visit
- No account, no watermark, no limits
A little more clarity
Frequently asked questions
01How do I get a video under 25MB for email?
Enter 25 MB as the target and the tool computes a bitrate from your clip’s duration — roughly target × 8 / seconds, minus audio — then encodes just under it. Shorter clips keep more quality at the same size.
02What is the formula for target-size compression?
Total bitrate ≈ target_bytes × 8 / duration_seconds; video bitrate ≈ that total minus the audio bitrate. The tool subtracts a small safety margin so the file lands under the limit, not over it.
03Why does a longer video look worse at the same target size?
The same megabytes are spread over more seconds, so each second gets fewer bits. A 5-minute clip under 25 MB has far less bitrate to work with than a 30-second clip under 25 MB.
04Should I use one pass or two?
Two-pass hits the target size more precisely because it analyses the whole clip before allocating bits. It takes about twice as long. Use it when you are close to a hard limit; one pass is fine for a rough target.
05Does lowering the audio bitrate help?
Yes. Audio is subtracted from the total budget, so a smaller audio bitrate leaves more for the picture. Dropping from 192 to 128 kbps frees bits for video at no visible cost for speech.
06What if the target is too small for good quality?
Shorten the clip, lower the resolution, or send only the audio. If the math forces the bitrate very low, no encoder can keep the picture sharp — reduce what you are asking it to fit.
07Is 25 MB measured as 25,000,000 or 25 × 1024 × 1024 bytes?
Platforms differ, so the tool aims a few percent under whichever ceiling you set to be safe against both interpretations plus container overhead. That headroom is why the output is usually a touch below your number.
Guides
Further reading
- Guide5 min readHow to compress a video for email (under 25MB)Email attachment limits are smaller than the number they advertise, and video is the one thing that blows past them instantly. Here is the math that lets you aim a clip at an exact size and land under it every time.Read the guide
- Guide5 min readHow to reduce video file size without losing qualityMost videos are far bigger than they need to be, carrying detail no screen shows and bitrate no eye notices. Here is how to cut a file down while keeping the picture that actually matters.Read the guide
Keep going
Related video tools
More tools, same promise.
123 tools for images, video, audio and subtitles — every one of them runs on your device, and a result can go straight into the next.
- Free forever
- No sign-up
- Nothing uploaded