Every image on your phone or website has been compressed somehow; the only question is which kind did the work, because the two kinds make opposite promises. One promises the picture back exactly as it was, and saves a little space. The other promises no such thing, throws detail away on purpose, and saves a great deal.

Knowing which is which explains the confusing results: why a screenshot saved as JPEG looks fuzzy and weighs more, why re-saving a photo slowly ruins it, and why one output is a tenth the size of another. This guide explains both methods plainly, then shows the difference on one photo using the free Image Compressor on Ovatly.

Contents

  • Quick answer
  • What compression does in the first place
  • Lossless: nothing removed, modest savings
  • Lossy: detail discarded, large savings
  • The quality slider is a lossy dial
  • Worked example: one photo, both methods
  • Which one for which job
  • How to compress an image, step by step
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

Lossless compression stores an image more efficiently without removing any of its data, so the decoded picture is pixel-for-pixel identical and the savings are modest; PNG is the common lossless format. Lossy compression permanently discards detail the encoder judges least visible, which produces far smaller files; JPEG works this way, and so does the re-encoding done by the Image Compressor. Use lossy for photos that will be viewed on screens, and lossless for screenshots, graphics, and any master file.

What compression does in the first place

An uncompressed image is a long list of pixel values, and real images repeat themselves inside that list: skies hold the same blue for thousands of pixels. Every compression method starts by exploiting that repetition. The split between the two kinds is what happens next, when repetition alone is not enough.

Lossless stops there. Lossy keeps going, and starts deleting.

Lossless: nothing removed, modest savings

A lossless encoder rewrites image data in a tighter form and removes nothing. Decode the file and you get back exactly the pixels you started with. It works like a zip archive on a document: packed more efficiently, never edited.

PNG is the standard lossless format, and it shows both the strength and the limit of the method. A screenshot is mostly flat areas and sharp edges, long runs of identical pixels, so PNG packs it down well. A photograph is the opposite: millions of pixels, each slightly different from its neighbours, with little exact repetition to exploit, so a lossless photo file stays large.

Lossless is the only safe choice for a master you will edit again, for text or line art that must stay crisp, or when the picture is evidence and "almost identical" is not identical.

Lossy: detail discarded, large savings

A lossy encoder takes a different deal: it discards the detail it judges least likely to be missed. Human eyes notice brightness far more than fine color variation, so the encoder spends its budget accordingly. Subtle texture, tiny color shifts and the finest detail are simplified or dropped. The result looks the same at a glance, at a fraction of the size.

JPEG is the classic lossy format, and the Image Compressor's re-encoding is lossy too, whatever format you feed it. Two properties follow. First, the loss is permanent: the discarded detail is not hidden in the file waiting to be restored, it is gone. Second, it compounds: save the result again and the second pass discards detail from an already thinned image. A few rounds of that and the damage stops being subtle.

The quality slider is a lossy dial

The quality slider sets how aggressively the encoder discards detail. At 80%, the sweet spot for photos on the web, files shrink dramatically with no visible loss for most people. Drop to 60 to 70% for thumbnails, where the image shows small. Stay at 90% or above when every detail matters. The slider updates the result live, with before and after sizes and a preview, so you choose by looking at your own image at its real viewing size.

Worked example: one photo, both methods

Take the phone photo from the compressor's own example: a typical 3 MB photo at 4032 by 3024 pixels. Run it through the Image Compressor at 80% quality and save it as JPEG, and it usually lands in the hundreds of kilobytes, with no visible difference at normal viewing sizes. That is lossy doing its job: a roughly tenfold saving, bought with detail nobody would see on a screen.

Now save a copy of the same photo as PNG instead. The file comes back exact, every pixel preserved, and far larger than the JPEG, because lossless packing can only do so much. The JPEG is the right file to post, email or upload. The untouched original is the right file to keep.

Which one for which job

Photos headed for screens belong in lossy. A website, an email or a chat displays the picture once, at a modest size, and the discarded detail would never have been seen. The savings are seen every time the page loads or the file sends.

Screenshots, diagrams, logos and anything with text belong in lossless, usually PNG. Sharp edges and flat areas are exactly what lossy encoding smears, and a JPEG screenshot can even come out bigger than the PNG. One exception, from the compressor's own notes: PNG screenshots with large flat areas often shrink more as WebP than as JPEG, so try WebP first.

Masters belong in neither queue: whatever you might print, edit or re-crop later stays in its original form, and compression is something you apply to a copy, never to the only version of a file.

How to compress an image, step by step

  1. Open the Image Compressor and tap the file box to choose an image, or drop one onto it.
  2. Move the quality slider; the result updates each time you change it. Start at 80% for a photo.
  3. Choose JPEG for the widest compatibility or WebP for smaller files on the modern web.
  4. Compare the before and after sizes, check the preview, then download the compressed image.

Everything happens in your browser, using its built-in image encoder: the image never leaves your device, and the tool handles one image at a time so you can check each result.

Limitations and honest tradeoffs

Lossy compression cannot be reversed or undone later. Compress a photo at 65% and need it large and clean next year, and the only path back is the original file, if you kept it. Dimensions are also untouched: a smaller file is not a smaller picture in pixels, and when you need different pixel sizes, that is the Image Resizer's job, not the compressor's.

Lossless has its own honest limit: it cannot promise a small file. A detailed photograph saved losslessly stays big, because the format is forbidden from discarding the very detail that makes the file large.

Common mistakes

  • Re-saving a lossy file repeatedly. Each save discards more. Always compress from the original.
  • Compressing the master. Apply lossy compression to copies headed somewhere, never to the only version.
  • Saving screenshots as JPEG. Fuzzy text, possible size increase. Keep screenshots lossless, or try WebP.
  • Assuming a smaller file means a worse picture. At the right quality for the viewing size, lossy output is indistinguishable. Check the preview.

FAQs

What does lossless compression actually do? It stores the same image data more efficiently, so the picture that comes back is identical to the one that went in. PNG works this way. Because nothing is thrown away, the savings are limited by how much repetition the image holds.

What does lossy compression throw away? Fine detail judged least likely to be noticed, such as subtle texture and tiny shifts in color. JPEG works this way, and so does the Image Compressor's re-encoding. The discarded detail cannot be recovered.

Does saving a JPEG again and again make it worse? Yes. Each lossy save discards a little more detail, and the losses stack up. Always compress from the original file, never from a compressed copy.

Which should I use for screenshots? Lossless, usually PNG: screenshots have sharp edges and flat areas that lossy encoding smears. One exception: PNG screenshots with large flat areas often shrink more as WebP than as JPEG, so try both and keep the smaller.

Is the Image Compressor lossy or lossless? Lossy. It re-encodes JPG, PNG and WebP at the quality you choose and trades fine detail for size. That is the right trade for photos headed to the web, email or a chat, and the wrong one for an archival master.

Conclusion

The difference is a promise. Lossless promises your pixels back exactly and saves what it can; lossy promises a much smaller file and spends detail it bets you will not miss. Match the method to the job, and keep your masters out of the lossy queue. When the job is getting a photo under a size limit, our guide to compressing an image for Discord upload limits runs the whole loop step by step. For more guides in this series, see our Image Tools guides.

References