Free tool · JPEG output · Runs in your browser

Compress an image to 1 MB

No uploadRuns in your browserReviewed October 9, 2026

Short answer

Choose your image and the tool finds the best JPEG that fits 1 MB (1,048,576 bytes). On our test images it kept 2 of 4 at full size and shrank 2: the 3.1 MB photo became 2700 × 2726 at 76% quality (976 KB), and the 733 KB portrait 2122 × 2644 (981 KB). Quality alone was enough for all four. Nothing is uploaded.

Exact selected target: 1,048,576 bytes. These existing KB controls use 1,024 bytes per unit; a decimal search preset retains its exact byte count.

Choose an image after setting the target.

Output is JPEG, because quality-versus-size can be searched reliably for it. The result may be below or above the target; the actual size and any unreachable target are reported. An exact byte count cannot be promised. Quality is searched first; the picture is shrunk only when quality alone cannot reach the target, and the result list shows the new size. Untick the option to keep the dimensions and trade quality only.

Key takeaways

  • A 1 MB target means 1,048,576 bytes (1 KB is 1,024 bytes in this tool). The results landed between 95% and 100% of it, never over.
  • Photo, 3840 × 3877: quality alone reached 922 KB at 39%, SSIM 0.88; with shrinking, 2700 × 2726 at 76% and SSIM 0.91.
  • Portrait, 2122 × 2644: quality alone reached 981 KB at 95%, SSIM 1.00; with shrinking, 2122 × 2644 at 95%, SSIM 1.00.
  • Document scan: 3827 × 1588 (full size) at 84%. Graphic: 3463 × 3497 at 76%.
  • The smallest picture in the set at this target was 2122 × 2644 (the portrait).

What 1 MB means for a picture

1 MB is 1,048,576 bytes. The way to read it is in bits per pixel: the same budget spread over more pixels means each pixel gets fewer bits and the picture gets blockier. The table shows what the search chose for each image.

How much picture 1 MB buys: bits per pixel of each result with the shrink option.
ImageResultPixelsBits per pixel
Photo976 KB2700 × 27261.09
Portrait981 KB2122 × 26441.43
Document scan1020 KB3827 × 15881.38
Graphic (PNG)1002 KB3463 × 34970.68

For 2 of the 4 images the search had to shrink the picture to keep the quality at a sensible level; the smallest result was 2122 × 2644 pixels.

Measured: 1 MB with and without shrinking

Measured in headless Chromium with the browser's own canvas JPEG encoder, the way the tools draw: a white background, then toBlob at the quality given. Five public domain images: a 3840 × 3877 photo (3.1 MB), a 2122 × 2644 portrait (733 KB), a 3827 × 1588 handwritten document scan (1.36 MB), a 5380 × 5432 PNG graphic with transparency (18.9 MB) and a small 441 × 517 JPEG (66.6 KB). SSIM compares each result with the original at the result's own size, so 1.0 would be identical. Other browsers use their own encoders, so sizes can differ.

Each image compressed to 1 MB (1,048,576 bytes) with and without the shrink option.
ImageOriginalQuality onlyQuality and size
Photo, 3840 × 38772.96 MB922 KB, 39%, SSIM 0.882700 × 2726, 76%, 976 KB, SSIM 0.91
Portrait, 2122 × 2644715.7 KB981 KB, 95%, SSIM 1.002122 × 2644, 95%, 981 KB, SSIM 1.00
Document scan, 3827 × 15881.30 MB1020 KB, 84%, SSIM 0.973827 × 1588, 84%, 1020 KB, SSIM 0.97
Graphic (PNG), 5380 × 543217.99 MB945 KB, 28%, SSIM 0.913463 × 3497, 76%, 1002 KB, SSIM 0.92

At this size, quality alone met the target for all four images.

What is kept and what is saved at 1 MB

The share of pixels kept and the share of bytes saved, with the shrink option on. A picture that keeps a quarter of its pixels has half the width and half the height.

Savings at 1 MB.
ImageOriginalResultSmaller byPixels kept
Photo2.96 MB976 KB67.8%49.4%
Portrait715.7 KB981 KB-37.0%100%
Document scan1.30 MB1020 KB23.1%100%
Graphic (PNG)17.99 MB1002 KB94.6%41.4%

Shrinking changed the score by +0.03, +0.00, +0.00, +0.01 (photo, portrait, document, graphic). The two modes were close here.

Before you upload it

  • Check the destination's own limits. If it asks for pixel dimensions as well as 1 MB, resize first and then compress.
  • Look at the result at the size it will be shown. SSIM says the picture is a faithful smaller copy, not that a face is recognizable or text is readable.
  • Keep your original. Compress a copy.
  • If 1 MB is a limit and the file is just under it, leave a little room: some systems count a file's size differently.

Free tools:The target size tool, any sizeCompress an image with a sliderCompress an image to 20 KBCompress an image to 50 KBCompress an image to 100 KBCompress an image to 200 KB

Questions people ask

How do I compress an image to 1 MB?

Choose 1 MB (or type 1024 KB) in the target size tool and add your image. It searches quality and shrinks the picture only if it has to.

Will my picture be smaller in pixels?

Often, at 1 MB. In our test 2 of 4 images were shrunk; the smallest was 2122 × 2644.

Is the result exactly 1 MB?

No. It stays at or under 1,048,576 bytes and, in our tests, within 5% below it at most.

What happens to a PNG?

It becomes a JPEG on a white background; transparency is lost.

Can I keep the original dimensions?

Yes. Untick the shrink option. The tool then trades quality only, and says if the target cannot be reached.

Why does a document or text image look worse at small sizes?

JPEG softens sharp edges, and a small picture has fewer pixels for each letter. Check readability before you send it.

Is my image uploaded?

No. It stays in your browser.

Related

Sources and how we checked

  1. MDN: HTMLCanvasElement.toBlob() (read 2026-10-09)
  2. MDN: CanvasRenderingContext2D.imageSmoothingQuality (read 2026-10-09)
  3. Wikimedia Commons: NASA, Portrait of Neil Armstrong (public domain); the other test images are NASA public domain files and the Bliss copy of the Gettysburg Address (read 2026-10-09)

Reviewed October 9, 2026. The measurements ran the tool's own code in headless Chromium with the browser's canvas JPEG encoder. The script and the results are in data/seo/hub/evidence/2026-10-09/image.