A single photo from a modern phone is often 3–8 MB. That's fine on your camera roll — but far too big for a website, an email attachment, a job application portal, or a form that caps uploads at 2 MB. The fix is compression: re-encoding the image so it takes up a fraction of the space while looking, to the human eye, exactly the same.

You don't need Photoshop or a paid app for this. Below is how image compression actually works, how to do it in your browser for free, and — importantly — why JPG and PNG behave completely differently when you compress them.

How Image Compression Actually Works

Most of the data in a photo is detail your eye can't resolve — tiny colour variations between neighbouring pixels, noise from the camera sensor, precision that never survives the trip to a screen. Lossy compression (what JPEG uses) discards exactly that kind of imperceptible detail and stores the rest far more efficiently.

The "quality" setting controls how aggressive this is. At quality 100, almost nothing is discarded and the file stays large. Drop to quality 80 and a typical photo shrinks to roughly a third of its size — with no difference you can spot on screen. Push below 50 and you start to see it: blocky patches in smooth areas like skies, and fuzzy halos around sharp edges.

Bar chart showing JPEG file size as a percentage of the original at quality settings from 100 down to 40, with quality 80 highlighted as the sweet spot at roughly 32 percent of original size
Quality 80 is the sweet spot: visually identical, roughly a third of the file size.

How to Compress an Image — Step by Step

  1. Open the free ToolFlow Image Compressor
  2. Upload your JPG or PNG, or drag it onto the page
  3. Set the quality slider — the default of 80 is right for most photos
  4. Click Process
  5. Download the compressed image — you'll see how much smaller it came out
💡 Tip: Compression never changes your image's dimensions. A 4000×3000 photo stays 4000×3000 — only the file size shrinks. If you also want smaller dimensions (say, 1200px wide for a blog), run it through the Image Resizer first; resizing plus compression together gives the biggest savings.

What Quality Setting Should I Use?

  • 90–100 — near-original quality, modest savings. Use for images you'll print or edit further.
  • 75–85 — the sweet spot for websites, blogs and social media. Visually identical on screen at a fraction of the size.
  • 60–75 — noticeably smaller files with only minor softening. Good for email attachments and upload limits.
  • Below 50 — visible artifacts start appearing. Only use when file size matters more than appearance.

JPG vs PNG: Why They Compress Differently

This is the part most guides skip, and it explains why your PNG "barely compressed" while a JPG shrank by 60%.

JPG is a lossy format. The quality slider directly controls how it's re-encoded, so photos routinely come out 40–70% smaller.

PNG is a lossless format. Every pixel is preserved exactly — which is why PNGs keep razor-sharp text and transparency. But it also means there's no quality dial to turn: re-encoding a PNG can strip metadata and tighten the encoding, but the savings are usually modest, and an already well-optimised PNG may hardly shrink at all.

If a PNG is too large and you don't need transparency — a photo someone saved as PNG, for example — the biggest win is converting it to JPG or WebP with the Image Converter. That routinely cuts a multi-megabyte PNG photo down by 80% or more.

Side-by-side comparison of compressing JPG versus PNG: JPG responds to the quality slider and typically shrinks 40 to 70 percent, while PNG is lossless with modest savings and benefits more from converting to JPG or WebP
The format decides the outcome: JPGs respond to the quality slider, PNGs are lossless by design.

Your Images Never Leave Your Device

ToolFlow's compressor runs entirely in your browser using the Canvas API — the image is decoded, re-encoded and downloaded on your own machine. Nothing is uploaded to a server, which makes it safe for ID scans, contracts, medical documents and anything else you'd rather not hand to a random website.

Ready to shrink your images?

Free, instant, no signup. Your files are processed on your device and never uploaded.

Frequently Asked Questions

Does compressing an image reduce its quality?

For JPGs at quality 75 or above, not visibly — the discarded detail is below what your eye can resolve on screen. PNGs are re-encoded losslessly, so their quality never changes at all.

Will compression change my image's dimensions?

No. Width and height stay exactly the same — only the file size is reduced. Use the Image Resizer if you want smaller dimensions too.

Why didn't my PNG get much smaller?

PNG is lossless, so there's no quality setting to lower. If you don't need transparency, convert it to JPG or WebP instead — that's where the big savings are for photographic PNGs.

What's the best format for web images?

WebP offers the smallest files with wide browser support; JPG is the safe universal choice for photos; PNG is best kept for graphics that need transparency or pixel-perfect text.

Can I compress multiple images at once?

The tool processes one image at a time. For a batch, compress and download each image in turn — your quality setting stays where you left it between runs.

Is it safe to compress private photos online?

With ToolFlow, yes — processing happens locally in your browser. Your images are never uploaded, so not even we can see them.

← All articles

More image guides