How to Compress Images Without Losing Quality (and Reduce Size in KB)

Resize to the size you need, pick the right format, use a moderate quality setting and compare. How to shrink JPG, PNG and WebP files, or hit an exact KB limit, without visible loss.

A mountain lake photo shrunk from 2.45 MB to 215 KB, shown next to the main ways to compress an image without visible quality loss

To compress an image without losing visible quality, do three things in order: resize it to the pixel dimensions you actually need, save it in a format that suits its content, and export at a moderate quality setting (around 80–85 for photos) before comparing it with the original. That combination routinely turns a multi-megabyte phone photo into a few hundred KB that looks the same on screen. The same steps also get an image under a fixed KB limit for a form or upload portal.

This guide explains what "without losing quality" really means, the steps that do the most work, and how to handle JPG, PNG, WebP and strict KB targets.

What "Without Losing Quality" Actually Means

There are two different promises hiding in that phrase.

Lossless compression stores the same pixels more efficiently. Decode the file and you get back exactly what you started with. PNG and lossless WebP work this way. It is ideal for logos, screenshots and archive copies, but it cannot shrink a photograph very much.

Visually lossless compression throws away detail your eye is unlikely to notice: tiny colour variations, fine noise, information in busy textures. JPG, lossy WebP and AVIF work this way. The file is genuinely different from the original, but at normal viewing size nobody can tell.

When people search for "compress image without losing quality", they almost always want the second kind: a much smaller file that looks the same. The rest of this guide focuses on getting there without crossing the line into visible damage.

File Size vs Pixel Dimensions

Two numbers describe how "big" an image is, and mixing them up causes most failed attempts.

Term Example What it means
Pixel dimensions 4000 × 3000 px How many pixels wide and tall the image is
File size 2.4 MB or 850 KB How much storage the file takes

A 4000 × 3000 photo contains 12 million pixels. A 1200 × 900 version contains about 1.1 million, roughly a tenth as many. Fewer pixels almost always means a smaller file, before you touch any quality setting.

Compression, by contrast, keeps the dimensions identical and changes only how efficiently those pixels are stored. You can compress without resizing, and you can resize without compressing, but the biggest savings come from doing both. For more on how pixels relate to print size and DPI, see what image resolution really means.

The Five Steps That Do Most of the Work

Step 1: Resize to the Size It Will Be Displayed

A photo straight from a phone is often 4000 pixels wide or more. A blog column might display it at 800–1200 pixels. Every extra pixel is data the visitor downloads and never sees.

Sensible starting widths for web use:

  • Full-width hero images: up to about 1920 px
  • Images inside an article: 800–1200 px
  • Product photos: 1000–1500 px (larger if you offer zoom)
  • Thumbnails and cards: 300–600 px

These are starting points, not rules. Match the image to your actual layout, and allow roughly double the displayed width if you want it sharp on high-density (Retina) screens. Use the Image Resize tool to scale by pixels with the aspect ratio locked. Our guide to resizing images without losing quality covers the details.

Do not shrink blindly, though. If the image will be printed or shown full-screen, keep more pixels.

Step 2: Choose the Format That Fits the Content

The format often matters more than the quality slider.

Image content Good choice Why
Photographs JPG or WebP Lossy compression handles smooth gradients and texture well
Logos, icons, flat graphics PNG (or SVG for vector logos) Keeps sharp edges and flat colour clean
Screenshots with text PNG or lossless WebP JPG creates fuzzy halos around text
Anything needing transparency PNG or WebP JPG has no transparency
Website images in general WebP, with JPG as the safe fallback Smaller than JPG at similar quality

The most common mistake is a photo saved as PNG. Because PNG is lossless, a photographic PNG is often several times larger than a good JPG of the same picture with no visible benefit. Converting it with PNG to JPG or JPG to WebP can cut the size dramatically before you change any quality setting. Google's own figures put lossy WebP at roughly 25–34% smaller than a comparable JPG (WebP documentation). For a full comparison, read PNG vs JPG vs WebP vs AVIF.

Step 3: Set a Moderate Quality Level

For JPG and lossy WebP, the quality slider controls how much detail is discarded. The scale is not linear, and "80" in one program is not exactly "80" in another, but as a rough guide:

Quality What you usually see Typical use
90–100 Indistinguishable from the original; file grows quickly Portfolio shots, master copies
80–89 No visible difference at normal viewing size Most web photos (the sweet spot)
70–79 Slight softening if you look closely Thumbnails, below-the-fold images
60–69 Faint blocks in skies and skin Small previews only
Below 60 Obvious artifacts Avoid for anything that matters

Above about 90, file size climbs steeply while visible improvement stops, so quality 100 is rarely worth it. Below about 70, problems start to show.

What shifts the threshold:

  • Content. Busy scenes (foliage, crowds, fabric) hide artifacts. Smooth areas (sky, skin, gradients) reveal them first.
  • Display size. A 300 px thumbnail survives a lower setting than a 1200 px feature image.
  • Text and edges. Screenshots and graphics show ringing around letters long before photos show damage.

Our free image compressor has a quality slider with a before/after view, and it runs in your browser, so your photos are not uploaded.

Step 4: Strip Metadata You Don't Need

Phone photos carry EXIF metadata: camera model, date, settings and often GPS coordinates. Removing it usually saves only a few KB (more if an embedded preview thumbnail is included), so treat it as a small extra rather than a main technique. The bigger reason is privacy: publishing a photo with GPS data can reveal where it was taken. The metadata remover shows what is stored and strips it.

Keep metadata on master copies if you rely on it for organising or copyright.

Step 5: Compare Before You Publish

Never judge an image by its file size alone. Open the original and the compressed version side by side at the size people will actually see them, then check the places damage appears first:

  • Faces, hair and skin tones
  • Small text, logos and product labels
  • Sky gradients and shadows (look for banding)
  • High-contrast edges (look for halos)

If you can spot a difference, raise the quality one notch. If you cannot, try one notch lower and check again. Stop at the lowest setting that still looks right.

Recognising Over-Compression

When a lossy image is pushed too far, the damage has recognisable signs:

  • Blocking: small square patches in smooth areas such as sky and skin
  • Ringing: halos or "mosquito noise" around sharp edges and text
  • Banding: smooth gradients turning into visible steps of colour
  • Smearing: fine textures like grass or fabric turning to mush
  • Colour shifts: reds and skin tones drifting slightly

Once these artifacts are baked into a file, compressing it again or "sharpening" it will not remove them. Go back to the original and export again with a higher setting.

Format-Specific Tips

Compressing JPG

Start from the highest-quality source you have, resize if needed, export once at 80–85, compare, and stop. Avoid opening and re-saving the same JPG repeatedly: each lossy save discards a little more detail and adds new artifacts. Keep a master copy and always export fresh from it.

Compressing PNG

First ask whether the image needs to be PNG at all. If it is a photo without transparency, JPG or WebP will be far smaller. If it is a logo, icon or screenshot, keep PNG but optimise it: strip metadata, and for simple graphics consider a reduced colour palette (8-bit PNG, up to 256 colours). Palette reduction works well for flat graphics and screenshots but causes banding in photos.

Compressing WebP

WebP has both lossy and lossless modes. Use lossy WebP at around 75–85 for photos and lossless WebP for graphics that need exact edges. Like any format, it is not automatically smaller for every image, so compare the output with a JPG version if size is critical. For the performance side, see why WebP images make websites faster.

How to Reduce Image Size in KB for a Strict Limit

Exam forms, job portals and KYC uploads often say something like "JPG only, under 100 KB" or "between 20 KB and 50 KB". The method is the same, but the order matters more.

  1. Read every requirement first: accepted format, maximum and minimum KB, and any required pixel dimensions. Meeting the stated dimensions matters as much as the KB number. Our guide to image sizes for online forms collects common specifications.
  2. Resize before compressing. Getting a 4000 × 3000 photo to 100 KB with compression alone usually wrecks it. At 600–1000 px wide, a photo reaches that size far more gracefully.
  3. Convert to JPG if the form asks for it, or if your source is a large PNG or HEIC.
  4. Compress toward the target, not past it. If the limit is 200 KB and your file is 190 KB and looks good, stop. Squeezing it to 80 KB gains nothing and costs detail.
  5. Check faces and text before you submit. Signature scans and documents need legible strokes.

The compress image to size tool lets you type a target such as 50 KB and finds the quality setting for you. There are also one-click presets, for example compress to 100 KB and compress to 50 KB.

A worked example: a 2.4 MB phone photo must be under 100 KB. Resize it to about 800 px wide, export as JPG at around 80, and check the size. If it lands at 110 KB, a small drop in quality or a slightly smaller width is usually all that is left to do. If you are a student preparing assignments and applications, our list of free online image tools for students puts these tools in one place.

A Repeatable Workflow

For most everyday images, this sequence works:

  1. Keep the original as a master copy.
  2. Decide where the image will be used and how large it will appear.
  3. Resize to those dimensions.
  4. Pick the format based on content (photo, graphic, transparency).
  5. Export at a moderate quality.
  6. Strip metadata if you don't need it.
  7. Compare with the original at the real viewing size.
  8. Save the optimised copy under a separate name.

If you have a whole folder of product photos or blog images, bulk compress handles up to 100 images at once and gives you a ZIP. For websites, also serve different sizes to different screens using responsive images; web.dev's Learn Images course explains srcset and sizes clearly. Our image optimization guide for websites covers lazy loading and delivery.

Common Mistakes

  • Choosing the lowest quality setting. The smallest file is not the best file if it looks damaged.
  • Compressing a huge image without resizing. You are still shipping millions of pixels nobody sees.
  • Saving over the original. You lose the ability to make a better version later.
  • Saving photos as PNG or screenshots as JPG. Each format suits a different kind of content.
  • Converting everything to WebP without checking. Usually smaller, not always. Compare.
  • Stacking compression. If your CMS or plugin also compresses uploads, a pre-compressed image can be compressed a second time. Check what your platform does and avoid double processing.

Frequently Asked Questions

Can you compress an image without losing any quality at all?

Yes, with lossless compression (PNG, lossless WebP), but the savings on photos are small. What most people want is visually lossless compression: some data is discarded, but at normal viewing size you cannot see the difference.

What JPG quality setting should I use?

Start around 80 to 85 for photos and compare with the original. Quality numbers are not identical between programs, so treat them as a starting point and judge the result with your eyes.

Can I reduce a 2 MB photo to 200 KB?

Usually, yes. Resize it to the dimensions you actually need first, then compress. Relying on compression alone to remove 90 percent of the data tends to produce visible blocks and blur.

Does compressing an image reduce its resolution?

No. Compression changes how efficiently the pixels are stored; the width and height stay the same. Resizing is the step that changes pixel dimensions.

Why does my JPG get worse every time I save it?

Each lossy save discards a little more data and adds new artifacts. Keep an original master file and export the compressed copy from it once, instead of re-saving the same JPG.