NEW · FFmpeg.wasm · 100% Browser-Based

Free Video Compressor

Shrink a video to a target file size, with presets for WhatsApp, Discord and Gmail or any size you type. Runs in your browser. No upload, no signup, no watermark.

🎬
Drop a video file
MP4 · MOV · WebM · MKV · AVI · GIF
Files stay on your device · Never uploaded

Related Tools on UDT

Video Converter →
Convert between MP4, MOV, WebM, MKV, AVI, and GIF entirely in your browser.
Video Trimmer →
Trim videos with frame-accurate precision in your browser.
Video Merger →
Concatenate multiple videos into one — no re-encode when codecs match.
All Video Tools →
Browse the full Video Suite — 18 tools, all in-browser.

Why Do This in Your Browser?

Most online video compressors push your files to a server, run FFmpeg on the back end, and send the compressed result back. That works, but it means every clip — including private recordings, client work, and embargoed material — leaves your device. For platform-specific compression where the only goal is hitting a file-size cap, there's no good reason for the upload step.

This tool runs FFmpeg.wasm — the WebAssembly build of FFmpeg — entirely in your browser. The compression engine downloads once (~32MB), caches locally, and runs every job thereafter on your CPU. Files stay on the device. The platform presets calculate target bitrate from your video's duration and your chosen cap, then re-encode using H.264 (the codec every messaging app, social network, and email client decodes natively).

How It Works

Pick a preset that matches where the video is going. Presets use commonly cited limits, which platforms change; check the current limit if you are close to it. As of October 12, 2026: WhatsApp's help centre gives a default video limit of 64 MB at 480p on slower connections and 100 MB at 720p on faster ones (larger files go as documents, up to 2 GB); Discord allows 20 MB on free accounts (raised from 10 MB on August 13, 2026), 50 MB with Nitro Basic and 500 MB with Nitro; Gmail sends messages up to 25 MB, a limit that counts the encoded message: attachments travel as Base64, which adds a third (4 bytes for every 3), so the Gmail preset targets 18 MB (18 × 4/3 = 24 MB). Upload sites such as TikTok, YouTube and Instagram accept files far larger than these, so they have no preset: use Custom size if you want a smaller upload. The tool reads your video's duration and works backward: target_bitrate = (target_size_in_bits × 0.97 / duration_in_seconds) − audio_bitrate. A single encoding pass can still land a few percent over, so the finished file is checked against the cap and re-encoded at a proportionally lower bitrate if needed: in our test a 5 MB target first came out at 5.30 MB and the delivered file was 4.99 MB.

Output is H.264 + AAC in an MP4 container — the universally-compatible combination. For very small targets, the bitrate gets too low for full resolution; shrink the video first with the Video Resizer. Audio is kept (re-encoded to 128 kbps AAC) unless you mute it. The tool never encodes above your file’s own bitrate, so if a video is already under the target and re-encoding would not make it smaller, it tells you to keep the original instead of handing back a bigger file.

Tip: If your source is in MOV, MKV, or AVI, run it through the Video Converter first — H.264 in MP4 compresses faster and more predictably than less common codecs. Compress only the part you actually need by trimming the video first.

Common Use Cases

WhatsApp Sharing
Drop a phone-shot clip in, pick the WhatsApp preset, and it fits the 64 MB default even on a slow connection, so WhatsApp does less recompressing of its own.
Discord Posts
Free accounts 20 MB since August 2026, Nitro Basic 50 MB, Nitro 500 MB: all three presets included.
Gmail Attachments
Gmail's 25 MB limit counts the whole encoded message, and Base64 makes an attachment about a third bigger, so the preset aims at 18 MB.
Cold Email & Outreach
Sending a screen recording to a prospect? 10–25MB lands; 500MB+ gets quarantined.
TikTok & Reels Pre-Upload
Trim file size before upload to speed up posting on slow connections.
Storage Cleanup
Shrink old phone videos to a size you choose before archiving.

Worked example: a 20 MB, 20-second 1080p clip at two targets

How the tool picks a bitrate: target size × 0.97 ÷ duration, minus 128 kbps for audio, but never more than 70% of the input's own video bitrate. It encodes once with x264 (veryfast, -maxrate 1.5× and -bufsize 2× the target) and, if the file is still too big, re-encodes up to twice at a proportionally lower bitrate. On October 12, 2026 we ran that exact logic with desktop FFmpeg 6.1.1 on a 20 s, 1920×1080, 30 fps test clip with moving detail and fine temporal grain (19.9 MB, 7.96 Mbps, AAC audio). Sizes are decimal megabytes (1 MB = 1,000,000 bytes), as the tool now uses:

TargetBitrate from the targetBitrate usedEncodesOutputPSNR vs input
16 MB (custom)6.08 Mbps5.48 Mbps (capped at 70% of the input)114.37 MB38.9 dB
8 MB (custom)2.98 Mbps2.98 Mbps17.99 MB (7,986,955 bytes)36.8 dB
  • The 70% cap can land well under the target. This input was only 19.9 MB, so the 16 MB target allowed 6.08 Mbps but the cap held it to 5.48 Mbps, and the file came out at 14.37 MB. That avoids pointless re-encodes of files that are already small, at the price of a little quality you could have kept.
  • Both runs fitted first time and the quality held up (37–39 dB PSNR on grainy footage, the hardest kind to compress), and the 8 MB result landed 13 KB under its limit: the 3% margin is what keeps single-pass encodes inside the target. The same 16 MB for a 3-minute clip leaves about 0.6 Mbps for video, where 1080p falls apart; resize to 720p first.
  • "MB" here means 1,000,000 bytes. Targets are decimal megabytes, so a 20 MB target never produces more than 20,000,000 bytes. That fits whether a service counts megabytes in decimal or in binary (1,048,576 bytes), which is why the tool switched from binary megabytes on October 12, 2026.
  • Check limits before you trust a preset. Platform caps change: Discord cut its free limit from 25 MB to 10 MB in 2024 and raised it to 20 MB on August 13, 2026. Each preset lists the figure and date it was checked against; use Custom size if a platform has changed it since.

Frequently Asked Questions

Is this video compressor really free?+
Yes: free, no watermark, no signup and no upload. Compression runs on your own device, so long videos take a while: a 20-second 720p test clip took about 1 to 2.5 minutes in Chrome on our test machine.
Are my videos uploaded anywhere?+
No. The entire compression runs in your browser using FFmpeg.wasm (open source: an MIT-licensed wrapper around a core build that includes x264, which makes that build GPL). The WebAssembly engine (~32MB) downloads on first use, and your browser usually caches it so later runs start faster. Your video never touches a server.
Why does the first compression download 32MB?+
FFmpeg.wasm is the WebAssembly build of FFmpeg — the same engine used by virtually every desktop video tool. It downloads once to your browser cache, then runs every subsequent job locally without re-downloading.
What's the maximum file size?+
There is no fixed limit, but the whole video is loaded into browser memory, so very large files can fail, especially on phones. For long or 4K files, trim first or use desktop FFmpeg or HandBrake.
Does it work for WhatsApp's video limit?+
Yes. WhatsApp's help centre gives a default video limit of 64 MB (480p) on slower connections and 100 MB (720p) on faster ones; the WhatsApp preset aims at 97% of 64 MB so the file fits either way and WhatsApp has less reason to recompress it. The longer the clip, the lower the bitrate: a 3-minute clip at 64 MB gets about 2.6 Mbps for video, plenty for 720p. To send a file untouched, attach it as a document (up to 2 GB).
Will it add a watermark?+
No. The output is clean MP4 (H.264 video + AAC audio). The free tools that add watermarks are doing so as upsell pressure to their paid plans.
Why is the file size sometimes a little under or over the target?+
Bitrate-based compression is not byte-exact: the final size depends on how compressible the content is (a static slide compresses smaller than a fast-action montage at the same bitrate). The tool aims at 97% of the target, never encodes above 70% of the input's own bitrate, and checks the result: if a file comes out over the limit it re-encodes at a proportionally lower bitrate, up to twice, and shows an error rather than handing you a file that is too big. So results land under the target, sometimes well under.
Can I compress without losing quality?+
True 'lossless' compression of an already-compressed source video is impossible — you can only re-encode at lower or equal quality. This tool always works to a size target; for quality-first encoding with CRF, use desktop FFmpeg or HandBrake.