Online tool

Image Compressor

Compress JPG, PNG, WebP and iPhone HEIC by quality or straight to a target size — 200 KB, say — with a before/after slider that shows exactly what the compression cost.

Drop an image to make it smaller

JPG, PNG, WebP or iPhone HEIC. You can also paste with Ctrl/⌘+V.

Compression is a size problem, not a quality slider

Nobody wakes up wanting an image at 71% quality. What they have is a form that says "maximum 200 KB", an email that bounced, or a page that takes four seconds to paint on a phone. The number in the requirement is a file size, and almost every compressor answers with a quality slider and leaves you to guess which position clears it — usually after five exports.

This one will search for you. Type the size the form demands and it re-encodes repeatedly, bisecting the quality range and, only if that isn't enough, stepping the dimensions down — because dropping pixels is the one compromise you can actually see. What comes back is the largest, best-looking file that fits under your limit.

The before/after slider is there for the same reason: compression is a trade, and a tool that hides the cost is asking you to trust it. Drag across the image at full size and decide whether 200 KB was worth it before you download anything.

Common use cases

Upload forms with a hard limit

Visa applications, job portals and government sites state a maximum in KB. Type it in and get a file that fits on the first try.

Faster web pages

Photos are usually most of a page's weight. Convert to WebP at 500 KB or less and the same picture loads in a fraction of the time.

Email attachments

Mail servers reject large messages. Compress a set of photos to a few hundred KB each and they arrive without a file-sharing link.

Freeing up storage

Phone photos are often ten times bigger than they need to be for anything you'll do with them on a screen.

Choosing the right settings

  • 80% quality is the sweet spot for photographs: below about 60% JPEG artefacts start showing around high-contrast edges, and above 90% the file grows fast for almost nothing.
  • Resizing beats quality for anything shown on a screen. An image displayed 800px wide gains nothing from 4000px of source, and the resize saves far more bytes than any quality setting.
  • Use WebP when the destination is a website — roughly 30% smaller than JPEG at matching quality, and supported by every current browser.
  • PNG ignores the quality slider entirely: it is lossless, so the only way to shrink it is fewer pixels or fewer colours. For a photo saved as PNG, converting to JPG or WebP is the real fix.
  • Screenshots and flat graphics compress badly as JPEG — the ringing around text is the giveaway. Keep those as PNG or WebP.
  • Strip Exif when you publish a photo publicly: it can carry the GPS coordinates of where it was taken. Keep it when the shot data matters to you.

Compress an image in three steps

1

Drop in an image

JPG, PNG, WebP or iPhone HEIC. Drag it in, pick it, or paste from the clipboard.

2

Pick quality or a target size

Set a quality level, or type the exact size your form demands and let the search find the setting.

3

Compare, then download

Drag the slider across the result to see what the compression cost, then save the file.

Frequently asked questions

Are my images uploaded?

No. Decoding and re-encoding both happen in your browser, so nothing is sent anywhere and there is no queue to wait in.

How does the target size work?

It encodes, measures, and encodes again — a binary search over the quality range. If even the lowest acceptable quality overshoots, it steps the dimensions down and tries again, which is why a 4 MB photo can reach 100 KB while a screenshot full of text may not.

Why did my file get bigger?

Because it was already efficiently compressed. Re-encoding an optimised JPEG at a higher quality than it was saved at adds bytes without adding detail — the page says so, and the original stays the better file.

Does compression lose quality?

JPEG, WebP and AVIF are lossy, so yes, by design — that is what makes them small. PNG is lossless, so it only shrinks when you reduce dimensions.

Is Exif data kept?

By default yes, for JPEG output, including orientation and camera settings. Switch it off to strip location and camera data before publishing.

Can I do a whole folder at once?

Yes, in the bulk image editor: same compression, up to 200 files, returned as a ZIP.

Related tools and guides

Feedback