DevTools Logo

Video Compressor

Video Compressor

Shrink a local video to a smaller MP4 or WebM with quality, target-size and bitrate controls. Encoding runs on your device through a self-hosted engine — nothing is uploaded.

Estimate

1940 kbps video

No video loaded

Add a video to see the size estimate and start compressing.

Examples

20 MB email cap

Input
100 s clip, 20 MB target, 128 kbps audio
Output
~1430 kbps video, ~19 MB estimate

The audio budget is reserved before the video bitrate is solved.

Web 720p preset

Input
Quality CRF 24, 66% scale, 30 fps
Output
Smaller H.264 MP4 with AAC audio

Downscaling and a frame-rate cap reduce both encode time and bytes.

WebM VP9

Input
WebM format, Opus 128 kbps
Output
VP9/Opus WebM

VP9 encoding is software-only in most browsers, so the tool warns about the longer wait.

Impossible target

Input
0.001 MB for a long clip
Output
Validation error

A minimum practical bitrate prevents a target that would produce an unwatchable file.

About this tool

The Video Compressor re-encodes a local video into a smaller MP4 or WebM file without uploading it. Choose a CRF-style quality level, a target output size in megabytes, or a manual bitrate, then tune resolution scale, frame rate, keyframe interval and audio handling to suit the destination.

An estimate is shown before encoding. Quality mode uses a documented bits-per-pixel heuristic that halves the bitrate every six CRF steps and scales with resolution and frame rate; target-size mode subtracts the audio budget and solves the remaining video bitrate from the duration. Both approaches deliberately label their output as an estimate rather than a guarantee.

Encoding runs through a self-hosted FFmpeg engine loaded on demand in your browser. The tool reports progress, supports cancelling a run, and finishes with before/after size, saved percentage, output bitrate, encode speed and a local preview of the compressed file.

What this tool does not do

  • The self-hosted FFmpeg engine is a one-time multi-megabyte download that is cached by the browser.
  • Very large files may exceed browser memory because the input is written into the engine's virtual filesystem in one pass.
  • Two-pass rate control, hardware encoder selection and AV1 output are not included in this version.

How to use this tool

  1. Load a video

    Drop an MP4, MOV or WebM file. Duration, resolution and size are read locally before any settings are applied.

  2. Choose a mode

    Use Quality for a consistent look, Target size for a hard cap such as an email limit, or Bitrate for full control.

  3. Tune the output

    Pick a resolution scale, frame-rate cap and audio option. Audio can be copied, re-encoded to AAC or Opus, or dropped.

  4. Review the estimate

    Check the estimated megabytes and the honest trade-off note before starting the engine.

  5. Compress and download

    Watch the progress indicator, cancel if needed, then preview the result and download the smaller file.

Use cases

Email and chat limits

Fit a recording under a 20–25 MB attachment cap without uploading private footage.

Docs and tickets

Shrink demo recordings for bug reports and documentation pages.

Web assets

Produce a 720p MP4 or VP9 WebM at a consistent quality level.

Output options

SettingChoices
Container / codecMP4 with H.264 or WebM with VP9
Rate controlCRF-style quality 18–35, target size in MB, or a manual kbps value
Resolution100%, 75%, 66%, 50% or 25% of the source dimensions
Frame rateSource rate or a cap of 30, 24 or 15 fps
AudioKeep source codec, AAC 128/192 kbps, Opus 128 kbps or no audio

AAC is used with MP4 and Opus with WebM; mismatched combinations are rejected rather than silently remuxed.

Common mistakes

Mistake:Expecting the target-size estimate to be exact.

Fix:Real output depends on content complexity; the estimate is labelled as such and the final stats show the actual size.

Mistake:Choosing Opus audio with an MP4 container.

Fix:Use AAC for MP4 and Opus for WebM; the tool blocks the mismatched combination.

Mistake:Downscaling a 4K clip to 25% and expecting fine detail.

Fix:The tool shows a capability note; pick 75% or 100% when detail matters.

Frequently asked questions

Is my video uploaded?

No. The video stays on your device. Encoding runs through a self-hosted FFmpeg engine loaded into your browser, and the downloaded result is built from a local Blob. The engine download is a one-time cost cached by your browser.

How much can it compress?

It depends on the source bitrate and content. A high-bitrate 1080p recording can often shrink by 70–90% at 720p with AAC audio, but the tool never promises a fixed ratio — it shows an estimate before encoding and the real before/after statistics afterwards.

What is CRF, and how is it different from bitrate?

CRF is a quality target: the encoder spends whatever bits the content needs to reach that visual level. A fixed bitrate spends the same number of bits per second regardless of content. Use quality mode for consistent appearance and target-size mode when you have a hard file-size limit.

Does it keep audio in sync?

Yes. Keeping the source codec copies audio packets alongside the re-encoded video, while re-encoding to AAC or Opus keeps the same track duration. Dropping audio removes the track entirely.

Why is it slower than desktop tools?

Browser-based encoding runs in WebAssembly without direct hardware access in many browsers, and VP9 is usually software-only. Resolution scaling and a 30 fps cap reduce the work substantially.

What happens if I cancel?

The run is marked cancelled and the partial output is discarded rather than downloaded. Settings and the loaded file stay intact so you can adjust them and try again.