Video compression by preset
Pick a resolution preset (2160p–360p) and a quality level, derive the target bitrate, really re-encode to WebM in the browser and report the actual size and ratio.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Pick a local video (MP4 / WebM / MOV all decode), nothing is uploaded; the output is WebM.
Pick a video file first.
Result
These are the real numbers from this run — play and download them right here.
Pick a video and set the options; the real result shows up here.
Need MP4 or the audio track back?
Browsers can only record WebM, and without audio. The command below is a reference for **ffmpeg on your own machine**: same resolution, frame rate and CRF, MP4 output with audio.
ffmpeg -i input.mp4 -c:v libx264 -crf 23 -vf scale=1280:720 -r 30 -c:a aac -b:a 128k output.mp4
That is a command, not a result of this tool: nothing is muxed into MP4 in the browser.
What this tool does
- Shrink a 1080p phone video to 720p at medium quality before sending it on: no install, it all runs in the browser
- Free up space: compress at 480p plus the low quality level and look at the real output size before deciding
- Prep a background video for a web page: pick 720p at medium and take the WebM straight into the page (the only container browsers can record)
Example
Input
clip.webm (1920×1080, 2 s, 8 MB) → preset 720p / quality medium / 30 fps
Output
Preset 720p → output 1280×720; quality medium (0.075 bit/pixel/frame) · target bitrate 2.07 Mbps; estimated output 0.52 MB (518500 B) · 60 frames; the real recorded size and elapsed time come from the result lines
The estimate is bitrate × duration, while the recorded size varies with picture content; the result lines report the real size, elapsed time and ratio so you can compare.
Frequently asked questions
How does it differ from Video compression (size or bitrate)?
This tool derives the bitrate from a resolution preset plus a quality level: 720p at medium is 1280×720 × 0.075 bit/pixel/frame, with no size budget. Use Video compression (size or bitrate) when you want to say “keep it under 10 MB” or “800 kbps” — that one takes a budget and derives the bitrate. Decoding and recording are identical; the parameters and statistics differ.
Why is a source smaller than the preset not scaled up?
A preset is a “short edge at most” cap. Scaling a small source up would only blur it and increase the size, so it is kept as is, and the result line says the source was already smaller than the preset (the scaled statistic is false).
The output is WebM without audio — how do I get an MP4 with sound?
Browsers can only record WebM, and canvas recording carries no audio. The result lines include a local ffmpeg command with the same resolution, frame rate and CRF that outputs MP4 with audio — that is a command, not a result of this tool, and you run it on your own machine.
What exactly does the quality level change?
Bits per pixel per frame: low 0.045, medium 0.075, high 0.12. It multiplies straight into the target bitrate (width × height × frame rate × bits per pixel), so higher levels mean a bigger bitrate and estimate. The CRF in the fallback command follows the same level (low 28 / medium 23 / high 18).
How long a video can I compress?
One run is capped at 900 frames (about 30 s at 30 fps) because recording follows the wall clock. Past that the tool reports the limit instead of recording a truncated clip; lower the frame rate, use a shorter clip, or run the command on the page locally.
Keywords:webmcompress video