Guide · Image optimization · Updated August 2026

How to Compress Images Without Losing Quality

A 4 MB photo can usually become a 400 KB photo that looks identical on screen. Here is what compression actually removes, and how to stay on the invisible side of the line.

"Compress without losing quality" sounds like a contradiction — and taken literally, it often is. The honest version of the promise is better: you can make most images dramatically smaller without any loss you can see. The difference between those two statements is the whole craft of image compression, and once you understand it, you stop guessing at quality sliders and start getting predictable results.

What compression actually does

There are two kinds of image compression, and they behave nothing alike. Lossless compression (PNG, and tools that "optimize" PNGs) works like zipping a file: it finds repetition and encodes it more efficiently, and every pixel survives exactly. It is perfectly safe — and modest. On a typical photo it might save 5–20%, because photographic detail contains very little repetition to exploit.

Lossy compression (JPG, and the lossy modes of WebP and AVIF) is where the big savings live. It permanently discards visual information, starting with the detail human eyes are worst at perceiving: tiny colour variations, high-frequency texture in busy areas, noise. A quality setting controls how aggressive the discarding is. Done well, a photo loses 80–90% of its bytes and none of its apparent fidelity. Done badly, you get blocky skies and smeared edges. The data is gone either way — lossy compression is a one-way door.

"Without losing quality" means "without visible loss"

Any lossy save loses data. The practical question is whether it loses anything a viewer can perceive at the size the image will actually be displayed. A pixel-peeper comparing crops at 400% zoom will find differences in a quality-85 JPG; a reader scrolling your page on a phone will not. Optimize for the real viewing conditions, not for a forensic comparison you will never perform.

This is why "maximum quality" settings are usually wasted bytes. Going from quality 85 to 100 can double or triple a photo's file size while changing nothing the eye can register. The goal is not the most faithful file possible — it is the smallest file that looks perfect in context.

The quality sweet spots

Decades of JPG use have converged on a few reliable settings, which is exactly why our PNG to JPG converter offers three presets instead of a 0–100 dial:

  • 85 — Balanced, the default. For photographs viewed on screen, 85 is the sweet spot: files shrink to a fraction of their original weight, and side-by-side comparison at normal size shows no difference. Most publishing platforms re-encode around this level. When in doubt, use 85.
  • 92 — High. Step up when the image will be shown large, printed, cropped later, or when it contains smooth gradients (skies, studio backdrops) where aggressive compression can cause faint banding. You pay roughly 40–80% more bytes for headroom you will only sometimes need.
  • 70 — Compact. Step down for thumbnails, email attachments, and images destined for slow connections. Fine texture softens slightly, but at small display sizes nobody notices. Below 70 the artifacts — blockiness, halos around edges — start becoming visible even casually, so treat it as the floor for anything that matters.

How much you can realistically save

Savings depend far more on what is in the image than on which tool you use. Typical results from a properly chosen approach:

Content typeRight approachTypical savings
Photo (phone or camera)Resize to display size, then JPG at 8580–95%
Screenshot with text/UIKeep as PNG; crop and lossless-optimize20–60%
Logo or flat graphicPNG (already small); reduce colours if huge30–70%
Scanned documentResize to needed resolution, JPG at 70–8570–90%

Notice the screenshot row: lossy JPG is the wrong approach there, because interface text is exactly the sharp, high-frequency detail JPG discards first. Our PNG vs JPG guide covers that boundary in detail.

Resize first — it is the bigger lever

Here is the step most people skip, and it dwarfs everything else: match the pixel dimensions to how the image will be displayed. A modern phone photo is 4000×3000 pixels — twelve million of them. A blog column is perhaps 800 pixels wide. Serving the full-resolution file means shipping roughly 25× more pixels than anyone will ever see, and no quality setting can compensate for that.

Halving an image's width and height quarters its pixel count, and file size falls roughly in step. Resizing a 4000-pixel photo to 1600 pixels routinely cuts the file by 80% before any lossy compression is applied — and loses nothing, because those pixels were never going to be displayed. Our Image Resizer does this entirely in your browser, so the file never leaves your device. For the full sizing strategy, including responsive images and lazy loading, see How to Optimize Images for a Faster Website.

Format choice is compression, too

Picking the right container is often the largest single "compression" decision you make. A photograph saved as PNG is typically 5–10× heavier than the same image as a quality-85 JPG, with no visible difference — converting it is the easiest saving you will ever get. Conversely, a logo forced into JPG gets both bigger and blurrier. And if you control the website, modern formats like WebP and AVIF compress photos 25–50% smaller than JPG at equivalent quality. The trade-offs are mapped out in Image Formats Explained.

A practical 4-step workflow

  1. Decide the display size. Check the width the image will actually occupy (a full-width hero might need 1600–2000 px; a column image 800–1200 px) and note whether it is a photo or a graphic.
  2. Resize to that size. Run the original through the Image Resizer — client-side, nothing is uploaded. This is where most of the bytes disappear.
  3. Pick the format and quality. Photo → convert to JPG with the PNG to JPG converter (files up to 15 MB, auto-deleted within 6 hours). Start at Balanced (85); switch to High (92) for large or printable images, Compact (70) for thumbnails. Graphic or screenshot → stay with PNG.
  4. Sanity-check at real size. Open the result at 100% zoom, not zoomed in. If it looks clean, ship it. If you see banding or blockiness, step up one preset — never chase perfection you cannot see.

Common mistakes that do cost visible quality

  • Double compression. Compressing an already-compressed JPG stacks two rounds of loss and saves little — the easy bytes are already gone. Whenever possible, go back to the original (or your PNG master) and compress once, at the final size.
  • Re-saving JPGs repeatedly. Every open-edit-save cycle in JPG discards a little more detail; after several generations the damage becomes visible. Keep a lossless master for anything you expect to edit again, and export JPGs from it as needed.
  • Storing photos as PNG. PNG on a photograph wastes megabytes preserving noise no one can see. Unless you need transparency or a lossless master, photos belong in JPG.
  • Compressing before cropping or resizing. Do all destructive steps in the right order: edit → resize → compress, last. Compressing first bakes artifacts in and then scales them.

The bottom line

Invisible compression is not a trick — it is three decisions made in the right order. Size the image for its real display width, choose the format that matches the content, and compress once at a sensible quality (85 unless you have a reason to move). Follow that sequence and "without losing quality" stops being marketing language and becomes exactly what happens.

Compress a photo right now

Convert PNG to JPG with three quality presets — free, no sign-up, files auto-deleted within 6 hours.

Open the PNG to JPG Converter

Related guides