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 limitCompress MP4
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.
How to compress an MP4
- Press
Open filesor drop one or more videos on the page: MP4, MOV (iPhone), M4V, WebM or MKV.Examplemakes 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. - Leave
ByonTarget sizeand pick aTarget:Discord (20 MB),Email (25 MB), 10, 50 or 100 MB, orCustomand type the MB inSize in MB. Or setBytoQualityand pickHigh,MediumorLow. Sizeis the picture:Autopicks the largest picture the bitrate fills well (in Quality mode, the original capped at 1080p);Original, 1080p, 720p, 480p or 360p fix it.Soundkeeps it, lowers it to 64 kbps, or removes it.- Compression starts as soon as a file is added and again when you change a setting; the
Compressedpane shows progress (andSecond passwhen a result came out over the target), andCancelstops it. - 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 allas a ZIP.
Example
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.
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 101: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.Details
- How a target size is met: the tool aims at 95% of the target, takes off what the MP4 itself adds (its index grows with every frame and sound packet), gives the sound its share (128 kbps AAC on Keep, 64 kbps on Lower, less on a tight budget but not under 32 kbps), and spreads the rest over the video's length as its bitrate. Encoders miss their bitrate by a few percent, so the result is measured; one still over the target is encoded once more with the overshoot taken out, and the result says whether it fits. Very grainy or noisy footage can defeat the encoder at full size (asked for less, it gives about the same), so with
SizeonAutothat second pass takes a smaller picture instead. - How
Autopicks the picture size: H.264 needs enough bits for every pixel of every frame. Auto takes the largest of the original, 1080p, 720p, 480p and 360p that still gets about 0.05 bits per pixel per frame at the bitrate the target allows, so a minute of 1080p into 20 MB comes out 720p rather than a blocky 1080p. A 60 fps video counts its frames twice; the picture is never made larger, and a portrait phone video keeps its shape (720p is 720 × 1280). - Targets count 1 MB as 1,000,000 bytes, the smaller reading, so a result under the target is under it whether Discord or an email service counts 1,000,000 or 1,048,576 bytes to the MB. Sizes shown on the page use 1,048,576 bytes to the MB, as Windows does, so a result aimed under 20 MB shows as about 18 MB. Discord's 20 MB is its upload limit without Nitro, raised from 10 MB in August 2026; 25 MB is Gmail's attachment limit for personal accounts (above it Gmail sends a Google Drive link instead). Other email services can be lower: pick
Customfor those. - An MP4 already under the target (with
SizeonAutoorOriginalandSoundonKeep) is handed back unchanged, so nothing loses quality for no reason. A MOV, WebM or MKV under the target is made into an MP4 at no more than 90% of its own bitrate, so a short clip under a big target is not inflated to fill it. A result that is not smaller than the original says so: keep the original. - Output is H.264 video with AAC sound, the MP4 that Discord, iPhones, Android, Windows, Macs and messaging apps play. Some browsers can't encode AAC (Chrome and Edge on Linux, Firefox); there the sound becomes Opus and the result says so, since QuickTime and older iPhones may play it silent. The compressed file leaves out the source's metadata, including a phone's GPS location and the recording date.
IMG_0042.MOVdownloads asIMG_0042.mp4, andclip.mp4asclip-compressed.mp4.
Limits
- No file size or count limit: the video is read from disk in slices and the MP4 is gathered in parts. Compressing re-encodes every frame, so it takes about as long as your device needs to decode and encode the video, often faster than it plays; a second pass takes that again.
- A target can be too small for the video's length: an hour can't fit in 10 MB with a watchable picture. The tool then refuses and names the smallest target that works (about 100 kbps of video at 360p, plus 32 kbps of sound), or set
SoundtoRemove, or trim the video first. - Compressing always loses some quality: the video is re-encoded at a lower bitrate. Nothing makes an MP4 noticeably smaller without that.
- Re-encoding uses your browser's own encoders (WebCodecs): a current Chrome, Edge, Firefox or Safari. Apple ProRes can't be decoded in a browser, and the output is H.264 only (HEVC and AV1 would be smaller but don't play everywhere). HDR videos come out standard range.
FAQ
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.