🎬
Creator & Video/Video Compressor

Video Compressor

Compress video files to a target size — email, social, or custom. 100% in-browser.

LOCAL · FFMPEG.WASMTarget size4 presetsH.264/AAC100% local
🎬
Drop a video here, or click to browse
MP4, WebM, MOV, AVI, MKV (max 500 MB)

Upload a video and compress it to your target file size

Data Source & Legal Disclaimer
Effective: 2026Last updated: 8 months agoUpdate: Manual review
Sources: ffmpeg.wasm — Browser-based media processing

Video compression runs entirely in your browser using ffmpeg.wasm. Your video file is never uploaded to any server.

See all data sources & update policy →

How video compression works — illustrated

Video file size is governed by one number: bitrate — the bits stored per second of video. The tool probes your file's real duration, then works backward from the target size: total bitrate = target bytes × 8 ÷ duration. It reserves ~128 kbps for the AAC audio track and feeds the remainder to H.264 (libx264) as the video bitrate, with -maxrate at 2× and -bufsize at 4× so the encoder can burst on complex scenes, plus +faststart so the MP4 plays while still downloading. Lower bitrate shrinks the file but also softens fine detail and can produce blocky artifacts on fast motion — the preset picker just chooses a target size and the math does the rest.

Target size → bitrate math → H.264 encode
Source videoe.g. 85 MB90 s clipTarget sizeEmail 25 · Social 100Web 50 · CustomBitrate mathsize × 8 ÷ duration− 128 kbps audioH.264libx264 · faststartmaxrate 2×bufsize 4×Output ≈ target MB · plays while downloadingfile size (MB) ≈ video bitrate × duration ÷ 8 · AAC audio reserved at 128 kbpsLower bitrate = smaller file = softer detail; too low, and motion shows blocky artifactsIf your file is already under the target, the tool says so instead of upscaling

File size ≈ bitrate × duration ÷ 8. The compressor probes the true duration, derives the target bitrate from your chosen size, and lets libx264 squeeze the video down to match.

Under the email limit — Tom's screen recording

Tom records a 90-second software demo (MP4, 85 MB) and needs to email it to a client whose mailbox rejects attachments over 25 MB.

  1. Drop + preset:He drops the clip and picks Email (25 MB); the tool probes the true 90-second duration instead of assuming 60 seconds
  2. Bitrate math:Total bitrate = 25 MB × 8 ÷ 90 s ≈ 2.33 Mbps; minus the 128 kbps AAC audio reserve leaves a ~2.2 Mbps video target (~2200 kbps)
  3. H.264 encode:libx264 runs with -b:v 2200k, -maxrate 4400k, and +faststart so the client can start playback while the file is still transferring
  4. Verify & send:The output lands at ~24.8 MB — a 71% reduction — and the preview player confirms the screen capture is still crisp
↩ Back to calculator

About this tool

What is this tool?

Compress video to a target file size for email, social or web. Browser-based, no upload. Free.

Target size4 presetsH.264/AAC100% local

What Is the Video Compressor?

The Video Compressor is a free, browser-based tool that reduces video file size by re-encoding with H.264 video and AAC audio codecs at a lower bitrate. You can target a specific file size (useful for email attachments with size limits) or choose from preset quality levels. All processing happens locally in your browser — no upload, no signup.

How to Compress a Video

Drop your video into the tool. Select a preset (Email, Social Media, Web) or set a custom target size in MB. Click compress, and the tool re-encodes your video in real-time. Download the compressed MP4 file when done. Processing time depends on video length and your device's CPU — typically 30-60 seconds for a 1-minute video.

Frequently Asked Questions

Is this video compressor really free?

Yes, 100% free with no signup, no watermark, and no file limits. All compression happens in your browser using the WebCodecs API. Your video never leaves your device.

How does the target size compression work?

You set a target file size (e.g., 10 MB for email). The tool calculates the optimal bitrate to achieve that size, then re-encodes the video using H.264 video and AAC audio codecs. The output is a standard MP4 file playable everywhere.

What are the compression presets?

Four presets are available: Email (target ~10 MB, high compression), Social Media (target ~50 MB, medium compression), Web (target ~25 MB, balanced), and Custom (you set the exact target size in MB).

Will compression reduce video quality?

Yes, compression reduces quality — that's how file size is reduced. However, the tool uses modern H.264 encoding which maintains good visual quality even at high compression ratios. For best results, start with a high-quality source video.

Can I compress video to a specific target file size?

Yes. Set a target size (e.g., 25MB for email, 8MB for WhatsApp, 50MB for Discord) and the tool calculates the required bitrate automatically. It re-encodes using H.264 with adjustable resolution (downscale to 720p or 480p) and frame rate. A 200MB 1080p clip compresses to 25MB at 720p/30fps with acceptable quality.

How much quality is lost during compression?

Quality loss depends on the compression ratio. Reducing a 1080p video by 50% (e.g., 100MB to 50MB) is nearly imperceptible on mobile screens. An 80% reduction shows visible artifacts in fast-motion scenes. This tool shows a quality estimate before processing and lets you preview a 5-second sample before committing to the full encode.

Other names for this tool

This tool is also known by these tasks — each link opens the same tool with a focused guide:

Related tools

Joke of the Day
Sep 6

What do you call a crab that plays baseball?

100% Free, Forever

Keep Tools Free for Everyone

No paywalls, no signups, no data sold. Built by a solo developer who believes useful tools should be accessible to everyone.

Support me on Ko-fi— keep tools free

100% of proceeds go towards hosting & building more free tools.