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 control— Free, side-by-side preview, no uploadPNG 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 losslessly— No quality loss, freeWebP 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 WebP— 25-35% smaller than JPEG, freeWhen 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 image— Resize before compressing for maximum reductionStep-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?
What is the best quality setting for web images?
Why does my image look blurry after compression?
How much can I reduce file size without visible loss?
Is it bad to compress an image multiple times?
Should I compress images before or after resizing?
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.