Two matching landscape prints compared with a loupe beside a laptop of photo thumbnails, illustrating image compression without visible quality loss in an image compressor.
AI-generated editorial illustration of two matching photo prints compared with a loupe. The scene is illustrative, not a product screenshot or a measured tool result.
guide

How to Compress a JPEG or PNG Without Visible Quality Loss

How JPEG, PNG and WebP compression work, when to resize instead of compress, how to choose quality or a KB target, and how to check the result.

Pixoate Team8 min read

Written by the Pixoate team. We check how each tool behaves before we describe it, and we date any prices or portal rules we quote.

A photo that is too heavy to email or upload can usually be made much smaller, and often without anyone noticing a difference. What decides the outcome is the order you work in and how you judge the result, not a single magic setting.

The sequence that works: resize to the pixel size you actually need, compress that copy, then look at it at actual size before you use it. This guide explains why each step matters, how JPEG, PNG and WebP behave differently, and how to tell a good result from a damaged one.

How compression works in each format

JPEG is lossy. It discards fine detail the eye is least likely to miss, and the quality number sets how much. Every time a JPEG is opened and saved again, it is compressed again, so always compress from the original and not from a copy of a copy.

PNG is lossless by nature, so it keeps every pixel and shrinks only by packing the data better. That limits how far a photo can go. In Pixoate's image compressor, PNG output is made smaller by reducing the number of colors. Flat graphics usually hold up, while photos and smooth gradients can show banding or speckle.

WebP can be lossy or lossless, and it often gives a lighter file than JPEG at a similar look. Some older software, email programs and upload forms still refuse it, so it suits places you control.

Resize first, then compress

A file has two ingredients: how many pixels it has, and how tightly they are compressed. A 4000 x 3000 photo shown in a 1200 x 900 slot carries about eleven times the pixels the slot can display. Compressing harder to make up for that costs more quality than simply sending the pixels that will be seen.

If you set no KB target, the compressor keeps your pixel dimensions. With a target, it lowers quality first and narrows the picture only when quality alone cannot fit the number. Resizing yourself keeps that decision in your hands. Use the image resizer to set the width, leave Maintain aspect ratio ticked, and keep its Quality slider high (it starts at 92) so the second save adds little loss. Let the compressor make the final cut.

Quality setting or target size

The compressor gives you two ways to say how small, and you use one at a time.

Quality slider. It runs from 10 to 100 and starts at 30, which is the High Compression preset. That is an aggressive starting point, so move it up before you judge the result. The presets are High Compression (30%), Medium (50%), Balanced (70%) and High Quality (90%). For "without visible loss", begin at Balanced or High Quality and step down only while the picture still holds up.

Target file size (KB). Type the number a form or inbox demands. The server looks for the highest quality that fits, between 10 and 95. If even the lowest quality is too big, it narrows the picture in 20% steps and tries again. If nothing fits, it returns the closest result, so check the size you actually got. A KB here is 1,024 bytes. While a target is set, the slider and presets are switched off.

Use the slider when you are judging by eye, and the target when someone else has set a limit.

Compress a photo in five steps

  1. Start from the original file, not a screenshot or a copy that has already been shared through a messaging app.
  2. If the picture is larger than it needs to be, resize it first.
  3. Open the image compressor and upload the file. Leave Target file size empty and pick Balanced (70%).
  4. Keep Output Format on JPEG for photos. It starts on JPEG for every upload except a GIF, including a PNG, so switch it to PNG when the picture has transparent areas, or to WebP when the destination accepts it. A JPEG has no transparency, so transparent areas turn white.
  5. Select See result and read the line that shows the original size, the new size and the percentage saved. Download it once the picture looks right.

If it is still too heavy, lower the quality one preset at a time rather than jumping to the smallest.

When WebP is worth it

Choose WebP when the file goes to a page you control, or to software you know accepts it. The PNG to WebP converter offers two modes. Lossless mode keeps every pixel and suits logos and screenshots with sharp text. With it switched off, a quality slider from 20 to 100 (starting at 90) suits photos and softly shaded artwork. Transparent areas carry over, and a size badge on the preview shows what you saved.

A photo that began as a JPG can go through JPG to WebP the same way. Lossless WebP is not always smaller than a well-packed PNG, so compare the size badge with your original file before you replace anything. If the destination rejects WebP, keep the JPEG or PNG.

Check the result at actual size

A thumbnail hides almost everything. Zoom to actual size (100 percent) and look at the same few spots in the original and the compressed copy:

  • Edges of text and thin lines. Compression leaves ringing or faint speckle around them.
  • Smooth areas such as sky, walls and skin. Look for blocky squares and visible bands.
  • Fine texture such as hair, fabric and foliage, which turns waxy first.
  • Transparent edges on a PNG. View them over a dark background.

The compressed copy does not carry camera details or location tags from your original, which is worth knowing before you share it. Keep the original beside the compressed file in case you need another size later.

Here is an invented example

Say a landlord's portal accepts photos up to 500 KB, and your phone photo is about 6 MB. You could type 500 into Target file size and stop there. A gentler route usually looks better. Resize the photo to something close to the slot it will fill, compress it at Balanced, and read the size line. If it lands at 800 KB, set the target to 500 and let the tool find the highest quality that fits. Then zoom in on a wall or a face, the places where blocks and banding appear first. If those look clean, you are done. If they do not, the portal's limit may simply be too tight for that photo, and a smaller crop of the subject will beat a harsher squeeze.

When it goes wrong

  • The size barely dropped. The file may already be well compressed, or it may be a PNG of a photograph. Try JPEG output, which suits photographs much better.
  • The picture looks mushy after two rounds. You probably compressed a copy of a copy. Go back to the original.
  • Transparent areas turned white. JPEG cannot store transparency, so keep PNG or WebP for that file.
  • The result is bigger than the original. Re-saving an already tight file can add overhead. Keep the original and skip the step.

Compression is a trade, and some images have little left to give. A photo with a lot of fine texture, such as foliage or fabric, shrinks less than a plain wall before it starts to show.

Related guides

If the file is headed to a store, improve Shopify product photos covers what else matters beyond file size. To choose between formats before you start, read JPG vs PNG.

Frequently asked questions

Can I compress the same JPEG more than once?

You can, but each pass discards more detail and the damage accumulates. Compress once from the original, using the setting you want. If the result is not right, go back to the original and try another setting.

Why does my compressed PNG look speckled?

PNG output is made smaller by reducing the number of colors, and photos or gradients need many colors. Switch the Output Format to JPEG or WebP for a photograph, or keep the PNG for flat graphics and logos.

Will compressing change my photo's width and height?

Not when you use the quality slider. With a KB target, the picture is narrowed only if quality alone cannot reach the number. The result screen and your file manager both show the final dimensions.

How small can I go before it shows?

There is no single number, because it depends on the picture. Flat images and photos with a lot of texture hide compression well, while smooth skies and skin show it first. Test your own image at actual size.

Start from the original, resize if it is oversized, then compress the JPEG or PNG and check it at actual size.

You may also like

Watch each transformation land

Every photo crosses the slash untouched and comes out the other side finished.