Compress Videos Online: MP4 Compression, Bitrate, and File Size
Summary:Compress MP4, MOV, and MKV videos locally in your browser. Learn how the quality slider changes bitrate and how to interpret the estimated output size.

Large videos can exceed email and messaging limits or take a long time to transfer. The video compressor runs FFmpeg through WebAssembly, so your video is processed locally in your browser without being uploaded to a server.

How to compress a video

  1. Open Video Compression and click Select File.
  2. Choose an Output Format; the default is mp4.
  3. Adjust Quality; the default is 75.
  4. Check Forecast, the estimated output size, then click Start.

5. When processing finishes, click Download. Use Stop to cancel during conversion.

The first conversion requires the FFmpeg core to load. Further conversions on the same page reuse the loaded engine.

How the quality setting works

File size is approximately bitrate × duration. The tool:

  1. Reads the duration and estimates the original average bitrate from file size and duration.
  2. Multiplies that estimate by the selected quality percentage to obtain a target video bitrate.
  3. Re-encodes the video with FFmpeg.

For example, a 100 MB video lasting 100 seconds has an average bitrate of roughly 8,000 kbps. At quality 50, the target video bitrate is about 4,000 kbps, so the result may be around half the original size.

Forecast uses original file size × quality percentage. Audio tracks, encoder behavior, and scene complexity affect the actual result, so this is an estimate rather than an exact size limit.

Suggested quality settings

  • Keeping a result close to the source: start around 70–85 and inspect the output.
  • Sharing through messaging or email: try 40–60 for a smaller file.

Meetings and tutorials where readability matters most: try 20–40, especially for mostly static scenes, and check that text remains readable.

Low bitrates can cause blocking and lost detail, particularly in fast-moving scenes. A setting of 50 is a useful starting point, but the right value depends on the source.

Supported formats

  • Input: formats such as MP4, MKV, AVI, and MOV, subject to browser metadata support and the available codecs.
  • Output: mp4, mkv, avi, flv, mov, webm, and m4v.

MP4 is a practical default for sharing. WebM can be useful for web playback.

Ways to make the result smaller

  • Shorten the video with Video Clip. Keeping only the useful portion reduces the amount of footage to encode.
  • Crop unnecessary areas using the same tool to remove borders or unrelated content.
  • Keep only the sound with Extract Audio from Video.

Frequently asked questions

Why is compression slow?

This browser-based FFmpeg workflow does not use desktop-style GPU encoding. Processing time depends on your CPU, resolution, and video duration. Trimming long footage first can help.

How large can a video be?

Available browser memory limits the practical size. Start with files of a few hundred megabytes or less on a desktop browser; this is a guideline, not a guaranteed limit.

What if conversion fails?

The codec may be unsupported, or the file may exceed available memory. Try another output format or a shorter video.

Related tools

Questions
Compress JPG and PNG Images Online Without Uploading Files
Reduce JPG and PNG file sizes in your browser. Learn how quality settings, output formats, and compression ratios affect your images.
Convert PNG to JPG and JPG to PNG Online
Convert PNG, JPG, and BMP images in your browser without uploading files. Learn how conversion affects transparency, file size, and image quality.
Crop Images Online: Aspect Ratios, Rotation, and WebP Export
Crop photos to 1:1, 16:9, and other aspect ratios. Rotate, flip, and lock your selection, then export PNG, JPG, or WebP directly in your browser.
Resize Images, View Image Information, and Create ICO Icons Online
Resize images, adjust output quality, inspect format and color space, and convert PNG or JPG to ICO icons with browser-based Image Tools.
Convert MOV to MP4, MKV to MP4, and MP4 to WebM Online
Convert videos between MP4, MKV, AVI, MOV, FLV, WebM, and M4V in your browser. Compare formats and learn what changes during conversion.
Trim and Crop Videos Online, Then Export MP4
Keep a selected video segment, remove black borders, or crop a recording to one area. Trim and crop locally in your browser and download an MP4.
Extract Audio from Video Online: Convert MP4 to MP3
Extract sound from MP4, MOV, or MKV videos and export MP3, WAV, FLAC, or M4A. Process recordings locally in your browser without uploading files.
Convert WAV, FLAC, and M4A to MP3 Online
Convert audio between MP3, WAV, FLAC, M4A, OGG, WMA, and AC3 in your browser. Compare formats and understand the tradeoffs in file size and quality.
Trim Audio Online: Cut MP3 Clips with a Waveform Preview
Select a time range on an audio waveform, listen to the preview, and export MP3. Make short clips or remove unwanted sections from recordings locally.
Generate and Read QR Codes Online from Text, Links, and Images
Create a downloadable QR code from text or a URL, or decode a QR image in your browser. Learn how to make codes easier to scan and inspect their links.
AES Encryption and Decryption Online: CBC, ECB, Keys, and IVs
Use AES-128, AES-192, or AES-256 with CBC or ECB in your browser. Check UTF-8 key lengths, IV requirements, and hex or Base64 ciphertext encoding.
Base64 and URL Encoding Online: Differences and Common Uses
Encode and decode UTF-8 text with Base64 or URL percent-encoding in your browser. Learn which to use and how to troubleshoot malformed URL escapes.
Random String Generator: Alphanumeric Test Data and Temporary IDs
Generate 1–10,000 alphanumeric characters with a letter first. Create test data and temporary identifiers, and learn why this tool is unsuitable for secrets.
Free Online Tools for Images, Video, Audio, and Encoding
Explore Xian's Tools for compression, conversion, trimming, QR codes, AES, and hashing. Learn how files are processed locally in your browser without uploads.
Compress Videos Online: MP4 Compression, Bitrate, and File Size
Compress MP4, MOV, and MKV videos locally in your browser. Learn how the quality slider changes bitrate and how to interpret the estimated output size.
Compress Audio Online: Reduce MP3 Bitrate and Recording File Size
Reduce audio file sizes locally in your browser. Learn how bitrate affects size and how to choose compression settings for speech, podcasts, and music.
Calculate MD5, SHA, and HMAC Online: Uses and Differences
Calculate MD5, SHA1, SHA256, SHA512, and HMAC for text in your browser. Understand digest lengths, API signatures, and why hashing is not encryption.