Video Compressor (Reduce Video File Size Without Uploading / MP4 Under 10 MB, 25 MB or Any Size)

Completely free, with no extra charges. You may freely use the output commercially.

About this tool

A tool for when a phone video or screen recording is too big to email or goes over the limit of Discord, a chat app or an application form: it turns the video into an MP4 under the size you choose without uploading it to a server.

Enter a target such as “20 MB or smaller” and the tool splits the bitrate between video and audio based on the video’s length, then picks the resolution that will look best at that rate. If the result is still over the target, it lowers the bitrate (and the resolution if needed) and tries again, up to 4 times. You can also skip the size and choose “High, Standard or Small” quality, and set the resolution (1080p, 720p, etc.), frame rate, audio bitrate, trimming of the start and end, and removal of metadata such as the recording location. You can play the compressed video right on the page before saving it. All processing happens entirely in your browser (no data is sent).

Choose a video

Drop a video file here or choose one with the button (MP4, MOV, WebM, MKV).

How to use

  1. Choose a video with “Choose a video” or drop it into the box. Once it loads, the length, resolution, frame rate, codec and bitrate are shown. To just try it out, “Try a sample video” creates and loads an 8-second video of about 8 MB.
  2. Leave “Target size” selected and enter a size, or press a button such as 10MB, 20MB (Discord free) or 25MB (Gmail attachment). Above “Compress” you will see the chosen resolution, frame rate and bitrate, and the expected file size.
  3. If needed, open “Resolution, frame rate, audio, trim” to fix the resolution, remove the audio, or cut unneeded parts from the start and end.
  4. Press “Compress”. Progress and an estimate of the time remaining are shown. When it finishes, the compressed video appears below; play it to check, then press “Save MP4”.

If you compress the sample video with the default 20MB, it is already smaller than the target, so it is re-encoded with a “smaller than the original” setting instead of filling the target. Enter 2MB under “Target size” and compress, and 2 MB is spread over 8 seconds, so it stays at 720p at about 1.9 Mbps and comes out at about 1.9 MB.

How it fits the video under the target size

A video’s file size is roughly “(video bitrate + audio bitrate) × length”. This tool keeps 4% of the target size for the MP4 index and similar overhead, divides the rest by the video’s length, and gives what is left after the audio to the video. For example, to fit a 3-minute (180-second) video into 20 MB: 20,000,000 bytes × 8 × 0.96 ÷ 180 seconds is about 853 kbps; with 96 kbps of audio, the video gets about 757 kbps.

At the same bitrate, a higher resolution leaves less data for each pixel, which makes the picture blurry or blocky. When “Resolution” is set to auto, the tool looks for the largest resolution that gets at least 0.05 bits per pixel per frame, trying the original, 1440p, 1080p, 720p, 540p, 480p, 360p and 240p in that order. In the 3-minute example above, 1080p at 30 fps gets only 0.012 bits and even 540p gets 0.049 bits, so it picks 480p at 0.062 bits. If even 240p is not enough, it lowers the frame rate to 30, 24 or 15 fps.

How much data a video encoder uses depends on how much movement there is in each scene, so the output can come out slightly over even at the intended bitrate. When it goes over the target, the tool lowers the video bitrate in proportion to the overshoot and encodes again. If that drops below 0.03 bits per pixel per frame, it also lowers the resolution one step (when resolution is set to auto). It tries up to 4 times. If it still doesn’t fit, lower the resolution or trim the start and end to make it shorter. If the target is so small that the video can’t even get 60 kbps, the smallest size that can work is shown before compression starts.

1 MB is counted as 1,000,000 bytes. Some services set their limits with 1 MB = 1,048,576 bytes, but fitting under the smaller 1,000,000-byte figure keeps you under the limit either way.

Output format

The saved video is an MP4 with H.264 video and AAC audio, which plays on almost any computer, phone, social network or chat app. Even if the original is an iPhone HEVC (H.265) MOV or a WebM (VP8, VP9) screen recording, it is converted to an H.264 MP4. The information needed to start playback is placed at the beginning of the file, so it starts playing on a web page without waiting for the whole download.

With audio set to “Auto”, it picks 128, 96 or 64 kbps depending on the target size and never goes above the original audio bitrate. If the original audio is AAC at or below the chosen bitrate, it is reused without re-encoding. If the browser can’t encode AAC (for example Chromium on Linux), the audio becomes Opus; in a browser that can’t encode audio at all, it reuses the original AAC or drops the audio, and says so in the result. Opus in MP4 may be silent in older players, so in that case compress again in Chrome or Edge on Windows or Mac.

With “Don’t keep metadata such as the recording location” turned on (the default), the GPS location, device model, title and similar data that phones write into videos are not carried over. This keeps a video you send to someone from revealing where you live.

When compression doesn’t work

  • “This browser can’t re-encode videos” appears Reading and writing video uses a browser feature called WebCodecs. It works in desktop Chrome and Edge (version 94 or later), Safari 16.4 or later, and Firefox 130 or later. Safari on iPhone and iPad also works, but long videos can stop when memory runs out.
  • It says the video can’t be read or re-encoded iPhone HEVC (H.265) videos can’t be read by Chrome or Edge on some Windows setups. In that case open it in Safari or Chrome on a Mac, or set iPhone “Settings” → “Camera” → “Formats” to “Most Compatible” before recording.
  • It takes a long time How long re-encoding takes depends on your computer or phone and on the video’s length and resolution. An estimate of the remaining time is shown next to the progress. A lower resolution is faster. Keep the tab open while compressing.
  • The result is larger than the original A video that was already saved at a low bitrate won’t get smaller by re-encoding. The result says so in that case; lower the resolution or choose “Small”.
  • It stops on long videos The compressed video is kept in memory until it is finished, so settings that produce a file of several GB can run out of memory. As a rule of thumb, use settings that produce 2 GB or less.

Related tools

To just calculate the bitrate you need from a size limit before compressing, use the Video Bitrate Calculator; to turn a short scene into an animation for a README or chat, use Video to GIF; and to start by recording your computer screen, use the Screen Recorder. When a PDF attachment is too big, Compress PDF fits it under a target size the same way.