← All posts

How to compress an image without visible quality loss

How to compress an image without visible quality loss

You fill in a form, attach your photo, and get told it's too big. The limit is 200 KB and your picture is several megabytes. You can fix that in a minute, but the setting you choose makes a big difference to how the photo looks afterwards.

The mediatoolex image compressor makes JPG, PNG and WebP files smaller in your browser. To show what really happens, I ran one detailed photo through it: a fishing boat in a harbour, 4392 × 3052 pixels, 6.97 MB. The cover above is a slightly trimmed copy. All the file sizes below come from the compressor itself, run in Chrome. Your photos and browser will give different numbers.

Privacy: your photo is compressed on your own device. It's never uploaded.

How to compress an image

Step 1: Choose your image

Open the image compressor and click Choose Images, or drag pictures onto the page. You can add up to 50 at once.

The image compressor with the Choose Images button highlighted

Step 2: Set the quality

Compression starts as soon as you add a picture, with Quality at 75%. Move the slider and the picture is compressed again from your original, so you can try different settings freely.

The compression settings with the Quality slider at 75% highlighted

Step 3: Download

Each file shows its size before and after. At 75%, my photo went from 6.97 MB to 1.17 MB, 83% smaller, with the same width and height. Click the download button to save it. With several pictures, use Download all (ZIP).

A finished file showing 6.97 MB down to 1.17 MB, with the download button highlighted

How low can the quality go?

Here is the same small part of the photo, cut from the original and from three compressed copies:

Four crops of the boat's winch: the original, 75%, 40% and 10% quality. The 10% crop has blocks and colour patches.
Pinch or zoom in to compare. At 75% it's hard to tell apart from the original. At 10% there are clear blocks and patches of colour.

These are the sizes of the whole photo at different settings:

  • 95%: 3.29 MB
  • 90%: 2.17 MB
  • 85%: 1.66 MB
  • 75%: 1.17 MB
  • 60%: 879 KB
  • 40%: 642 KB
  • 20%: 390 KB
  • 10%: 227 KB

Going from 95% to 75% removed about two thirds of the file. Below 75%, you save much less in megabytes, while the damage gets easier to see. For most photos, start at 75%. If you can spot a problem when you zoom in, move up to 85%.

How to get a photo under 200 KB

When a site gives you a limit, you don't have to guess with the slider. Switch Compress by to Target size, then click 200 KB or type your own number. The compressor looks for the best quality that fits.

There's one catch with large photos. The compressor keeps your picture's width and height if it can fit the limit that way, even if it has to push the quality very low. My photo came out at 191.5 KB, still 4392 × 3052, and it looked rough up close.

The fix: set Longest side as well. I chose Full HD (1920 px) and kept the 200 KB target.

Target size set to 200 KB and Longest side set to Full HD (1920 px), both highlighted

The result was 1920 × 1334 and 199.6 KB. To compare the two fairly, I viewed both at 1920 pixels wide and enlarged the same area:

The same part of two files of about 200 KB. The full-size one has blocky water and flat patches. The 1920 pixel one is much smoother.
Almost the same file size. Look at the water, the cloth and the blue wheels.

Fewer pixels means each remaining pixel gets more of the file's space. If the picture will be viewed on a screen or attached to a form, 1920 px is often more than enough. Keep your original if you might print it large or crop it later.

With smaller limits, this happens even more. When I asked for 100 KB without setting a longest side, the compressor couldn't fit the full-size photo, so it shrank it to 1151 × 800 pixels on its own and told me so under the file. At 50 KB it went down to 737 × 512. If a form also asks for a certain width and height, use the image resizer and check the file size afterwards.

Lower quality or fewer pixels?

These are two different ways to make a file smaller:

  • Lower quality keeps the width and height but stores less detail.
  • Fewer pixels makes the picture itself smaller, so you can't zoom in as far.

You can use both. At 75% with the longest side set to 1920 px, my photo came to 286.1 KB. That's about a quarter of the size of the 1.17 MB full-size copy.

What about PNG and WebP?

PNG is lossless, which means it keeps every pixel as it is. The quality slider can't shrink it. If you keep it as PNG, a target size works by reducing the width and height. It's commonly used for screenshots and graphics with sharp text. JPG vs PNG explains when to use each.

WebP is worth trying when the place you're sending the picture accepts it. Choose it under Save as, if your browser offers it. At the 75% setting, my photo was 647.5 KB as WebP and 1.17 MB as JPG. The two formats don't measure quality the same way, so the same number doesn't promise the same look. Compare them by eye.

I also tried a small screenshot of the compressor's settings, saved as a 45.4 KB PNG:

  • Kept as PNG: no saving. The compressor said the file was already optimal and kept the original picture.
  • Saved as JPG at 75%: 37.2 KB, 18% smaller.
  • Saved as WebP at 75%: 15.7 KB, 66% smaller.

JPG and WebP at this setting can change fine edges, so zoom in on any text before you use them. JPG also has no transparency: see-through areas turn white.

Tips for better results

  • Always start from the original. Saving an already compressed JPG again can lose more detail and can't bring any back. When I compressed my 1.17 MB result again at 75%, it saved less than 1 KB.
  • Keep a copy of the original. Once detail is gone from the smaller file, you can't recover it from that file.
  • Zoom in before you send it. Check faces, small text, and smooth areas such as sky or water.
  • Know that hidden data is removed. The compressor strips details such as location and camera information from the copy it makes. Your original file isn't changed.
  • Check which KB your form means. The compressor counts 1 KB as 1,024 bytes. Some sites count 1,000. If a file just under the limit is rejected, set a slightly lower target, such as 190 KB.

Keep going

Need an exact width and height, or want to crop first? Read how to resize an image. Only working with one format? There are separate pages to compress JPG and compress PNG.

Boat photo by Jebulon, Wikimedia Commons, CC0. Shown cropped and compressed.