Skip to content

How to Compress Images Without Losing Visible Quality

7 min read · Published

Large images slow down websites, bounce off email size limits and fill up storage. The good news is that most images can be made much smaller with no change you would notice at normal viewing size. This guide explains why that works and gives you a repeatable process.

Lossy and lossless compression

Lossless compression reorganises the data so the file is smaller but every pixel can be recovered exactly. PNG works this way. The savings are modest, often a few percent to a few tens of percent, depending on the image.

Lossy compression permanently discards detail that is hard to see. JPG and lossy WebP work this way. The savings can be large, but the loss cannot be undone, which is why you should always keep your original file and compress a copy.

Step 1: start with the right format

Format matters more than any slider. A photograph saved as PNG can be many times larger than the same photograph as JPG or WebP, so converting it can save more than any amount of fine-tuning. On the other hand, a logo or a screenshot with text usually looks better and compresses well as PNG, and turning it into a low-quality JPG often makes it both blurrier and not much smaller.

If you are unsure which format fits, read our comparison of JPG, PNG and WebP first, then come back to compress.

Step 2: resize before you compress

Pixel dimensions drive file size. A photo straight from a phone camera can be several thousand pixels wide, but a blog column or an email body might only display it at under a thousand. Shrinking the dimensions to roughly what will actually be shown removes data the viewer never sees, and it stacks with compression rather than competing with it.

Leave some headroom if the image will be shown on high-density screens, which benefit from images somewhat larger than their displayed size. Do not enlarge a small image to make it bigger: resizing up cannot add detail, so it only makes the file heavier and the picture softer.

Step 3: pick a sensible quality setting

For JPG and lossy WebP, a quality somewhere around 70 to 85 percent is a reasonable starting point for photographs. Below that, artefacts such as blockiness around edges and smeared skies become easier to spot. Above it, the file keeps growing while the visible improvement shrinks.

Treat those numbers as a starting point, not a rule. A busy, detailed photo hides compression well, while a smooth gradient or a picture with fine text shows it quickly. Change the setting, look at the preview at full size, and stop when you can just begin to see a difference, then step back one notch.

Step 4: compare size and appearance

Before downloading, look at the before and after. Zoom in on faces, edges and text, and check flat colour areas for banding. Also look at the numbers: if a result ends up larger than the original, as can happen when an already-optimised file is re-encoded, keep the original instead. TinyPixTools shows the size change for each file and keeps the original when compression would not help.

Common mistakes

A few habits cause most of the quality problems people report after compressing.

  • Compressing the same JPG repeatedly. Each lossy pass removes more detail, so always work from the original.
  • Converting a transparent PNG to JPG. The transparent area becomes a solid colour.
  • Using one quality value for everything. Photos, screenshots and logos need different settings.
  • Ignoring dimensions. A perfectly compressed 6000 pixel photo is still much heavier than a 1600 pixel one.
  • Uploading private images to unknown servers. Prefer tools that process files on your own device.

Compressing privately in your browser

TinyPixTools compresses images with your browser, on your own device, so the files are not uploaded anywhere. You can drop in many images at once, adjust the quality, check the preview and size change, and download the results one by one or as a ZIP. Large batches use your device memory, so very big sets may be faster in smaller groups.

Try it yourself