Compress MP4

: Compress MP4 videos in your browser to a size that fits: Discord's 20 MB, a 25 MB email or any MB, or by quality. No upload, no file size limit
Videos
Limits: MP4, MOV, M4V, WebM or MKV · Target size works out the bitrate from the video's length and aims 5% under the target, counting 1 MB as 1,000,000 bytes so the file fits however a site counts it; a result still over is encoded once more, lower. Output is H.264 with AAC sound (Opus where the browser can't make AAC).
Compressed
The largest picture the target's bitrate fills well.
Each video appears here as a smaller MP4 once it is compressed.

Compress MP4 videos to a size you choose: under Discord's 20 MB upload limit, under a 25 MB email attachment, or any number of MB. The tool works out the bitrate from the video's length, lowers the resolution when that bitrate is too thin for the full picture, and checks the result: if it still comes out over, it encodes it once more, lower. Or compress by quality instead. MOV, WebM and MKV videos come out as MP4 too. Everything runs in your browser; the video is never uploaded.

  1. Press Open files or drop one or more videos on the page: MP4, MOV (iPhone), M4V, WebM or MKV. Example makes a short sample WebM with sound and compresses it to an MP4. Each file's row shows its codec, size, length, frame rate and average bitrate.
  2. Leave By on Target size and pick a Target: Discord (20 MB), Email (25 MB), 10, 50 or 100 MB, or Custom and type the MB in Size in MB. Or set By to Quality and pick High, Medium or Low.
  3. Size is the picture: Auto picks the largest picture the bitrate fills well (in Quality mode, the original capped at 1080p); Original, 1080p, 720p, 480p or 360p fix it. Sound keeps it, lowers it to 64 kbps, or removes it.
  4. Compression starts as soon as a file is added and again when you change a setting; the Compressed pane shows progress (and Second pass when a result came out over the target), and Cancel stops it.
  5. Each result says the size before and after, how much smaller, whether it fits the target, its picture size and average bitrate. Play it in the preview, download it, or download them all with Download all as a ZIP.

The plan Target size makes for a few videos, from the tool's own planning function (Size Auto, Sound Keep). Each line is the length, picture size, frame rate, file size and target; the last one is too long for its target.

Input
1:00 1920x1080 30 112 discord
3:00 1920x1080 30 340 discord
0:45 1080x1920 60 95 email
10:00 1280x720 30 600 discord
0:30 1280x720 30 12 discord
1:00:00 1920x1080 30 4000 10
Output
1:00 · 1920 × 1080 · 30 fps · 112 MB → Discord 20 MB
  → 1280 × 720, video 2.4 Mbps + AAC 128 kbps, about 18 MB
3:00 · 1920 × 1080 · 30 fps · 340 MB → Discord 20 MB
  → 854 × 480, video 711 kbps + AAC 128 kbps, about 18 MB
0:45 · 1080 × 1920 · 60 fps · 95 MB → Email 25 MB
  → 720 × 1280, video 4.1 Mbps + AAC 128 kbps, about 23 MB
10:00 · 1280 × 720 · 30 fps · 600 MB → Discord 20 MB
  → 640 × 360, video 200 kbps + AAC 48 kbps, about 18 MB
0:30 · 1280 × 720 · 30 fps · 12 MB → Discord 20 MB
  → Already under Discord 20 MB (12 MB): handed back unchanged, nothing re-encoded
1:00:00 · 1920 × 1080 · 30 fps · 3.9 GB → 10 MB
  → 1:00:00 of video can't fit in 10 MB with a watchable picture: that is about 16 kbps in all for picture and sound, and even at 360p the video alone needs about 104 kbps. Choose a target of at least 67 MB, set Sound to Remove, or trim the video first.

How do I compress a video for Discord or email?

Drop the video here with By on Target size and Target on Discord (20 MB) or Email (25 MB). The tool works out the bitrate from the video's length, aims 5% under the limit, and the result says whether it fits; a long video comes out at a smaller resolution so it still looks clean.

How do I reduce video size on an iPhone?

Open this page in Safari on the iPhone, press Open files, choose the video from Photos, and pick a target. The compressed MP4 is made on the phone itself and nothing is uploaded; save it with Download.

Does compressing an MP4 lose quality, and can it be lossless?

It loses some, because the frames are re-encoded with fewer bits; the tool keeps the loss small by lowering the resolution before the picture turns blocky. Lossless compression of an MP4 is not possible in practice: H.264 and HEVC video is already compressed, so any real size cut means re-encoding.

How long does it take to compress a video?

About as long as your device takes to decode and encode every frame, often faster than the video plays on a recent computer or phone. A result that comes out over the target is encoded a second time, which takes that again; the progress line shows Second pass.

Is my video uploaded, and is there a file size limit?

Nothing is uploaded and the site sets no size limit: your browser reads the video from your disk and writes the MP4 on your device. A long video only takes longer.

Runs entirely in your browser. Nothing is uploaded.