Skip to content
Toolbox

Images & PDF

How to Compress Images Without Losing Visible Quality

Learn what makes image files big, which size, quality and format settings work for email, forms and websites, and how to shrink photos step by step.

Published · 5 min read

A photo taken on a modern phone can easily weigh several megabytes. That is fine on the phone, but it causes trouble the moment you try to attach it to an email, upload it to a government form or put it on a web page. The good news is that most photos can be made five to ten times smaller with no change you would notice by eye. This guide explains why, and shows how to get there without guesswork.

What actually makes an image file large

Three things decide the size of an image file: how many pixels it has, how hard the file format squeezes them, and how much detail the picture contains.

Pixel count comes first. A 4000 × 3000 photo has 12 million pixels. If every pixel were stored as three raw color values, the picture would take about 36 million bytes. Formats such as JPEG and WebP shrink that number dramatically, but the starting point still matters: a picture with half the width and half the height has only a quarter of the pixels, so it ends up far smaller.

Detail is the second factor. A photo of grass, leaves or a crowd is full of fine texture and compresses poorly. A photo of a clear sky or a plain wall compresses very well. This is why two photos with identical dimensions can have very different file sizes.

Lossy and lossless compression

Lossless compression, used by PNG, makes the file smaller without throwing away any information. When you open it, every pixel is exactly as it was. Lossy compression, used by JPEG and WebP, discards fine detail that the human eye is unlikely to miss. You choose how aggressive it is with a quality setting.

For photographs, lossy compression is almost always the right choice. The saving is large and, at sensible settings, the loss is invisible at normal viewing size. For screenshots, logos and graphics with sharp edges or text, lossless PNG usually looks cleaner, because lossy compression can leave faint smudges around letters.

Reduce the size first, then the quality

The most common mistake is to keep the original dimensions and push the quality slider very low. The result looks blotchy and is still bigger than it needs to be. A better order is:

  1. Decide how large the picture will really be shown. A photo inside an article column rarely needs to be wider than about 1200 pixels, and a full-screen background on a typical laptop rarely needs more than 1920.
  2. Resize to that width.
  3. Then compress with a moderate quality setting.

Resizing is the biggest single saving, and it costs you nothing you could have seen anyway. If a picture will be displayed 800 pixels wide, the extra 3,000 pixels in a 4000-pixel original are never visible.

Which format should you pick

JPEG works everywhere and is a safe default for photographs. WebP usually produces smaller files at similar quality and is supported by all current browsers, which makes it a good choice for websites. PNG is best kept for graphics, screenshots and images that need a transparent background. Saving a photograph as PNG is one of the easiest ways to end up with a file ten times larger than necessary.

Step by step with the Image Compressor

Our free Image Compressor does all of this inside your browser, so your pictures are not uploaded anywhere.

  1. Open the tool and choose up to ten images.
  2. Pick a maximum width. Start with 1920 pixels for large photos or 1280 for pictures used inside pages.
  3. Set the quality to somewhere between 70 and 80 percent. Most photos look the same as the original in this range.
  4. Choose JPEG for maximum compatibility or WebP for smaller files.
  5. Press the compress button and compare the old and new sizes in the list, then download the files you want.

If you only need a particular pixel size, for example exactly 600 × 400 for a form, the Image Resizer lets you type the width and height and keeps the proportions locked unless you turn that off.

Target sizes for common situations

Different places have different limits, and they change over time, so always check the rule shown on the page you are using. As a rough guide:

  • Email: providers commonly limit the total size of attachments to somewhere around 20 to 25 megabytes, and the recipient's server may be stricter. Compressing each photo to under one megabyte lets you send many at once.
  • Online forms: some portals ask for pictures under a few hundred kilobytes, and some for even less. Resize to a small width first, then lower the quality a little at a time until the file fits.
  • Websites: pages load faster when images are small. For most pictures inside articles, a few hundred kilobytes is plenty, and often much less is enough.

Mistakes to avoid

  • Compressing the same file again and again. Each lossy save loses a little more detail. Always compress from the original and keep that original safe.
  • Enlarging a small picture afterwards. Making an image bigger cannot bring back detail that is gone. It only makes the blur larger.
  • Using JPEG for text screenshots. Letters get fuzzy halos. Use PNG for those.
  • Forgetting about the original. Compressed copies are for sharing. Keep the full-size version if you might want to print it or edit it later.

A small privacy note: when a picture is redrawn and saved again in the browser, extra information stored in the original file, such as camera details or the location where a photo was taken, is not carried over to the new file. If you need that information to stay, check the result before relying on it.

A quick checklist

Before you send or publish a picture, ask yourself three questions. Is the width no larger than it will be displayed? Is it saved in the right format for what it shows? Does it look fine at normal size after compression? If the answer to all three is yes, you are done, and your file is almost certainly a fraction of the size it started as.

Try it yourself

Free, private and it runs in your browser.

More guides