instamp4

Video compressor

Shrink a video to a target size, such as 8 MB, 20 MB or 50 MB. It runs in your browser, so your file is never uploaded.

Choose a target size and the compressor works out the bitrate to hit it. Use it to fit a clip under Discord, WhatsApp or email limits, or just to reduce storage. Runs with FFmpeg in your browser: no upload, no watermark, no account.

How to use

  1. Add your video. Drop an MP4, MOV, WebM or similar file into the tool.
  2. Pick a target size. Choose a preset such as 8 MB, 25 MB or 50 MB, or type your own. You can also cap the resolution.
  3. Compress. The tool calculates a bitrate from the video length and encodes the video with H.264 to land at or under your target.
  4. Download. Preview the result, check the file size, and download the compressed MP4.

Features

Target-size compression

Instead of guessing a quality slider, tell the tool the size you need and it calculates the bitrate for you.

Automatic retry

If the first result lands slightly over your target, the tool tries again with a lower bitrate.

Resolution cap

Limit the output to 1080p, 720p, 480p or 360p to save more space on long clips.

Private by design

FFmpeg runs as WebAssembly in your browser tab. Your video stays on your device.

Works as MP4

The output is H.264 video with AAC audio in an MP4 file, which plays on almost every phone, computer and platform.

What people use it for

Why compress to a target size instead of a quality level

Most compressors give you a quality slider and leave you to guess the result. That is frustrating when a platform has a hard limit. If a chat app rejects anything over a set size, what you need is a file under that size, not a particular quality number.

This tool does the arithmetic. Video size is roughly bitrate multiplied by duration. Given your target size and the length of your clip, it works backwards to a video bitrate, reserves a small share for audio, and encodes to match.

What gets lost when you compress

Compression removes detail. Lower bitrates show up as blockiness in fast motion and softer text. A 10-second clip squeezed to 8 MB looks fine, while a 10-minute clip squeezed to the same size will look rough. If quality matters, trim the clip first or lower the resolution rather than pushing the bitrate down further.

A smaller resolution often looks better than a high resolution at a very low bitrate. A 720p video at a modest bitrate usually beats a 1080p video starved of bits.

Tips for hitting a size limit

Trim any parts you do not need before compressing. Remove the audio if it is not needed. Aim a little under the limit, because apps measure size slightly differently and some count overhead. The preset buttons already leave a safety margin.

Bitrate, resolution and codec: what actually sets file size

A video file's size is roughly its bitrate multiplied by its length. Bitrate is the amount of data used for each second of video. Resolution matters because more pixels need more bits to look clean. The codec matters because a better codec stores the same picture in fewer bits. This tool uses H.264, the most widely supported codec, and chooses the bitrate for you based on your target size.

That is also why a short clip can be shrunk a lot with little visible loss, while a long clip squeezed to the same size looks rough. If quality is poor, the fix is usually a shorter clip or a lower resolution, not a lower bitrate.

Why 720p often looks better than 1080p at a small size

When the size budget is tight, a 1080p video has too few bits per pixel and shows blocky detail. The same budget spent on 720p gives each pixel more data, which looks cleaner on a phone screen. The Automatic resolution setting picks a sensible cap from the bitrate it calculates.

Troubleshooting

The result is still over my size limit

Some services measure in MiB or add overhead. Choose a custom target about 10 percent smaller than the stated limit.

It says the target is too small for the video

The clip is too long for that size. Trim it, remove the audio, or choose a larger target.

It is very slow

Your device does the work. Close other tabs, try a lower resolution, or compress a shorter clip. Desktop browsers are usually faster than phones.

My iPhone video will not load

Some iPhone videos use HEVC. Try opening the page in Safari, or convert the video to MP4 first with the video converter.

Limits and good to know

FAQ

How do I compress a video to a specific size?

Add the video, choose the target size, and press Compress. The tool calculates a bitrate from the video length so the result lands at or under that size.

Will compressing reduce video quality?

Yes, some detail is lost, especially at very small targets. Lowering the resolution as well usually keeps the picture looking cleaner.

Is it safe to compress private videos here?

The video is processed inside your browser and is not uploaded, so it never leaves your device.

Why is my result slightly different from the target?

Encoders cannot hit a size exactly. The tool aims a little under your target and retries if the result is over.

What format does the compressed video use?

MP4 with H.264 video and AAC audio, the most compatible combination.

Does it work on iPhone and Android?

Yes, in modern mobile browsers. Large files may be slow or run out of memory on older phones. Try a shorter clip if that happens.

What is the best size to compress a video to?

Use the smallest size that still looks fine for the use. For chat apps that is usually the platform limit minus a safety margin. For email, aim for about 70 percent of the stated attachment limit.

Does compressing remove the audio?

No, audio is kept by default. You can choose to remove it to free more space for the picture.

Will the video keep its original shape?

Yes. The aspect ratio is preserved. Only the pixel dimensions change if you lower the resolution.

Is there a watermark?

No. The output is clean.

More video compressor pages