Compress an image to 2 MB

Reduce an image to under 2 MB for high-quality uploads with a 2 MB cap, keeping the best quality that fits.

loading Compress an image to 2 MB
About this tool

What this page does

This page opens the picture compressor with the target already set to 2 MB (2,097,150 bytes). Drop a JPG, PNG, WebP, HEIC or other picture and the tool searches for the best quality that makes the file fit, entirely in your browser: the picture is not uploaded anywhere.

Two megabytes is a generous cap, typical of profile, cover and product-image fields. It is enough for a phone photo in near-original quality, so this is the page for when you want to keep as much detail as the limit allows.

What 2 MB really allows

A file size is a budget of bits shared by all the pixels. A photograph at medium quality usually needs about 1.5 bits per pixel, so a picture with more pixels than the budget can pay for has to be shrunk. The table shows what 2 MB allows for common starting points and, assuming that rate, the size the picture would have after the fit (a rule of thumb: flat graphics need far less, noisy photographs more).

Starting picturePixelsBits per pixel allowedSize at 1.5 bit/pixel
Phone photo, 12 MP4000 × 30001.43862 × 2896
Photo of 8 MP3264 × 24482.1as is
Full HD screenshot1920 × 10808.09as is
HD image1280 × 72018.2as is
Portrait for a form600 × 80034.95as is
Webcam, VGA640 × 48054.61as is

How the tool gets there

First it tries the original size at the highest quality. If that is too big, it searches the quality between 100 and 40 by halving the range until it finds the highest that fits. If even 40 is too big, or the format is PNG (which has no quality), it shrinks the dimensions instead, never below 10% of the original side. When nothing fits, you get the smallest result it could make, with a warning.

In this tool 1 KB is 1,024 bytes, as most operating systems show it, so 2 MB is 2,097,150 bytes. Some forms count 1 KB as 1,000 bytes: for a limit of 2 MB written that way the largest safe target is 1953 KB, and the table below puts the three numbers side by side.

How it is countedBytes
2 MB in this tool (1 KB = 1,024 bytes)2,097,150
The same number counted with 1 KB = 1,000 bytes2,000,000
Safe target: 1953 KB1,999,870

A worked example

With 2,097,150 bytes there are 16,777,200 bits to spend. At 1.5 bits per pixel that pays for about 11,184,800 pixels, which is a 4:3 picture of 3862 × 2896. A 4,000 × 3,000 phone photo would have to lose 7% of its pixels (3% on each side) to be paid for at that rate; a picture that is already smaller than 3862 × 2896 needs no resizing at all, only the quality search.

Step by step

  1. Drop the picture on the area above, or press the button to choose it (several files work too).
  2. Check that the target says 2 MB and choose the format: JPG for photographs, WebP for smaller files, PNG for graphics.
  3. Press the compress button and wait a few seconds: the tool shows the size it reached, the quality used and whether the dimensions had to shrink.
  4. Look at the result next to the original, and download it. The name keeps the original with a suffix, so nothing is overwritten.

A tip for this size

The tool stops at the highest quality that fits, so a picture already under 2 MB is returned at its first try, untouched in size. If your picture is small already, compression is not needed: it will say it reached the target with the quality at 100%.

Common mistakes

  • Sending the result without looking at it: at a hard limit like 2 MB the tool may have lowered the quality to 40 or shrunk the picture, and what you need (a face, a stamp, a number) must still be readable.
  • Expecting every picture to reach 2 MB with the same look: fine detail such as text, foliage or noise costs far more bits than a flat wall, so two pictures of the same size can end at very different qualities.
  • Choosing PNG for a photograph and a target of 2 MB: PNG has no quality setting, so the only way to lose weight is to lose pixels. Pick JPG or WebP for photographs and keep PNG for logos and screenshots.

Frequently asked questions

Why did my picture come out smaller than 2 MB?

The search stops at the best quality that fits: quality moves in whole steps, so the result lands just under 2 MB, and a picture that is already smaller is returned as it came.

Is my picture uploaded?

No. The compression to 2 MB runs in your browser, with your own computer or phone, so the picture never leaves your device and the page also works offline once loaded.

What if the result is still bigger than 2 MB?

The tool shows the smallest file it could make and says it did not reach 2 MB. The way out is a smaller picture to start from: crop away what the form does not need, or resize it, and compress again.

Does the form decide the exact limit?

Yes. This page only prepares the file; the exact limit, the accepted formats and how it counts a kilobyte are set by the site you upload to. Read its help text and leave a small margin: 1953 KB is the safe target for 2 MB counted in thousands.

Report a problem