Video Guide

How to Compress a Video With Minimal Quality Loss, MP4, WebM and MOV

By Muhammad Waseem Updated 2085 words

A video file is not one number you can turn down, it is the product of four independent choices. The bitrate, the pixel dimensions, the frame rate, and the codec doing the encoding. Compress in the wrong order and you get a small file that looks muddy. Compress in the right order and you can cut 40-70 percent of the size with no change you can actually see.

This guide gives the exact order of operations, the small amount of maths that lets you predict the output size before you wait for an encode, what each codec really buys you, and how to use the free ToolFlic Video Compressor, which runs entirely in your browser, so a private clip never leaves your device. It is also honest about the one thing the browser tool does differently from desktop encoders. It writes WebM, not MP4, and that matters for where you can play the result.

The four levers that decide a video's file size, use them in this order

Every MP4, WebM or MOV is the sum of a video stream and, usually, an audio stream. The video stream eats the overwhelming majority of the bytes, and it is controlled by four variables. Change them in the wrong order and you destroy quality for nothing.

1. Bitrate, the encoder's budget. Bits per second of video. This is the single most direct control. Halve the video bitrate and, all else equal, the video portion roughly halves. Lower it too far and you get blocky artefacts in motion and mushy detail in foliage, water and crowds.

2. Pixel dimensions. A 4K frame has four times the pixels of 1080p, so it needs about four times the bitrate to look the same. If your destination is a phone or a web page, you almost never need 4K, resizing down is the cheapest, cleanest size cut there is.

3. Frame rate. 60 fps is twice the frames of 30 fps, so it costs more for the same quality. For talking heads, screen recordings and static scenes, dropping 60 to 30 fps saves a lot and is rarely noticed.

4. Codec. How cleverly the frames are squeezed. A modern codec, VP9, AV1, H.265, can encode the same picture 30-50 percent smaller than H.264, but with compatibility and speed trade-offs, see below.

The practical order is therefore. Resize until the dimensions match the destination, drop the frame rate if it is needlessly high, then walk the bitrate down to the lowest value that still looks clean. Audio is a rounding error by comparison, 128 kbps audio on an 8 Mbps video is under 2 percent, but if the clip has no speech, removing the audio track saves that little bit and one less stream to sync.

Predict the file size from bitrate and duration

The most useful thing about video is that the output size is almost fully determined before a single frame is processed. The maths fits on one line.

The file size in MB is the total bitrate in kbps divided by 8, multiplied by the duration in seconds, then divided by 1,000.

So a 60-second clip at 6,000 kbps video plus 128 kbps audio comes out near 46 MB. Double the bitrate and you double the file. Double the length and you double it. This is why a request to compress a two-hour 4K video down to 1 MB is impossible, the duration is fighting you, not the settings.

Flip the same calculation to hit a target size. Take the target MB, multiply it by 8,000 and divide by the duration in seconds to get the bitrate in kbps. For a 16 MB limit on a 30-second clip, that is about 4,200 kbps total. Aim slightly under so a strict cap still passes.

One caveat the browser tool makes very visible. Because it re-encodes at a target bitrate, a short clip that is already heavily compressed can come back larger than it went in, the encoder spends its budget even when the source had none. That is why the tool reports 0% saved rather than a negative number, when it happens, your file was already efficient, and the fix is fewer pixels or a lower frame rate, not a lower bitrate.

Codecs, why the same video can be half the size

The codec is the algorithm that decides how cleverly redundant information is thrown away. Newer codecs are smarter, so they need fewer bits for the same picture, but what counts as the same picture depends on the content, and smarter codecs are slower to encode and less universally supported.

CodecTypical saving vs H.264Where it playsNotes
H.264 / AVCbaselineEverything, phones, TVs, browsers, emailThe safe, universal default. Fast to encode.
H.265 / HEVC30-50 % smallerApple, modern Android, newer TVs, licensing is messyGreat quality. Browser playback support is patchy.
VP8roughly even, sometimes betterAll modern browsers, this is what a browser MediaRecorder emits by defaultWebM container. The realistic browser-tool output.
VP925-40 % smaller than H.264Chrome, Firefox, Edge, Android, modern YouTubeFree and excellent. Slower to encode. Weak on older Safari/TVs.
AV140-50 % smaller than H.264Newest hardware and browsers, still rolling outBest compression. Heaviest to encode without hardware help.

For a file you will text, upload or embed almost anywhere, H.264 MP4 is still the format that just plays everywhere. VP9 is the size-efficiency pick for the open web. The tool in this guide uses the browser's MediaRecorder, which is why its native output is WebM, VP8 or VP9, a trade. Excellent, private, zero-install compression in exchange for a container you sometimes need to convert before a device will open it.

What a browser-based compressor actually does, and why it writes WebM

A browser cannot run the same slow multi-pass engine as desktop software like HandBrake. Instead, tools like the ToolFlic compressor play the video, redraw each frame to a <canvas> at your chosen width, and re-record that canvas with the browser's MediaRecorder at your chosen bitrate. That is why it is fast, works on a phone, needs no install and, crucially, never uploads your file.

Two consequences worth knowing up front. First, the output is WebM, because that is the codec set MediaRecorder supports in Chrome and Edge. Second, because it re-records in real time, the encode takes about as long as the clip itself, and the quality ceiling is the browser's encoder, not a 10-pass desktop render. For shrinking a clip to send it, that is a fair trade. For producing the smallest possible archival master, a desktop encoder still wins.

The privacy upside is the whole point. A personal or client clip stays on your machine the entire time. You can prove it, open the browser's network panel, compress a file, and watch that nothing is sent anywhere.

Recommended video bitrate by resolution

These are sensible targets for typical 30 fps footage in a modern codec. Low-motion screen recordings can go well below them, and fast action or dense foliage needs a margin above. When in doubt, watch the output at full screen on your own device, you are the quality judge, not the slider.

ResolutionFrame rateVideo bitrate, goodVideo bitrate, aggressive
1280 by 72030 fps5,000 kbps2,500-3,500 kbps
1920 by 108030 fps8,000 kbps4,500-6,000 kbps
1920 by 108060 fps12,000 kbps7,000-9,000 kbps
2560 by 144030 fps16,000 kbps10,000 kbps
3840 by 2160, 4K30 fps35,000-45,000 kbps20,000-25,000 kbps

If the resized number looks startlingly small, remember the rule from the formula. Bytes scale with pixels × frames × time. A 1080p talking-head clip at 6,000 kbps for 60 seconds lands near 45 MB, plenty for email or WhatsApp, and dropping it to 720p at 3,000 kbps roughly quarters it before you even touch the quality preset.

Compress a video step by step, in the browser, no upload

Open the Video Compressor and drop in an MP4, WebM or MOV. Everything below happens on your device.

Step 1. Note the original size and length the tool shows, that is your starting point.

Step 2. If the destination is small, phone, web thumbnail, set a max width first, e.g. 1280 for 720p. Fewer pixels is the most reliable saving.

Step 3. Pick a quality preset, Low, Medium or High, that maps to bitrate, or choose the bitrate directly. For most clips, Medium at a lower resolution beats High at full resolution when you just need it to look fine on a phone.

Step 4. If the clip has no audio you need, tick remove audio, one fewer stream, a little smaller.

Step 5. Compress. The progress bar tracks the clip as it re-records, a 40-second clip takes roughly 40 seconds.

Step 6. Preview the result, read the new size and the "Saved" percentage, it shows 0% when a file genuinely cannot be shrunk further, then download the WebM.

Step 7. If a strict target was missed, do not just lower bitrate again, drop a resolution step or the frame rate, then re-run. You will get a better-looking file than by cranking bitrate down alone.

Shrinking for a real limit, email, messaging, web

Different destinations have different hard ceilings, so pick your settings to the destination, not to a vague "smaller."

Email. Most providers bounce around 25 MB combined. A clip that size at 30 seconds implies roughly 6,500 kbps total, but email is usually the wrong place for video. A link to a hosted file is cleaner.

Messaging. WhatsApp and similar apps cap shared video well below email, order of tens of MB for short clips. Aim low resolution, 30 fps, 1,500-2,500 kbps, and keep the clip short.

Web background and autoplay. A looping <video> hero wants tiny and silent. 720p, no audio track, 1,500-2,500 kbps, and WebM is ideal here because browsers play it natively, which happens to be exactly what this tool produces.

Social uploads. Each platform re-encodes on ingest anyway, so send it a clean, not-minimal file at their recommended resolution. Over-compressing before upload just gives the platform a worse source to work from.

When browser compression is the wrong tool

Be honest about the limits, because forcing it wastes your time

You need an MP4 that a device must accept. The browser writes WebM. If the target is an old TV, a PowerPoint embed, or an uploader that whitelists only .mp4, re-wrap or transcode with desktop software such as HandBrake or ffmpeg instead.

Very long or very large files. Real-time re-recording of a long, 4K, 60 fps file strains browser memory and patience. Split long footage first, compress in parts, then join.

You want the absolute smallest archival copy. A multi-pass desktop encode with VP9/AV1 beats a single-pass browser capture on size-per-quality. The browser tool is built to make a file shareable now, not to squeeze the last byte.

Safari and Firefox caveat. MediaRecorder's WebM support is strongest in Chrome and Edge. On other browsers the same re-record path can be limited or unavailable, so run those clips through a desktop encoder.

Frequently Asked Questions

Will compressing my MP4 keep it as an MP4?

No, the in-browser tool re-encodes through MediaRecorder, so its output is WebM. Chrome, Firefox, Edge and Android play WebM fine, and for a web background that is a bonus. If you specifically need MP4 for an older device or a strict uploader, use a desktop encoder, HandBrake or ffmpeg, for that job.

Can I compress to an exact file size, like "just under 16 MB"?

Close, not to the byte. Use size = bitrate × duration to pick a bitrate that lands under the target, then leave headroom and confirm the actual size the tool reports. Encoders vary by content, so treat the maths as a strong estimate, not a guarantee.

Why is my compressed video sometimes bigger than the original?

When the source is already well compressed, or very short, re-recording at a fixed bitrate can spend more bits than the original used. The tool shows 0% saved in that case, your cue to cut resolution or frame rate rather than lower the bitrate further.

What is the best setting to shrink a 1080p video without it looking bad?

Keep 1080p if the destination is large, and drop the bitrate to about 4,500-6,000 kbps for 30 fps talking-head or general footage. Watch the result full-screen. If it still looks soft, spend bits back on motion-heavy sections rather than the whole file, or lower resolution one step.

Does this work on iPhone and Android?

On Android, Chrome, it works well, including in-browser WebM output. On iPhone the browser encoder path is limited, so the tool may not be able to re-record. For Apple devices a desktop encoder or the native Photos edit is more reliable. Nothing is uploaded either way.

Is it safe to compress private or client footage here?

Yes, that is the main reason it is browser-based. The file is decoded and re-encoded locally and never sent to a server, which you can verify with your network panel open. Tools that upload your video to the cloud keep a copy you cannot recall.

Can I remove the audio or lower the resolution?

Both. There is a remove-audio option for silent clips and a max-width control to resize. Combine them, 720p, no audio, for the smallest shareable file, or keep full resolution and audio and only cut the bitrate when quality matters more than size.

Related guides

Browse all 57 guides

Recognised & listed on