VidCompressor

About VidCompressor

Who makes this compressor, how it works, and the open-source software inside it.

VidCompressor (vidcompressor.app) is a free video compressor that runs in your web browser. It is for people who need a smaller video file for a chat app, an email, an upload form or their own storage, and who would rather not upload their videos to make them smaller.

What it does

  • Compresses a video to a size you choose in MB, such as Discord's 20 MB or Gmail's 25 MB, or to a quality level.
  • Trims the start and end in the same step.
  • Measures the finished file in bytes and says whether it is under your target.
  • Saves an MP4 with H.264 video and AAC sound.

It does not upload, store or share your videos, and it does not edit them beyond trimming, resizing and re-encoding.

How it works

Your browser does the work. For most files the page uses the browser's own video decoder and encoder (the WebCodecs API) through the open-source Mediabunny library. For formats the browser cannot open, such as AVI, WMV, FLV and MPG, it uses FFmpeg compiled to WebAssembly. Both run on your device. The compatibility page lists what we have tested.

Open-source software and licences

VidCompressor loads these libraries, unmodified, from the jsDelivr CDN at fixed versions (or the same versions from unpkg if jsDelivr fails):

Software Version Licence Source code
Mediabunny 1.66.4 Mozilla Public License 2.0 github.com/Vanilagy/mediabunny
ffmpeg.wasm (@ffmpeg/ffmpeg) 0.12.15 MIT github.com/ffmpegwasm/ffmpeg.wasm
ffmpeg.wasm core (@ffmpeg/core), built from FFmpeg with x264 0.12.10 GPL, version 2 or later github.com/ffmpegwasm/ffmpeg.wasm and ffmpeg.org

The page's own code is the script served with this site. Thank you to the people who build and maintain these projects.

Contact

Questions, a file that would not compress, or a limit that has changed: write to hello@vidcompressor.app. If a video failed, tell us the browser, the device and the file type, but do not send the video itself.

Compress a video