Redsprint Start a project

Free media tool

Video Compressor

Make a video small enough to send, at a quality you choose, without handing the file to anyone.

Runs in your browser with FFmpeg. The video never leaves your device.

Choose a video, or drop it here

MP4, MOV, WebM, MKV, AVI or anything FFmpeg reads. Under 500 MB works best; a phone can run out of memory above that.

The plan

Size estimates come from the chosen bitrate and the video's length; CRF output varies with the footage. The video is processed in your browser and is not uploaded. H.264 output only.

What compressing a video means

A phone records video at a high bitrate so nothing is lost at the moment of capture: a minute of 4K from an iPhone is around 400 MB, a minute of 1080p around 130 MB. Those files are far larger than they need to be for watching on a screen. Compressing re-encodes the frames at a lower bitrate and, if you choose, a smaller resolution, so the file shrinks to a fraction while the picture stays watchable.

Online compressors do this on their servers, which means uploading your video, waiting for it to come back, and trusting what happens to it in between. This page runs FFmpeg, the same encoder those servers use, inside your browser. The file stays on your device, and there is no size cap but your memory and your patience.

Output is H.264 in MP4, the format every phone, mail client and messenger plays.

How the compression works

In quality mode the encoder keeps a constant visual quality, the CRF number, and the size falls where it falls; CRF 23 is libx264's default and each six points up roughly halves the file. In target-size mode the page divides the size you want by the length of the video to get a bitrate, takes the audio off the top, and asks the encoder to hold it. The resolution filter runs only when the source is larger than your pick. The output gets the faststart flag so it plays before it has fully downloaded.

  1. Drop the video. The browser reads its length and size without decoding it.
  2. Pick a preset, or Custom to choose quality or target size, resolution, audio and frame rate.
  3. Read the plan: the settings, the estimated size and the estimated time.
  4. Press Compress, watch the progress, and download the result.

Worked example

Khalid has a 2 minute 10 second 1080p clip from his phone, 285 MB, for an email.

  1. Preset Email: target 24 MB, 720p, AAC 128 kbit/s
  2. Bitrate: 24 MB × 8 × 0.95 ÷ 130 s = 1.40 Mbit/s, less 128 kbit/s for audio, about 1.28 Mbit/s for video
  3. Output about 23 MB, 8 percent of the original, in roughly 6 minutes on a laptop

Had he picked Balanced instead, CRF 23 at 720p would land around 47 MB with a sharper picture, too big for Gmail.

What the encoder and the services specify

The settings follow FFmpeg's H.264 encoding guide; the size targets follow the services' published limits.

  • FFmpeg H.264 guide: CRF ranges from 0 to 51, 23 is the default, 18 is close to visually lossless, and a change of 6 about doubles or halves the size. The preset trades encoding speed for compression; veryfast is used here because the browser has one core to give.
  • Compatibility: pixel format yuv420p and the faststart flag are needed for Safari, QuickTime and web players to start playback before the file finishes loading.
  • Gmail: attachments up to 25 MB per message for personal accounts; larger files are sent as a Google Drive link.
  • WhatsApp: media and documents up to 2 GB per file. Telegram: 2 GB per file, 4 GB with Premium. Both re-compress videos sent as video; sending as a document keeps your file as it is.
  • ffmpeg.wasm: FFmpeg compiled to WebAssembly, run in a web worker; the single-thread core needs no special headers and runs in every current browser. The core is licensed under the GPL and is loaded from jsDelivr at a pinned version.

Last checked against the FFmpeg guide and the services' help pages on 1 October 2026.

Sources

  1. H.264 video encoding guide, FFmpeg wiki
  2. ffmpeg.wasm documentation
  3. FFmpeg licence and legal considerations
  4. Send attachments with your Gmail message, Google Support
  5. How to send media, documents and files, WhatsApp Help
  6. Telegram FAQ, file size limits

Who this tool is for

Anyone with a phone video that will not send: for email, a job application, a landlord, a school group, or a web page.

It does not cover

  • Trimming, cropping or joining clips. One file in, one smaller file out.
  • Formats other than H.264 MP4 on output. HEVC and AV1 shrink further but do not play everywhere.
  • Very large files. Above about a gigabyte the browser's memory runs out; split the video first or use FFmpeg on a computer.

Terms used on this page

Bitrate
How many bits per second the video uses. Size is bitrate times length, so halving the bitrate halves the file.
CRF
Constant rate factor, libx264's quality dial from 0 to 51. Lower is better and bigger; 23 is the default.
H.264
The video codec every device plays, also called AVC. libx264 is the free encoder for it.
AAC
The audio codec that goes with H.264 in MP4. 128 kbit/s is transparent for most listening; 64 is fine for speech.
Resolution
The frame size in pixels. 1080p is 1920 by 1080; 720p is 1280 by 720. Dropping from 1080p to 720p removes more than half the pixels.
Preset
libx264's speed setting, from ultrafast to veryslow. Slower presets squeeze a little more out of the same bitrate; veryfast suits a single browser core.
WebAssembly
A way to run compiled programs like FFmpeg inside a browser at near native speed, in a sandbox, without installing anything.
faststart
An MP4 flag that puts the index at the front of the file so playback can begin before the download finishes.

Questions people ask

Is my video uploaded?

No. FFmpeg runs inside your browser in a worker. The only download is the 32 MB engine itself, once, from a content delivery network; your video stays on your device.

How much smaller will it get?

A phone recording at 720p and CRF 28 is often a tenth of the original. Target-size mode gives you the number you ask for, at whatever picture quality that allows.

Why is it slow?

The browser gives FFmpeg one core and no hardware encoder. Expect a few minutes for a minute of 1080p on a laptop, longer on a phone. A smaller resolution encodes faster.

Will it play on an iPhone and in WhatsApp?

Yes. H.264 with AAC in MP4, yuv420p and faststart is the most compatible combination there is.

Does it keep the quality?

CRF 23 keeps the picture close to the original to the eye. Every re-encode loses something; the presets choose where the loss is least visible.

Can I compress a 4K video?

Yes, and picking 1080p or 720p output is where most of the saving comes from. Keep the file under about 500 MB on a phone.

Why does Gmail still refuse the file?

Gmail counts the whole message against 25 MB, so a 24.5 MB video with a signature and an image can tip over. Use the Email preset's 24 MB target or lower it to 20.

Does the compressed file carry my location?

No. FFmpeg writes a new container with only stream information; the camera and location tags from the original are not copied.

Made in Dubai by Redsprint

We design and build apps for iPhone, iPad, Mac and the web, and we send a lot of screen recordings. This tool is one of our free photo and media tools.