Video Compressor — Shrink MP4 Size by Resolution or Target MB
Compress a video in your browser: downscale to 720p/480p, or aim at a target file size — re-encoded as H.264 MP4, nothing uploaded.
Compression is a budget problem stated two ways. Sometimes the budget is a shape — "720p is plenty for this" — and a preset with a sane quality level is the whole answer. Sometimes it is a number — an upload form that says 25 MB — and the honest method is arithmetic: the file’s bits divided by its seconds give the bitrate the encoder may spend, minus what the audio needs.
Drop a video file here or click to choose one
Processed entirely in your browser — nothing is uploaded. Large files need a desktop-class browser and patience.
Re-encoding is heavy work. Use a current desktop Chrome or Edge for anything long or 4K; phone browsers may refuse.
Quick answers
How do I compress a video to a specific file size?
Turn the size into a bitrate budget: target bits ÷ duration, minus an audio reserve — then encode to that budget.
This tool does the arithmetic from the probed duration, refuses budgets under 200 kbps video, and reports the achieved size against the target.
720p preset or target size — which should I use?
Preset when the destination is a screen (a message, a post); target size when the destination is a form with an MB ceiling.
The preset optimises for "looks right"; the target optimises for "fits the limit". Both re-encode locally as H.264 MP4.
How to use
About this tool
This tool does both, locally. Presets downscale (never upscale) and encode at medium quality. Target mode computes the video bitrate from your MB figure and the probed duration, reserves 128 kbps for audio, and refuses targets that would push video below 200 kbps — below that the result is not a smaller video, it is a worse one wearing the same name.
Set expectations like an adult: re-encoding in a browser tab is slower than a desktop app, long 4K sources can take many minutes, and the tab must stay alive. The output is verified (tracks, and the achieved size reported against the source) before download. If your file is professional-codec or enormous, a desktop converter remains the right tool — this one says so rather than failing mysteriously at 87%.
How it works
T
a
r
g
e
t
m
o
d
e
:
v
i
d
e
o
b
i
t
r
a
t
e
=
(
t
a
r
g
e
t
M
B
×
8
×
1
0
2
4
×
1
0
2
4
÷
d
u
r
a
t
i
o
n
s
)
−
1
2
8
,
0
0
0
b
p
s
a
u
d
i
o
r
e
s
e
r
v
e
,
f
l
o
o
r
e
d
a
t
2
0
0
,
0
0
0
b
p
s
(
b
e
l
o
w
w
h
i
c
h
t
h
e
t
a
r
g
e
t
i
s
r
e
f
u
s
e
d
)
.
P
r
e
s
e
t
s
c
a
p
h
e
i
g
h
t
a
t
7
2
0
o
r
4
8
0
w
i
t
h
a
s
p
e
c
t
p
r
e
s
e
r
v
e
d
(
f
i
t
:
c
o
n
t
a
i
n
)
a
t
m
e
d
i
u
m
q
u
a
l
i
t
y
.
A
l
l
m
o
d
e
s
e
n
c
o
d
e
H
.
2
6
4
+
A
A
C
i
n
t
o
M
P
4
v
i
a
W
e
b
C
o
d
e
c
s
(
M
e
d
i
a
b
u
n
n
y
)
a
n
d
r
e
-
p
r
o
b
e
t
h
e
r
e
s
u
l
t
.
Worked examples
: A 180 MB tutorial must fit a 25 MB form. Target mode budgets ≈1.05 Mbps for a 3-minute clip and lands within a few percent of 25 MB — the form accepts it first try.
: A 4K phone clip at 480p medium becomes a 6 MB file that sends instantly, while the 4K original stays in the archive untouched.
: Someone asks for a 40-minute 1080p lecture in 10 MB. The arithmetic says 33 kbps of video — the tool refuses and explains, instead of delivering 40 minutes of soup.
Frequently asked questions
How close to the target size will the result land?
Close, not exact: encoders aim at an average bitrate and real content varies. Expect within roughly 5–10% on typical footage. If a hard ceiling matters, target about 10% under it.
Will compression visibly hurt quality?
Downscaling to 720p/480p is visibly softer on large screens and usually indistinguishable on phones. Target mode’s quality depends entirely on the budget per second — the tool refuses budgets that guarantee a bad result.
Why is this slower than a desktop app?
The encode runs in JavaScript/WebCodecs in a browser tab, without the native optimisations and GPU paths a desktop converter uses. For short clips the difference is seconds; for long 4K it is the reason for the desktop recommendation.
Is my video uploaded to a compression server?
No — there is no server. The file is decoded, encoded and verified in this tab, which is precisely why large files stress your device rather than a data centre.
What if my browser cannot encode H.264?
The conversion reports invalid with the codec reason. A current desktop Chrome or Edge is the known-good route; the remux tools (MOV to MP4, Trimmer fast mode) still work because they never encode.
First time embedding? Read the step-by-step guide →
More free tools
QR Code Generator
Turn any link or text into a scannable QR code in seconds.
Word Counter
Count words, characters, sentences and reading time as you type.
Percentage Calculator
Work out percentages, increases and discounts in one click.
Age Calculator
Find your exact age in years, months and days.
BMI Calculator
Check your Body Mass Index in seconds.
Tip Calculator
Split the bill and work out the tip in seconds.