Skip to content
How-to

How to Compress Images Without Losing Quality

One real 2.02 MB photo compressed at quality 90, 80, 75 and 60, with the exact sizes β€” plus when to use JPG, PNG or WebP, and what lossless really means.

By PixelToolsPublished 6 min read

Photos are too big to email, too big for upload forms, and too big for a web page β€” but nobody wants to trade a sharp photo for a blurry one. This guide shows you exactly where the trade-off sits, with real numbers from a real file run through PixelTools' free Image Compressor. No slider screenshots and no promises: the sizes below are the exact bytes the tool's settings produced.

The test: one photo, four quality settings

The test file is a 1,600 Γ— 1,200 photo-like image with a sky gradient, hills, a tree and fine grain throughout, saved as a PNG so the starting point is uncompressed: 2,120,917 bytes (2.02 MB). It was compressed as JPEG at quality 90, 80, 75 and 60, keeping the original 1,600 Γ— 1,200 dimensions β€” the same quality values the Image Compressor's slider applies (its default is 80). To reproduce these numbers, select JPEG as the output format first: the tool keeps PNG output for PNG uploads by default, and a PNG re-save of this file comes out at 2,180,755 bytes (2.08 MB) β€” slightly larger than the original. Measured 21 November 2026 in the live tool itself (browser canvas encoding), so re-running the file there gives these exact sizes.

  • Original PNG, 1,600 Γ— 1,200: 2,120,917 bytes (2.02 MB)
  • JPEG quality 90: 619,593 bytes (605.1 KB) β€” 70.8% smaller
  • JPEG quality 80 (the tool's default): 353,963 bytes (345.7 KB) β€” 83.3% smaller
  • JPEG quality 75: 276,260 bytes (269.8 KB) β€” 87.0% smaller
  • JPEG quality 60: 167,699 bytes (163.8 KB) β€” 92.1% smaller
  • WebP quality 80, for comparison: 390,972 bytes (381.8 KB)
  • PNG re-saved losslessly, same dimensions: 2,180,755 bytes (2.08 MB) β€” 2.8% larger than the original

Two things stand out. First, quality 80 is the sweet spot for most photos: it cut this file to one-sixth of its size, and at normal viewing size the result is indistinguishable from the original. Quality 90 keeps a little more fine detail but costs almost twice the bytes of quality 80. Second, dropping below 75 buys less than it costs β€” quality 60 saved only another 106 KB over quality 75, and that is where grain and edges start to smear. If you can see the difference at 100% zoom, the saving is not worth it.

What 'lossless' really means

Lossless means every pixel comes back exactly as it went in β€” nothing is thrown away. PNG is lossless, which is why the test file actually grew from 2.02 MB to 2.08 MB when re-saved as PNG: the pixels are preserved, so the size barely moves β€” and the browser's PNG encoder is less efficient than the file's original encoding, so it can even grow. JPEG is lossy: every save discards detail the encoder judges you will not notice, and that detail never comes back. 'Visually lossless' is different β€” it means the loss is there, but you cannot see it. Quality 80 to 90 on a photo is visually lossless for most people at normal size; quality 60 is not. And a JPEG can never be losslessly re-compressed: saving a JPEG again, even at quality 100, loses more detail each time.

JPG vs PNG vs WebP: which format to pick

  • JPG for photos: the smallest files for photographs, at the cost of no transparency. Use quality 75 to 90. Pick JPG when the destination is an upload form, email or anything that might not accept newer formats.
  • PNG for graphics and transparency: screenshots, logos, diagrams and anything with text or sharp edges. Lossless, and it keeps transparency β€” but a poor choice for photos, as the test shows (2.08 MB vs 346 KB).
  • WebP for the web when it is accepted: usually smaller than JPG and it supports transparency. But it is not automatically smaller β€” in our test WebP at quality 80 was 390,972 bytes, larger than JPEG at quality 80 (353,963 bytes) for this grainy image. Check the actual bytes instead of assuming.
  • If the destination accepts WebP, try both formats at the same quality and keep the smaller file. If it does not say, use JPG.

Hitting a size target: 20, 50 and 100 KB

The Image Compressor also lets you set a target size instead of a quality β€” 20, 50 or 100 KB presets, or any custom value (1 KB = 1,024 bytes here). A target is a best effort, not a guarantee: the tool first searches quality settings down to a 35% floor, then shrinks the dimensions in 80% steps, up to six attempts. Running the same test photo through the tool's target search gave these exact results:

  • 100 KB target: 98,824 bytes (96.5 KB), still 1,600 Γ— 1,200 β€” target reached
  • 50 KB target: 50,166 bytes (49.0 KB), resized to 1,280 Γ— 960 β€” target reached
  • 20 KB target: 20,340 bytes (19.9 KB), resized to 819 Γ— 614 β€” target reached

Notice the pattern: the 100 KB target was met by lowering quality alone, but the 50 and 20 KB targets also needed smaller dimensions. That is the honest trade-off β€” below a certain size, no quality setting is enough, and pixels have to go. If a target cannot be met within the quality floor and the dimension steps, the tool says so instead of handing you a file that misses the target.

How to compress your own image

  1. 1Open the Image Compressor and choose a file β€” JPEG, PNG, WebP, GIF or BMP, up to 25 MB and 25 megapixels. Your file never leaves your browser.
  2. 2Pick the output format: JPEG for photos, PNG for graphics or transparency, WebP when the destination accepts it.
  3. 3Set the quality β€” start at 80 β€” or pick a 20, 50 or 100 KB target instead.
  4. 4Click Compress image and read the result: the tool reports the exact output bytes, the dimensions, the percentage saved, and whether your target was reached.
  5. 5Zoom the preview to 100% and check faces, text and fine detail, then download. If it looks soft, go back to the original and try a higher quality β€” do not re-compress the compressed file.

What the Image Compressor cannot do

  • It cannot make a JPEG lossless. Every JPEG save discards detail permanently, so keep your original file.
  • It cannot guarantee a size target. Quality stops at a 35% floor and dimensions shrink in steps; on a very detailed image a small target may be impossible, and the tool will tell you the target was not reached.
  • It cannot keep animation: an animated GIF or WebP becomes a single still frame.
  • It cannot keep transparency in JPEG output β€” transparent areas become white. Use PNG or WebP if transparency matters.
  • It compresses one file at a time, and it cannot fix a blurry or low-resolution original. Compression removes data; it never adds detail back.

The rule that covers all of it: compress from the original, check the result at full size, and keep the original somewhere safe. Used that way, quality 80 will handle almost every photo you need to send, upload or publish β€” at roughly one-sixth of the size you started with.

Frequently asked questions

Start at 80, which is the Image Compressor's default. Use 90 when you want to keep the photo looking its best, 75 for everyday web uploads, and 60 only when file size matters more than fine detail. Whatever you pick, zoom the result to 100% and check faces, text and edges before you use it.

PNG output is lossless, so no pixels change β€” but for photos it barely shrinks the file. In our test a 2.02 MB photo re-saved as PNG came out at 2.08 MB β€” slightly larger than the original, because the browser's PNG encoder is less efficient than the file's original encoding. Use PNG for screenshots, logos and images with transparency, and JPEG or WebP for photos.

Yes, but every JPEG save throws away more detail, so the second pass costs quality for a smaller saving. Always compress from the original file, never from an already-compressed copy.

The Image Compressor accepts one file at a time: JPEG, PNG, WebP, GIF or BMP, up to 25 MB and 25 megapixels. Animated images become a single still frame, and JPEG output replaces transparency with white.

Free, in your browser β€” no account needed

Popular

Image Resizer

Resize images to exact dimensions or social media presets.

Try tool