Skip to content
ByteNeat

Compress a video to an exact file size

Pick a target size and get a video that fits under it. Presets for Gmail, Discord and WhatsApp limits. Runs entirely in your browser — your video is never uploaded.

Drop a video here, or

MP4, MOV, WebM, MKV or AVI · up to about 500 MB · never uploaded

Compress a video to a size limit, not a guess

Most video compressors ask you to pick a vague "quality" slider and then hope the result is small enough. That is backwards. Usually you do not want somecompression — you want the file to fit under a specific hard limit, because an upload button rejected it. This tool starts from that limit and works backwards.

You give it a target in megabytes. It reads how long your video is, subtracts the space the audio track needs, and divides what is left over the running time to get the exact video bitrate that will land just under your number. Then it re-encodes at that bitrate.

The limits people usually hit

WhereLimitNotes
Gmail / Outlook25 MBLarger files get converted to a Drive or OneDrive link
Discord (free)10 MBNitro Basic raises this to 50 MB, full Nitro to 500 MB
WhatsApp16 MBApplies to video sent in chats on most regions
Slack (free)1 GB per fileRarely the constraint; the workspace storage cap usually is

Why resolution matters as much as bitrate

There is a floor below which a given resolution simply falls apart. Encoding 1080p at 300 kbps does not give you soft 1080p — it gives you a blocky mess, because there are not enough bits to describe two million pixels thirty times a second. Dropping to 480p and spending the same 300 kbps on a quarter as many pixels looks dramatically better.

That is what the Auto resolution setting does. Once it knows your bitrate budget, it picks the largest resolution that budget can actually support and scales down to it. If you would rather keep the original dimensions and accept the artefacts, choose Keep original — but for aggressive targets, letting it scale down almost always looks better.

Why the result is not exactly the size you asked for

Bitrate targeting is an average, not a contract. The encoder spends more bits on complex, fast-moving scenes and fewer on still ones, so the final byte count depends on your specific footage. To make sure you land under the limit rather than a few hundred kilobytes over it, the tool aims at roughly 95 percent of your target. A 25 MB request produces a file of about 23 to 24 MB.

Nothing is uploaded

The compression runs on your own machine, using FFmpeg compiled to WebAssembly and running inside the browser tab. Your video is never transmitted anywhere. That means you can safely compress confidential recordings, and there is no upload wait on a slow connection.

The trade-off is speed. A server-based compressor runs on many CPU cores; this runs on one browser thread. Expect roughly one to three minutes of processing per minute of video. The first run also downloads the encoder itself — about 30 MB, cached by your browser afterwards. For very long or very large files, a desktop application like HandBrake will be considerably faster.

Frequently asked questions

How do I compress a video to under 25MB for email?

Choose the 25 MB Gmail preset, drop your video in, and press Compress. The tool reads the video length, works backwards to the bitrate that lands just under 25 MB, and re-encodes to hit it. Gmail, Outlook and most mail servers cap attachments at 25 MB, so the preset aims slightly below that to leave room for encoding overhead.

What is the Discord file size limit?

Free Discord accounts can upload files up to 10 MB. Nitro Basic raises that to 50 MB and full Nitro to 500 MB. Server boosts can also raise the limit for everyone in that server. Use the 10 MB preset if you are on a free account and the recipient server has no boosts.

Is my video uploaded to a server?

No. The compression runs inside your browser using FFmpeg compiled to WebAssembly. Your video file never leaves your device, which is why the tool works on confidential footage and why there is no upload wait. The trade-off is that your own CPU does the encoding, so it is slower than a server-based service.

Why is compression slow?

Video encoding is genuinely expensive, and here it runs on a single browser thread rather than on a server with many cores. Expect roughly one to three minutes of processing per minute of video, depending on your machine and the resolution. Keeping the tab in the foreground helps, since browsers throttle background tabs.

Will compressing reduce the quality?

Yes — that is unavoidable when you force a file into fewer bytes. How noticeable it is depends on how aggressive the target is. Halving the size of a phone video is usually hard to spot. Squeezing a ten-minute 4K clip into 10 MB will look obviously soft. Lowering the resolution alongside the size often looks better than keeping full resolution at a very low bitrate.

What video formats are supported?

MP4, MOV, WebM, MKV and AVI all work as inputs. The output is always MP4 with H.264 video and AAC audio, because that combination plays essentially everywhere — email clients, phones, Discord, WhatsApp and every modern browser.

How large a video can I compress?

Files up to roughly 500 MB are comfortable. Beyond that, the browser can run out of memory because the whole file has to be held in RAM while it is processed. For very large files, trim the section you actually need first, or use a desktop tool like HandBrake.

Why is my output slightly larger or smaller than the target?

Bitrate-based encoding is an estimate, not a guarantee. The encoder aims at an average bitrate, but the exact byte count depends on how compressible your particular footage is. The tool targets about 95 percent of the size you ask for, so the result lands under the limit rather than a few hundred kilobytes over it.

Last updated .