OnlineAITool
Image Tools

Compress Image to 1 MB

Drop in a photo and get it back under 1 MB. The tool searches for the highest quality that still fits, so you keep as much detail as the limit allows.

Target: under 1 MB
Dimensions: Original ratio kept
Choose an image or drag it here under 1 MB · JPG, PNG, WebP or HEIC in · JPEG out · paste from the clipboard works too

How to use this tool

  1. Choose your image, drag it onto the box, or paste it from the clipboard. JPG, PNG, WebP and HEIC all go in; JPEG comes out.
  2. There is nothing to set. This page is already fixed at under 1.00 MB, JPEG.
  3. Download from the panel, which shows the original size, the final size and the output dimensions. Nothing was uploaded at any point.

One megabyte — the limit Etsy recommends staying under for listing photos.

Compress Image to 1 MB — the specification

Target file sizeUnder 1 MB
Output formatJPEG
DimensionsUnchanged unless the size target requires shrinking
Colour spacesRGB
TransparencyFlattened onto white — JPEG has no alpha channel

Compress Image to 1 MB: why uploads get rejected

Landing under 1 MB is necessary but not sufficient. These are the reasons a file that meets the size still gets sent back:

  • The file is a PNG screenshot. PNG is built for flat graphics, not photographs, and a PNG photo can be five times larger than the same image as JPEG. Converting alone often gets you under 1 MB.
  • The image has very large pixel dimensions. A 4000 × 3000 phone photo squeezed to 1 MB looks soft no matter how good the encoder is — reducing dimensions first preserves far more apparent detail.
  • You compressed an already-compressed file repeatedly. Each pass discards more information permanently. Always start from the original.

How it works

Hitting a size limit exactly is a search problem, not a setting. There is no quality value that means “1.00 MB” — how many bytes a given quality produces depends entirely on the picture. So this tool encodes, measures the real file, and adjusts.

It then binary-searches the quality parameter: encode, measure, halve the remaining range, repeat. The run below took 7 encodes to land at 1015.9 KB. A tool that picks one fixed quality instead either overshoots the limit or comes in far under it and throws away detail you did not need to lose.

Every one of those encodes ran on your own device through the browser’s canvas API — including the intermediate attempts the search threw away. None of them was uploaded.

A measured run of this exact preset

Not an estimate: this page’s own code, run against a 12.2 MP photograph and an A4 scan at 200 dpi, with every encode recorded. The files and the method are published here.

InputResultChangeOutcome
12.2 MP photograph
3024 × 4032 px · 2.94 MB
1015.9 KB
3024 × 4032 px
66% smallerUnder the 1.00 MB limit
A4 scan at 200 dpi
1654 × 2339 px · 996.0 KB
995.4 KB
1654 × 2339 px
0% smallerUnder the 1.00 MB limit

Step by step

The first probe at quality 0.96 came out at 3.59 MB, about 3.6× the 1.00 MB limit, so the search began.

It then narrowed the quality setting 6 times — quality 0.51 gave 590.0 KB, quality 0.73 gave 1.10 MB, quality 0.62 gave 749.2 KB, quality 0.68 gave 985.5 KB, and so on — settling on quality 0.69.

Final file: 1015.9 KB, using 99.2% of the allowance, with 8.1 KB to spare.

Who needs Compress Image to 1 MB

People reach this page for three reasons: an upload form rejected a photo for being too large, an email attachment would not send, or a page loaded slowly because of oversized images. All three are solved the same way — get under the limit while giving up the least quality possible.

Compress Image to 1 MB — frequently asked questions

How close to 1 MB does it get?

The tool searches seven quality levels and keeps the largest result that still fits under 1 MB. In practice you land within a few percent of the limit rather than far below it, which means more retained quality than tools using one fixed setting.

What if my image cannot reach 1 MB?

If even the lowest quality is too large, the tool reduces the pixel dimensions and searches again, up to seven times. If it still cannot get there, it tells you the smallest size it actually achieved rather than silently returning something over the limit.

Which formats can I upload?

JPG, JPEG, PNG, WebP and most formats your browser can display, including HEIC on Safari. Output is JPEG, because JPEG reaches small sizes on photographs far more efficiently than PNG.

How do I reduce image size to 1MB without losing quality?

Some quality loss is unavoidable — that is what making a file smaller means. What you can control is how much. Start from the original rather than an already-compressed copy, reduce the pixel dimensions if the image is far larger than it needs to be, and let the tool find the highest quality that fits rather than picking a fixed setting. That is what the search on this page does.

What is the difference between resizing and compressing an image?

Resizing changes the pixel dimensions — a 4000 × 3000 photo becomes 800 × 600. Compressing keeps the dimensions but stores the same pixels less precisely. Both reduce file size, and for a target as small as 1MB you usually need both. This tool compresses first and reduces dimensions only if compression alone cannot get there.

Does this work on a phone?

Yes, including photos straight from your camera roll. The work happens on the device, so a very large image is slower on a phone than on a laptop, but nothing is uploaded either way.

Is 1 MB the right target, and what you actually get

Where this limit comes from: Web pages, email and most modern upload forms.

At 1 MB the measured run needed no meaningful scaling — the target was reached on quality alone, so the image keeps its full dimensions. If the form allows this much, you give up very little.

The same source file put through this target and the ones either side of it, measured rather than estimated:

TargetResultFinal size in pixelsScaling applied
500 KB484 KB2530 × 3373 px84% of original width
1 MB (this page)1016 KB3024 × 4032 px100% of original width
2 MB1.66 MB3024 × 4032 px100% of original width

If the portal gives a range rather than a hard number, take the largest it allows. Every step down this ladder costs detail that cannot be recovered afterwards.

Related tools

From other categories

Your photo never leaves your device. Open your browser's Network tab while you use this page and you will see no upload — how that works.

Disclaimer. Published requirements change without notice. Confirm against the official source before you submit. Full disclaimer.