How to use
- Add up to 20 videos. Each one shows an estimated output size.
- Choose a Compression mode: Target size or Quality preset (from High quality down to Small file).
- For Target size, enter the size in MB. Remember that 1 MB is 1,048,576 bytes here.
- Optionally lower the Maximum resolution (1080p, 720p, 480p or 360p), the Frame rate (30, 24 or 15 fps) and the Audio bitrate, or choose Remove audio.
- Pick the Format (MP4 or WebM) and a Codec your audience can play.
- Press Compress, compare the before and after sizes, and download.
Worked example
With a 25 MB target, a 2-minute clip gets 25 MB × 8 ÷ 120 s = 1.75 Mb/s in total; after a 2% container allowance and 128 kb/s audio, the video is encoded at about 1.58 Mb/s (1 MB = 1,048,576 bytes).
Supported formats and limits
| Input | MP4, MOV, WebM, MKV |
|---|---|
| Output | MP4 (H.264, H.265 or AV1 with AAC), WebM (VP9, AV1 or VP8 with Opus) |
| Limits | Input files up to 4 GB; the compressed file is built in memory. Codec availability depends on the browser. Needs a browser with WebCodecs (current Chrome, Edge, Safari 17+ or Firefox 130+). Other browsers are told so before any work starts. |
| Engine | Mediabunny conversion with WebCodecs; bitrate derived from the target size and duration, with a second pass if the first lands above the target |
Tips for best results
- Email limits are tight. Gmail stops at 25 MB, so aim a little under, such as 22 or 23 MB, because the result is only approximate.
- Squeezing a 5-minute clip into 25 MB leaves just under 700 kb/s for picture and sound combined, which looks fine at 720p but poor at 1080p.
- Screen recordings and talking-head videos hold up well at 15 or 24 fps. Fast sports footage does not.
- H.264 in an MP4 plays almost everywhere. H.265 and AV1 give smaller files at the same quality but older phones and TVs may not play them.
Limits
- Target sizes are approximate because encoders vary the bitrate scene by scene. If the first result is over the target, the video is encoded once more at a lower bitrate; very grainy footage can still end up larger, and the tool says so.
- Some platform encoders only accept certain audio bitrates (for example 96 to 192 kb/s for AAC on Windows); the nearest supported one is used and noted.
- The frame rate options only lower the rate and never raise it. The compressed file is built in memory, and codec availability depends on your browser.
Questions
How do I compress a video on a Mac?
Open this page in Safari 17 or later, Chrome or Firefox 130 or later, add the video and pick a target size or a quality preset. The video is re-encoded on your Mac with WebCodecs and downloaded as MP4 or WebM.
How do I compress a video to 50 MB, 10 MB or 8 MB?
Choose the Target size mode, type the size in MB or press a preset, and add the video. The bitrate is worked out from the target and the length. A 50 MB target for a 10-minute video leaves about 0.7 Mb/s in total, so lower the Maximum resolution to 720p or 480p if the picture looks rough.
How do I compress a video for Discord?
Choose the 10 MB target, which matches Discord's free upload limit. The bitrate is worked out from the video's length, and a second pass runs if the first result is over the target.
Will the file land exactly on my target size?
Close to it, not exactly. The bitrate is worked out from the target and the duration, and encoders vary bitrate scene by scene. If the first result is over the target, the video is encoded again at a lower bitrate; very grainy footage can still end up larger, and the tool says so.
How is the bitrate for a target worked out?
Target size × 8 ÷ duration gives the total bitrate. A 2% container allowance and the audio bitrate are subtracted, and the rest goes to the video.
Which codecs can I use?
H.264, H.265 or AV1 in MP4, and VP9, AV1 or VP8 in WebM, depending on what your browser can encode. The tool checks before it starts.
Guides
Privacy
Runs on your device. Files and text are processed in this browser tab and are not uploaded.
See the privacy policy for how toolsdocks handles data.