Compress Video to a Target Size
Shrink an MP4 to an exact size in MB, right in your browser, no upload needed. Runs entirely in your browser, so your data never leaves your device.
Drop an MP4 here, or click to browse
Up to 5 GB · analyzed instantly · never leaves your device
Output
Pick a target size and press Compress; the result appears here with its final size.
Your videos never leave this tab
Compress Video to a Target Size is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, a 5 GB video means 5 GB uploaded, a wait in somebody's queue, and 480 MB downloaded again. Here it means 0 bytes up and 0 bytes down.
- No upload
- No file size limit
- Works offline once loaded
- Nothing stored or logged
How to use Compress Video to a Target Size
- 1. Upload the MP4 video and review the analysis. Drop or browse for the .mp4 file you want to shrink. Videos up to 5 GB work: the file is read in small chunks rather than loaded whole, and it never leaves your device. The tool instantly analyzes the video and shows its duration, resolution, frame rate, codec and bitrate.
- 2. Pick a target size. Choose one of the preset chips such as 8 MB for Discord, 25 MB for email attachments, 50 MB or 100 MB, or type any size into the Custom field. The tool immediately shows the video bitrate that target works out to for this exact clip, and warns you if the target is smaller than the video's length can realistically support.
- 3. Compress and download the video. Press Compress to your chosen size. The tool computes the exact bitrate budget from the video's duration and audio track, downscales the resolution automatically when a tiny target would otherwise turn the picture to mush, and re-encodes in your browser with a progress bar. Preview the result, check that it landed on target, then download it.
When to use Compress Video to a Target Size
Compress Video to a Target Size re-encodes an MP4 to land at a size you name in MB, entirely in your browser without uploading it anywhere. Use it whenever a platform enforces a hard file-size cap and guessing at quality settings would waste encode after encode.
- Fitting a clip under Discord's upload cap. Free Discord rejects attachments over 8 MB, and trimming rarely gets a gameplay clip that far down. Pick the 8 MB preset and the tool computes the exact bitrate that lands under the cap on the first try.
- Emailing a video that providers will accept. Gmail and Outlook cap attachments at 25 MB, and WhatsApp caps forwarded videos too. Targeting 25 MB turns a phone recording that bounces into one that sends, with no back-and-forth over settings.
- Meeting an upload form's stated limit. Job applications, contest entries and support portals often state a limit like 50 or 100 MB. Type that number into the Custom field and the result comes out just under it, with a small built-in margin for container overhead.
- Keeping private footage private. Online compress-to-size services upload your footage to their servers to re-encode it. This tool runs the encoder inside your browser, so a sensitive recording never leaves your machine on its way under the limit.
Examples
Fit a clip under Discord's limit
Input
gameplay.mp4 (62 MB) + 8 MB target
Output
gameplay.mp4 re-encoded to land at about 8 MB
Email a phone recording
Input
birthday.mp4 (180 MB) + 25 MB target
Output
a 25 MB birthday.mp4 that fits any email attachment cap
About the Compress Video to a Target Size tool
Compress Video to a Target Size is a free online tool that works entirely inside your web browser. Shrink an MP4 to an exact size in MB, right in your browser, no upload needed. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.
This page is one of 12 Video utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.
There is nothing to configure. Provide the input and the result appears on its own. The finished file is put together in browser memory and saved with the Download button, so it never touches a server on the way to your disk. 2 worked examples further down the page show exactly what the tool produces for real inputs.
Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every keystroke is handled on your own machine rather than by a remote API.
Frequently asked questions
Is Compress Video to a Target Size free to use?
Yes, it is completely free. All 2,671 tools on EditSafely work without an account, a subscription or usage limits.
Are my files uploaded to a server?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
Which files does Compress Video to a Target Size accept?
It accepts MP4 videos. There is no file size cap imposed by a server; very large files are limited only by your device's memory.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I save the output?
Click the Download button once the result is ready. The file is built in your browser's memory and handed straight to your downloads folder, without passing through a server.