Compress a video under any size you need
Pick a target like 8 MB, 25 MB or your own number. The tool works out the bitrate from the length, compresses on your device, checks the real file size and tries again if it lands over.
Runs in your browser. Your video never leaves your device.
Video
or drop it here. MP4, MOV, WebM or GIF.
Tool
Settings
Checking what this browser can encode…
Your video
Your video shows here. It is read on this device only.
How the size target works
File size is bitrate times length. The tool takes your target, keeps 3 percent and a little more aside for the container, subtracts the sound at 96 kbps, and gives the rest to the video. If that leaves too few bits for the full resolution, it lowers the resolution, because a sharp 720p video looks better than a blocky 1080p one. After encoding it measures the file. If it is over, it lowers the bitrate by the amount it missed and tries again, up to four times. If a target is impossible, for example a long video into 4 MB, it says so before it starts and tells you the smallest size that would work. Sizes here count 1 MB as 1,000,000 bytes, the smaller of the two meanings, so the result fits either way. For reference, personal Gmail accounts allow 25 MB of attachments, TikTok In-Feed ads take up to 500 MB and Meta video ads up to 4 GB.
Sources, read on 2 December 2026: Gmail Help: attachments, TikTok Ads Manager help: In-Feed Ads, Meta Ads Guide: Facebook Feed video.
How to use it
Add your video
Choose or drop an MP4, MOV or WebM.
Pick a size
Tap 4, 8, 10, 25 or 50 MB, or type your own.
Compress
Trimming or removing the sound leaves more room for the picture.
Check and download
The result shows its real size, and whether it made the target.
Video ad sizes and file limits
| Platform | Placement | Ratio | Pixels | Largest file | Source |
|---|---|---|---|---|---|
| Meta | Facebook Feed | 4:5 | 1440 × 1800 | 4 GB | Meta Ads Guide: Facebook Feed video |
| Meta | Instagram Feed | 9:16 | 1080 × 1920 | 4 GB | Meta Ads Guide: Instagram Feed video |
| Meta | Instagram Stories | 9:16 | 1440 × 2560 | 4 GB | Meta Ads Guide: Instagram Stories video |
| TikTok | In-Feed, vertical | 9:16 | 540 × 960 or more | 500 MB | TikTok Ads Manager help: In-Feed Ads |
| TikTok | In-Feed, square | 1:1 | 640 × 640 or more | 500 MB | TikTok Ads Manager help: In-Feed Ads |
| Video ad | 4:5, 9:16, 16:9 or 1:1 | Not given | 500 MB | LinkedIn Ads Guide: video ads |
Read on each platform's own page on 2 December 2026. Meta's Facebook Feed page also asks for H.264 video with stereo AAC sound at 128 kbps or more, and TikTok asks for a bitrate of at least 516 kbps. Specs change, so check before a big launch. Spotted something out of date? Tell us and we fix it.
Which browsers it works in
The tools use WebCodecs, the video encoders built into your browser, so nothing is uploaded and there is nothing to install. Can I use lists full WebCodecs support from Chrome 94, Edge 94, Firefox 130 and Safari 26, and partial support in Safari 16.4 to 18.7 (Can I use: WebCodecs, read on 2 December 2026). Which formats a browser can write also depends on the device: some cannot encode H.264 or AAC sound. The tool checks this on load and says plainly what yours can make, so a step never fails without a reason.
Built on open source: Mediabunny on GitHub (MPL 2.0) reads and writes MP4, MOV and WebM, gifuct-js on GitHub reads GIFs and gifenc on GitHub writes them (both MIT). Thank you to their authors.
Questions people ask
Can I compress a video to exactly 8 MB?
The tool aims just under your target and checks the finished file. If it lands over, it tries again with a lower bitrate, so you get a file under 8 MB or a plain message that it could not get there.
Why does the tool say my target is too small?
Every second of video needs some bits to look like anything. Below about 60 kbps for the picture it turns to mush, so the tool refuses and tells you the smallest size that works for that length. Trim the video or remove the sound to get closer.
Why did the resolution go down?
With few bits, fewer pixels look better. Untick Lower the resolution to keep the original size, at the cost of a blockier picture.
Is my video uploaded to compress it?
No. It is compressed inside your browser with its own encoder and never leaves your device.
What is the Gmail attachment limit?
Gmail Help says the limit for personal accounts is 25 MB. Larger files are sent as a Google Drive link instead.
How small can a TikTok or Meta ad video be?
There is no small limit worth worrying about. TikTok In-Feed ads take files up to 500 MB and ask for at least 516 kbps, and Meta takes up to 4 GB, so for ads keep quality high and compress only as much as you need.
More free tools
Making video ads every week? Let Raino do the busywork
Raino finds what your competitors run, makes image ads with AI, resizes and localizes them, and launches them to Meta in bulk.
No card needed.