Compress a video to 5 MB

Five megabytes is the tightest ceiling on this site, and the one where the arithmetic answers you before you have touched a setting. A good share of the time the answer is that the clip has to get shorter.

Target preset: 5 MB 1080p up to ~19 seconds 720p up to ~43 seconds 480p up to ~1.4 minutes

Drop your video here

or click to browse — MP4, MKV, MOV, WebM, AVI and more

The compressor above is already set to a 5 MB ceiling. It solves the bitrate from the length of your clip, encodes on your own CPU, weighs what came out, and runs again at a corrected bitrate if the first pass missed 5 MB. Nothing is uploaded.

Where a 5 MB limit still comes from

Five megabytes is a limit written before anyone expected video to be attached to anything. It survives in forum software configured a decade ago, in wikis, in small bug trackers, in the file field on a university or council web form, and in self-hosted tools whose settings nobody has revisited since the install.

A lot of it traces back to a default that got nudged rather than reasoned about. PHP ships with upload_max_filesize = 2M and post_max_size = 8M, and the usual response to somebody complaining about that is to raise it to a round number. Five is a common place to stop. If a form rejected a small video without naming a size, 5 MB is worth trying before you assume the wall is at 8 or 10.

Older mail gateways cluster here too. An internal relay configured in 2009 does not get audited often, and the person who set the attachment cap was thinking about spreadsheets.

What actually fits in 5 MB

Duration decides this one completely. Five megabytes is 41.9 million bits. Across fifteen seconds that is a real budget and the picture can be genuinely good. Across five minutes there is nothing left once the audio has taken its share.

The table is generated from the same arithmetic the compressor runs, with the audio allowance already subtracted. At this ceiling read the right-hand column as a hard limit rather than a recommendation. It is what the budget can carry on ordinary footage, and grain or fast motion will not reach it.

Video bitrate available inside a 5 MB ceiling, audio allowance already subtracted.
Clip length Video bitrate budget Realistic resolution
15 seconds 2,556 kbps 1080p
30 seconds 1,214 kbps 720p
1 minute 575 kbps 480p
2 minutes 271 kbps 360p
5 minutes Not viable
10 minutes Not viable
30 minutes Not viable

Work the same arithmetic for any size with the video file size calculator.

Megabytes, or mebibytes

Everywhere else on this site the difference between the two is pedantry. At 5 MB it is the difference between a file that uploads and one that does not.

This tool treats a megabyte as 1,048,576 bytes, which is what your operating system means when it reports a file size. Plenty of servers check the upload against 5,000,000 instead. The gap is roughly 243,000 bytes: under five percent, and completely invisible right up until it is the reason for the rejection.

The fix is not to work out which definition the server is using. Set the target to 4 MB. That costs you a fifth of your budget, which at this size genuinely hurts, and it removes the whole category of failure. A file that gets rejected is worth nothing no matter how good it looked.

The audio track is not a rounding error here

On every other page on this site the audio allowance is a small subtraction from a large number. At 5 MB it can be most of what you have. The compressor scales the allowance down as the total budget shrinks, but it does not scale it to nothing, and by the five-minute row the audio is close to half of everything available.

Setting audio to Strip audio hands that share back to the picture, and at five minutes it roughly doubles the video budget. It is worth knowing what doubling gets you: still under what H.264 needs to hold a coherent picture together at any frame size. Stripping the audio at this ceiling is a real lever and it is frequently not enough on its own.

If the audio is the point — someone speaking, a recording of a call, a clip where the joke is the sound — do not strip it. Cut the clip instead. A minute of audible speech at 480p is worth more than three minutes of a silent slideshow.

Trim first, compress second

Past roughly three minutes, 5 MB has no answer. Not at 360p, not with the audio removed, not at any setting in the tool. Below about 150 kbps the H.264 encoder cannot hold a picture together at any frame size, which is where the table stops offering a resolution: you get blocking, smearing, and frames that visibly rebuild themselves after every cut.

So the useful move at this ceiling is to shorten the clip, and the scale of the effect is worth being blunt about. Fifteen seconds of the same footage holds 1080p inside 5 MB. Forty seconds holds 720p. The distance between impossible and genuinely good is a cutting decision, not a settings decision.

The tool takes a start and an end point, so you can make that cut here: drag the trim handles to the part that matters and the bitrate is solved from the trimmed length rather than the whole recording. If you need to remove something from the middle instead, cut it in whatever produced the file — Photos on macOS and iOS, Clipchamp on Windows 11, the gallery app on every phone — and bring the short version back. Either way, once the clip is short the ceiling stops being interesting.

Questions about the 5 MB target

How long can a video be and still fit in 5 MB?

About three minutes at 360p, roughly a minute and a third at 480p, and around forty seconds at 720p. Those are ceilings on ordinary footage. A static screen recording will stretch every one of them; anything with grain, water or fast panning will fall short.

My file is exactly 5 MB and it was still rejected. Why?

Most likely because the server means 5,000,000 bytes and your operating system means 5,242,880. The two differ by about five percent, which is enough. Compress to 4 MB and the question goes away.

Does stripping the audio save enough on its own?

It roughly doubles the video budget, which sounds decisive and often is not. On a five-minute clip the doubled budget is still below what the encoder needs for a watchable picture. Strip the audio if you can spare it, and expect to trim the clip as well.

Other size targets

Compressing for a specific platform instead? Discord, WhatsApp and email each have their own page.

Or start from the file you have. Whether 5 MB is a stretch or a formality depends on what is already inside the container: MP4 , MOV , MKV , WebM , AVI , WMV , FLV , M4V and MTS / M2TS .