About the Compress Video tool
Email attachments are usually capped around 20–25 MB, messaging apps shrink videos badly, and upload forms often reject anything too large. Phones record at high bitrates, so even a short clip can be hundreds of megabytes. This video compressor re-encodes your file into a compact H.264 + AAC MP4 without sending it anywhere.
There are two ways to compress. “Target quality” uses x264's constant rate factor (CRF): you choose a quality level from 18 (near-transparent) to 36 (very small), and the encoder spends bits where the picture needs them. That is the best choice when you just want a smaller file that still looks good. “Target file size” is for hard limits: you enter a size in MB, and the tool reads the video's duration and calculates the video bitrate needed, reserving room for the audio and container overhead. The result lands near the target — usually slightly under — because it uses a single-pass average bitrate.
You can also downscale to 1080p, 720p, 480p or 360p (never upscale), choose an encoder speed and set the audio bitrate. The result screen shows the size before and after. Encoding runs as single-threaded WebAssembly, so it is slower than a desktop app; short clips take seconds, long HD videos can take many minutes.
How to use Compress Video
- Drop the video you want to shrink.
- Choose “Target quality” and move the CRF slider, or choose “Target file size” and enter a size in MB.
- Optionally pick a lower “Resolution” such as 720p — the biggest single saving for 4K or 1080p phone videos.
- Pick a “Speed” (Fast is the default) and an audio bitrate.
- Click “Compress video”, then compare the Before/After sizes and download the MP4.
Features
Quality (CRF) or target size
Compress by visual quality, or hit a size limit with a bitrate calculated from the duration.
Optional downscaling
Limit the shorter side to 1080, 720, 480 or 360 px; sizes are kept even for H.264.
Universal MP4 output
H.264 video, AAC audio and fast-start so it plays on every phone, browser and platform.
Before/after comparison
See both file sizes and the percentage saved, with a warning if the source was already smaller.
Speed presets
Trade encoding time for file size with Fastest, Fast or Smaller presets.
When to use it
- Get a phone video under an email attachment limit.
- Shrink a screen recording before uploading it to a help desk or LMS.
- Reduce a 4K clip to 1080p or 720p for sharing in chat.
- Make a video fit a website's upload size cap.
Frequently asked questions
What CRF value should I use?
23–28 is a good range for sharing. Lower numbers mean higher quality and bigger files; every increase of about 6 roughly halves the file size.
Why is the compressed file bigger than my original?
If the source was already efficiently compressed at a low bitrate, re-encoding at high quality can make it larger. Raise the CRF, choose a lower resolution, or keep the original. The tool tells you when this happens.
How accurate is the target size mode?
It computes the bitrate from the duration and usually lands a little under the target. Very short or very static videos can come out noticeably smaller, because the encoder does not need all the bits.
How long will compression take?
It depends on the resolution and length and on your device. ffmpeg.wasm runs single-threaded, so expect it to be several times slower than desktop tools like HandBrake for long HD videos.
Is my video uploaded to a server?
No. The only download is the ffmpeg.wasm engine itself (about 31 MB from the jsDelivr CDN, cached by your browser after the first use). Your video is read and processed inside this browser tab and never leaves your device.
Can I compress very large files?
Files beyond roughly 500 MB may exceed the memory a browser tab can use. Trim the video first, or use a desktop app for very large files.