What "Without Losing Quality" Can Honestly Mean

JPEG is a lossy format. Every time an encoder writes a JPEG, it throws away information and cannot get it back. So the promise in the title needs a careful reading. It cannot mean that the file is bit-for-bit identical to the source. It can mean that the differences are too small for a viewer to notice at the size and on the screen where the picture is used. This page explains that distinction and how to judge it. For the step-by-step export routine, use the JPEG Optimization Guide. For the format internals, see How JPEG Compression Works.

Visible Loss and Invisible Loss

Two files can both be lossy and still differ greatly in how much a person would notice. Encoders aim to discard detail the eye is least likely to miss, such as very fine texture and small colour differences. That kind of loss is real but invisible in ordinary viewing. Loss becomes visible when the encoder runs out of room and has to discard things that matter.

What you seeNameWhere it shows up
Visible square patchesBlockingFlat areas such as sky, walls, backgrounds
Fuzzy speckles near edgesRinging or mosquito noiseText, outlines, high-contrast edges
Colour bleeding or dull colourChroma lossThin red or blue lines, saturated edges
Stepped bands in a gradientBandingSunsets, studio backdrops, shadows

The practical test is whether any of these appear in the picture at the size it will be shown. If none do, the compression is effectively invisible for that use, even though data was discarded.

Why the Same Setting Gives Different Results

A quality number such as 80 or 85 is a convention used by encoders, not a measurement of how good the picture looks. A portrait with soft background can look fine at a setting that ruins a photo of a brick wall or a printed page, because busy texture needs more detail to look right. Different software also maps the number to its internal tables in different ways. For that reason, a starting range of 75-85 is a place to begin testing, and the verdict always comes from looking at your own image.

Generation Loss From Re-Saving

Generation loss is the gradual damage that builds up when a JPEG is opened, edited and saved as JPEG again. Each save runs the whole lossy process on pixels that already carry artifacts from the last one. Three things make it worse:

  • Changing the pixel grid. Cropping by an odd offset, resizing or rotating at an angle shifts the 8x8 block boundaries, so new artifacts land in different places from the old ones.
  • Lower settings on each pass. Saving at a lower quality than the file already has adds fresh loss on top of old loss.
  • Chains of tools. Social platforms, messaging apps and CMS plugins often re-encode uploads, so a file can be recompressed without you doing anything.

The remedy is a simple habit: edit in a lossless format or keep the camera original, and produce the JPEG once at the end. If you only have a JPEG, make the fewest edits possible and save once. Some operations, such as a 90 degree rotation on images whose dimensions fit the block layout, can be done without re-encoding by tools built for that purpose.

Choose a Smarter Order, Not Just a Number

Most of the savings that cost no visible quality come from steps that do not touch the lossy settings at all. Resizing to the real display size removes pixels nobody sees. Removing unneeded metadata drops bytes that were never part of the picture. Only after that does the quality setting need to work hard. The order and the commands for each step are in the optimization workflow.

How to Judge a Result Fairly

  1. Compare at the real display size, because that is what visitors see.
  2. Then zoom to 100 percent and check flat areas, edges and skin.
  3. Flip between the two versions in the same position on screen. Side by side is harder than alternating.
  4. Check a second screen. A phone and a laptop show banding and noise differently.
  5. Look for the weakest area of the image, not the best one. Artifacts show first in smooth gradients and near text.

Our JPEG compressor includes a before and after view in the results table, with sizes shown next to it, so you can run exactly this check. Lossy mode starts at quality 85. Custom mode has quality and target size fields, but they are not applied reliably yet, so check the size in the results table. Uploaded files travel over HTTPS and are deleted automatically after processing.

When to Choose Lossless Instead

Some images should not be put through a lossy format at all. Pick a lossless format such as PNG when any of these apply:

  • The image is a screenshot, diagram, logo or anything with text and hard edges. JPEG leaves ringing around them.
  • The file is a master that will be edited again, so loss would accumulate.
  • Exact pixel values matter, for example in technical, scientific or evidentiary images.
  • The image needs transparency, which JPEG does not support.

The broader trade-off is covered in Lossy vs Lossless Compression, and ways to shrink lossless files are in the PNG optimization guide. Newer formats can also keep photographs smaller than JPEG for the same appearance; see the WebP, PNG and JPEG comparison if the file is destined for the web.

Common Misunderstandings

  • "Quality 100 is lossless." It is not. Quality 100 is still lossy and usually produces a large file with little benefit.
  • "Metadata removal changes the picture." Dropping EXIF does not alter pixels, though a removed orientation flag can make a photo appear rotated.
  • "If it looks fine once, it is fine forever." A file that looks fine may degrade if someone edits and re-saves it later.
  • "A smaller file proves better compression." A smaller file may simply have lost more.

Short Checklist

  • Is there an untouched original?
  • Was the JPEG produced once, from that original?
  • Did you look at flat areas, edges and text at the display size and at 100 percent?
  • Is JPEG the right format for this content, or should it be lossless?