Video compressor: shrink a video to the size you need
Drop an MP4, MOV or WebM, pick a target such as Discord’s 20 MB or a size of your own, and the video is encoded again in your browser to land under it. The page shows the bitrate maths before you start, and the video never leaves your device.
Your browser cannot preview this file, but it can still compress it.
1 is the smallest file, 10 the sharpest picture.
Estimated size
How to use it
- Drop, paste or choose a video. Its size, length and bitrate appear under the preview.
- Pick a target: Discord (20 MB), Gmail (25 MB), your own size in MB, or Quality when the exact size does not matter.
- Lower the resolution to 1080p, 720p or 480p if the warning says the picture will be blocky, and untick Keep sound if the clip does not need it.
- Check the estimate, press Compress, compare the result and download it.
How video compression works
A video file is mostly its bitrate multiplied by its length. Size in bytes = (video bitrate + audio bitrate) × seconds ÷ 8, because bitrates count bits and file sizes count bytes. A smaller file means a lower bitrate, so the length matters as much as the target: 20 MB is a lot for 30 seconds and very little for 10 minutes.
This tool turns the formula around, keeping 3% spare for the MP4’s index and headers: video bitrate = target × 8 × 0.97 ÷ seconds − audio bitrate. A one-minute clip for Discord gets 20 × 8 × 0.97 ÷ 60 − 0.128 = 2.46 Mbps of video. To plan an export in another app, use the file size and bitrate calculator.
The video is encoded again as H.264 with WebCodecs, built into Chrome, Edge, Safari and Firefox, in an MP4 that phones, browsers and chat apps play. AAC sound already at or under the planned rate is copied; otherwise it is encoded at 128, 96 or 64 kbps, depending on the room the target leaves.
| Target | 30 seconds | 1 minute | 3 minutes | 10 minutes |
|---|---|---|---|---|
| 10 MB | 2.46 Mbps | 1.17 Mbps | 0.34 Mbps (96 kbps audio) | Too small |
| 20 MB | 5.05 Mbps | 2.46 Mbps | 0.77 Mbps (96 kbps audio) | 0.19 Mbps (64 kbps audio) |
| 25 MB | 6.34 Mbps | 3.11 Mbps | 0.95 Mbps | 0.26 Mbps (64 kbps audio) |
Choosing a target and a resolution
The quality slider sets the bits spent per pixel per frame, from 0.03 at 1 to 0.12 at 10; at 1080p and 30 fps the middle setting, 5, works out to about 4.35 Mbps.
The same bitrate spread over fewer pixels looks sharper, so a long clip in a small target looks better at 720p than at 1080p. The tool warns when the plan falls under 0.02 bits per pixel per frame and names the next resolution down. Take a 3-minute 1080p clip for Gmail: 25 MB leaves 0.95 Mbps of video, which is 0.015 bits per pixel at 30 fps. At 720p the same bitrate gives 0.034, and the picture holds together.
Below 100 kbps there is not enough for moving pictures, so the tool stops there and tells you the size to expect. If the target is still out of reach, trim the video first: half the length leaves twice the bitrate.
- Width and height are rounded down to even numbers, as H.264 with 4:2:0 colour needs.
- A phone video recorded sideways keeps its rotation tag and plays the right way up.
- The frame rate stays as recorded. A key frame is placed every two seconds so players can seek.
- If the first pass lands over the target, the tool encodes once more at a bitrate lowered by the overshoot and tells you so.
Size limits on Discord and Gmail
Discord’s File Attachments FAQ says the maximum upload for users without Nitro is 20 MB, and notes that Discord is testing other limits with some users (support.discord.com, read on 26 November 2026). Gmail’s help page on attachments gives 25 MB for personal accounts; work and school accounts follow their administrator’s settings (support.google.com/mail/answer/6584, read the same day).
For other apps, check their help page and enter the limit as your own size. Sizes here are decimal (1 MB = 1,000,000 bytes), as macOS, iOS and most upload forms count them.
What a browser can and cannot do here
The file is read in 8 MB slices, so memory holds the output and a few seconds of frames, not the whole input. Speed depends on your device: a long 4K file can take many minutes and drains a phone battery. Keep the tab in front while it works.
MP4 and MOV files with H.264 or HEVC video take the fast WebCodecs path. WebM files, browsers without WebCodecs and codecs the browser cannot decode use a slower fallback that plays the video once in real time while recording it; the page says when. HDR video from recent iPhones is written as standard 8-bit H.264, so colours can look flatter than in the original.
To shrink many clips at once on an iPhone rather than one file here, Lean finds the biggest photos and videos in the library and compresses them on the device, keeping dates, places and albums.
Related tools
Questions people ask
How do I compress a video for Discord?
Choose Discord (20 MB), the limit Discord’s help centre gives without Nitro, and press Compress. For clips over about two minutes, also choose 720p.
Is this video compressor free, and is my video uploaded?
It is free with no watermark and no account. The video is decoded and encoded by your browser on your device; nothing is sent to a server.
Can I compress a video without losing quality?
Any re-encode loses some detail. The loss is hard to see while the bitrate is generous for the resolution; the warning under the estimate tells you when it is not.
Why is the result slightly different from the estimate?
Encoders spend more bits on busy scenes and fewer on still ones. The tool keeps 3% spare and re-encodes once at a lower bitrate if the result lands over a size target.
How do I make my iPhone videos smaller?
Save the clip to Files and drop it here from Safari. For many videos in the Photos library at once, use Lean, which compresses them on the iPhone.
