Skip to content

How to Compress Images Without Losing Quality

How-To9 min readApril 22, 2026By LevnTools Editorial
Table of Contents

"Losing quality" means different things depending on the format. For JPEG, it means lossy compression artifacts — the blocky patterns and colour halos that appear when quality is pushed too low. For PNG, quality loss is impossible (PNG is lossless by definition) but file size can still be reduced through palette optimization. For WebP, the quality slider works like JPEG but achieves smaller files at equivalent settings.

The practical goal is not zero quality loss — it is imperceptible quality loss: files as small as possible while looking identical to the original at normal viewing sizes. This guide gives you the exact quality numbers for each format, explains when resizing is more effective than compression, and walks through a step-by-step workflow using the tool below.

What Quality Loss Actually Means

Quality loss in image compression is not a binary — it exists on a spectrum. The human visual system has well-understood limitations that compression algorithms exploit:

We are more sensitive to luminance (brightness) than chrominance (colour). JPEG compression discards colour detail at a higher rate than brightness detail. The result is that compressed images can lose significant colour accuracy while appearing unchanged.

We are less sensitive to fine detail in textured areas. Compression aggressively discards detail in complex textures (grass, fabric, hair) because our eyes integrate these as patterns rather than individual elements. The same level of compression on a smooth gradient (sky, skin) is much more visible.

Context size matters. A compression artifact visible when you zoom to 200% is invisible at normal 100% viewing size. The practical quality standard is "indistinguishable at normal viewing size," not "indistinguishable under magnification."

This is why the quality settings below specify ranges — the right number depends on the content and how large it will be displayed.

Lossy vs Lossless: The Core Concept

Lossy compression (JPEG, WebP lossy, AVIF) permanently discards image data. The data is gone after saving — you cannot recover it even if you increase the quality setting afterward. Each save of a lossy-compressed image can introduce additional degradation if re-saved at the same or lower quality setting.

Lossless compression (PNG, WebP lossless, GIF) rearranges data more efficiently without discarding anything. Decompressing a losslessly compressed image produces bit-for-bit identical output to the original. You can re-save losslessly compressed images indefinitely without quality change.

The workflow implication: Always keep your master files in a lossless format (PNG or uncompressed TIFF). Export to JPEG or lossy WebP as the final step. Never re-save a JPEG and expect the same quality.

JPEG Quality Settings: The Exact Numbers

JPEG quality is reported on a 0–100 scale (some tools use 0–10 internally and convert). The relationship between quality setting and visible artifact level is not linear — differences in the 60-80 range are perceptible; differences above 90 are often not.

85–90%: Near-lossless. For photographs where quality is paramount: portfolio sites, client deliverables, print-ready exports. Artifacts exist mathematically but are invisible to the naked eye at normal viewing sizes. File sizes are approximately 40–50% smaller than uncompressed.

75–85%: The web standard. The correct setting for the vast majority of web images — product photos, hero images, blog illustrations. Most viewers cannot distinguish 85% JPEG from uncompressed. File sizes are 55–65% smaller than uncompressed.

60–75%: Aggressive compression. For thumbnails, previews, and images displayed small. Artifacts are visible under close inspection at actual size but not at thumbnail sizes. File sizes are 70–80% smaller than uncompressed.

Below 60%: Heavy artifacts. Acceptable only for placeholder images, blurred backgrounds, or situations where bandwidth is critical and quality is not. Block artifacts and colour halos are clearly visible.

The practical default: Start at 80%. Examine the result at 100% zoom for artifacts around text and high-contrast edges. If clean, try 75%. Stop when artifacts become visible.

Compress your JPEG with quality controlFree, side-by-side preview, no upload

PNG Compression: What Lossless Actually Reduces

PNG is lossless — no pixel data is ever discarded. But PNG files can still be made smaller by:

Compression level optimization. PNG uses DEFLATE compression (same algorithm as ZIP files). Higher compression levels take longer to encode but produce smaller files. The compressed output decompresses to identical pixels regardless of compression level.

Colour palette reduction (PNG-8). If an image uses 256 or fewer colours, converting from PNG-24 (16.7M colours) to PNG-8 (256 colours max) can reduce file size by 50–70%. This is appropriate for simple graphics with flat colours: icons, logos with limited colour palettes, simple illustrations. Not appropriate for photographs or gradients.

Metadata removal. PNG files often embed camera metadata, colour profiles, and tool-generated data that adds 10–30KB without visible effect. Stripping metadata is safe for web use.

The result: PNG compression without quality loss can achieve 20–40% size reduction through better compression algorithms and metadata removal alone. Combined with palette reduction for appropriate images, 50–70%.

Compress PNG files losslesslyNo quality loss, free

WebP Compression Advantages

WebP at a given quality setting produces smaller files than JPEG at the same setting, with equivalent or better visual quality. The key comparisons:

  • WebP quality 75 ≈ JPEG quality 85 in perceived quality, with 25-35% smaller file size
  • WebP quality 80 is the practical web standard — the equivalent of JPEG quality 90

WebP also supports lossless mode. WebP lossless produces files approximately 26% smaller than equivalent PNG on average — making it the best lossless format for web use (SVG aside).

The quality settings for WebP follow the same principles as JPEG:

  • 80–85%: High quality, web standard, invisible artifacts
  • 70–80%: Good quality, moderate compression
  • 60–70%: Aggressive, visible artifacts on close inspection
  • Below 60%: Significant quality loss

When to use WebP lossless vs lossy: Lossless for images that need transparency with perfect edge quality (logos, UI elements). Lossy for photographs where some quality loss is acceptable.

Convert to WebP25-35% smaller than JPEG, free

When to Resize Instead of Compress

Compression adjusts how much data is discarded for a given set of pixels. Resizing reduces the number of pixels. Sometimes resizing achieves better results than compression alone.

Signs that resizing is the right approach:

  • The image is displayed at 400×300 but was uploaded at 4000×3000 (10× more pixels than needed)
  • The file size is still large after aggressive compression (suggests the image is simply too big)
  • The image is used as a thumbnail but the source is full-resolution

The scaling rule: An image displayed at maximum 800px wide has no benefit from being stored wider than 800px (or 1600px for high-DPI screens). Every pixel beyond that is wasted bandwidth.

The compound approach: For a 4000×3000 photograph being used as a 600×400 thumbnail, resize to 1200×800 (2× for high-DPI) first, then compress. Resizing reduces pixel count by 90%, which compression alone cannot approach.

Resize imageResize before compressing for maximum reduction

Step-by-Step Compression Walkthrough

Step 1: Identify the use case

Determine the maximum display size. A hero image might be 1440px wide; a product thumbnail might be 400px. If the image exceeds the display size significantly, resize first.

Step 2: Choose the format

  • Photograph without transparency → WebP or JPEG
  • Image with transparency → WebP or PNG
  • Logo or icon → SVG (if available) or PNG

Step 3: Set the quality level

Start at 80% for lossy formats. Preview at 100% zoom, focusing on text, edges, and flat colour areas. Reduce to 75% if file size is still too large. Stop if artifacts become visible.

Step 4: Compare before downloading

Use the side-by-side preview to verify the compressed version matches the original at normal viewing size. Pay attention to sharp edges and any text in the image.

Step 5: Check the file size

The tool shows original and compressed file sizes. A 50% reduction at quality 80 is typical for JPEG photographs. If you need more reduction, lower quality or resize the image dimensions.

All steps run in your browser. No files leave your device.

Frequently Asked Questions

Can I compress an image without any quality loss at all?
Only losslessly compressed formats allow zero quality loss. PNG and WebP lossless can be re-compressed at higher efficiency with zero pixel change — typically 20–40% smaller. For JPEG and WebP lossy, some quality loss is inherent to the format. The goal for web use is imperceptible quality loss — files compressed to where artifacts are invisible at normal viewing size.
What is the best quality setting for web images?
For JPEG, 75–85% is the web standard — most viewers cannot distinguish this from uncompressed at normal display sizes. For WebP, 75–80% achieves equivalent quality at 25-35% smaller file size. Start at 80%, check for artifacts around edges and text, and reduce further if the file size is still too large.
Why does my image look blurry after compression?
Blurriness after compression usually indicates the quality setting was too low, causing the algorithm to discard too much high-frequency detail. Raise the quality setting (try 80–85%) and check the result. Blurriness can also indicate the image was resized up (upscaled) before compression — always resize down, not up.
How much can I reduce file size without visible loss?
For JPEG photographs, 60–70% reduction at quality 80 is typical with no visible artifacts at normal viewing size. WebP achieves similar quality at 25-35% smaller files. PNG lossless compression achieves 20–40% reduction with zero quality change. The exact reduction depends on image content — smooth gradients and complex textures compress differently.
Is it bad to compress an image multiple times?
For lossy formats (JPEG, WebP lossy), yes. Each compression cycle discards additional data. Re-saving a JPEG at the same quality setting introduces new artifacts because the algorithm re-processes data that was already degraded. Always compress from the original source file, not from a previously compressed version.
Should I compress images before or after resizing?
Resize first, then compress. Resizing to the display dimensions eliminates pixels that will never be seen, which compression cannot match in efficiency. After resizing, compression reduces the remaining file size further. Compressing first then resizing is less efficient and the resize step may introduce its own resampling artifacts.

Summary

The practical compression workflow for any web project: choose WebP as the default format for new images (25-35% smaller than JPEG at equivalent quality), use PNG only when lossless precision or transparency is genuinely needed, and resize images to their actual display dimensions before compressing.

For the quality setting, 80% is the pragmatic starting point — reduce only if the file size is still too large, stop when artifacts become visible. The before-and-after preview in the tool makes this judgment straightforward.

All compression tools on this site run entirely in your browser. Your images are never uploaded to any server.

Try these tools

Related guides

All Guides