Compress a video in your browser: MP4, MOV, WebM or MKV
Make a video smaller without uploading it. Drop an MP4, an iPhone MOV, a WebM screen recording or an MKV, and this page re-encodes it on your computer as an H.264 MP4 that plays everywhere. Pick a quality level, or a target such as 10 or 25 MB and let it fit the file under that size.
- MP4, MOV, WebM and MKV in
- H.264 MP4 out
- Target size: 10, 25, 50 MB or your own
- Smaller frame size, audio kept or removed
- Nothing is uploaded
How it works
- Step 1
Drop a video up to 500 MB on the box, or click to choose one: .mp4, .mov, .webm, .mkv or .m4v. It opens in this tab.
- Step 2
Pick a target size, or leave it at None and pick a quality. Choose the frame size and whether to keep the audio. Press Compress video.
- Step 3
Compare the before and after sizes, watch the result, and download the MP4. Your original file is never changed.
What each setting does
- Target size
- Pick Under 10, 25 or 50 MB, or type your own. The page works out the average bitrate that fits the clip's length, leaves room for the audio and the MP4 container, and encodes at that rate. Then it measures the file: if it came out over, it encodes again at a lower rate, up to three tries.
- Quality
- Without a target, the encoder holds a constant quality: High is CRF 18, Balanced CRF 23 and Smallest file CRF 28. Lower numbers keep more detail and make a larger file. The size then depends on the footage: a still screen recording needs far fewer bits than handheld video.
- Frame size
- Keep the full frame, or scale both sides to 75 or 50 percent; H.264 needs even dimensions, so odd ones round down. Half size is a quarter of the pixels. For a clip that will be watched in a chat window or on a phone, this often saves more than a lower quality setting, at less visible cost.
- Audio
- Keep re-encodes the first audio track as AAC at up to 128 kbps. Remove leaves the sound out, which saves those bytes. Silent autoplay on a web page doesn't need this: a
mutedvideo autoplays with its track in place. - Output
- H.264 video, AAC audio and
yuv420pcolour in an MP4, with the index at the front (faststart), so it starts playing before it has fully downloaded. Length and frame rate stay as in the source.
Measured: a 97 second screen recording
On December 5, 2026 we ran this page in Chrome on a laptop (Apple M1 Pro) with an earlier cut of our product tour: 1920×1080, 97 s, H.264 with AAC sound, 23.3 MB. The last row is its first 20 seconds saved as an HEVC .mov, the way an iPhone writes video.
| Input and settings | Output | File size | Time |
|---|---|---|---|
| MP4, Balanced (CRF 23) | 1920×1080 | 23.3 MB → 3.7 MB | 98 s |
| MP4, Smallest file, 50% | 960×540 | 23.3 MB → 1.8 MB | 57 s |
| MP4, target Under 10 MB | 1920×1080 | 23.3 MB → 9.5 MB | 108 s |
| MP4, target 2 MB (Other size) | 1920×1080 | 23.3 MB → 2.0 MB | 100 s |
| HEVC .mov, first 20 s, Balanced | 1920×1080 | 8.0 MB → 0.8 MB | 23 s |
Both targets landed at 95 to 98 percent of the size asked for, on the first attempt. A target spends its whole budget: this mostly still screen recording needed only 3.7 MB at Balanced, so Under 10 MB bought extra sharpness rather than savings. Camera footage needs far more bits, which is where a target helps most. Times include reading the file; the converter was already cached.
What CRF should I use to compress an MP4?
Start with Balanced, CRF 23, the x264 default and a good fit for the web. Use High, CRF 18, when the source is already heavily compressed and you can't afford another visible loss. Use Smallest file, CRF 28, for previews. Each step of 6 roughly halves or doubles the file. If a service names a size limit, use a target size instead of guessing.
Shrink the frame before raising CRF
When the video will be shown small, scale it down first. A 1080p screen recording at 50 percent is 960×540: a quarter of the pixels to encode, and text stays readable in a phone-width player. A high CRF on the full frame smears that same text.
Why the file can get bigger
A source already encoded at a low bitrate has little left to remove; re-encoding it at CRF 18 can add bytes. Try Smallest file, a 75 percent frame size or a target size. The page shows both sizes and keeps your original, so a failed attempt costs nothing.
Frequently asked questions
- Which video files can I compress?
- MP4, M4V, MOV (including HEVC from an iPhone), WebM (VP8 and VP9) and MKV. The output is always an H.264 MP4. AV1 video can't be decoded by this converter yet.
- Is the video sent to a server?
- No. The converter is ffmpeg compiled to WebAssembly, running in a worker in this tab. Your file, the decoded frames and the result stay in the browser; the server only sent the page and the converter.
- How do I get a video under 10 or 25 MB?
- Choose Under 10 MB or Under 25 MB as the target, or Other size for any number. The page encodes to fit it and checks the result. A very long clip at a small target gets few bits per second: if the result looks too soft, also set the frame size to 75 or 50 percent.
- Will an iPhone video keep its colours?
- An HDR (Dolby Vision or HLG) video is converted to standard 8-bit colour without tone mapping, so it can look flatter than on the phone. Standard-range video keeps its colours.
- Does compression remove the audio?
- Only if you choose Remove. Keep re-encodes the first audio track as AAC, at 128 kbps or less when a target size needs the room.
- Why did the first file take longer?
- The first run downloads the converter, about 30 MB, and your browser keeps it. After that, the time depends on the length and size of the video and on your computer.
Still have the page that made the video?
Record it again with RecordHTML instead of compressing a screen capture. The browser renders at the size and frame rate you ask for, and the encoder writes the final H.264 file once, with a target file size if you need one.
10 credits free every month · No card needed