Best Image Compression Settings for Web (Without Visible Quality Loss)

Why Image Compression Matters

Images are the heaviest assets on almost every website. According to the HTTP Archive, images account for roughly 50% of the average page's total weight. Google's Lighthouse flags unoptimized images as a top performance issue — and with Core Web Vitals (particularly LCP — Largest Contentful Paint) now a direct ranking factor, bloated images don't just annoy users, they hurt your SEO.

The good news: properly compressed images look identical to the naked eye but load 3–10× faster. You don't need to choose between quality and speed — you just need the right settings and the right workflow. This guide covers both.

Understanding Quality Settings

JPEG and WebP use a quality scale from 0–100. Our compressor slider maps directly to the browser's encoder — 100% is near-lossless, lower values produce smaller files. However, quality numbers are encoder-specific: JPEG at 60% is not visually equivalent to WebP at 60%, and even two browsers can produce different results.

Image compression comes in two types:

For web use, lossy compression is almost always the right choice. The key is knowing where the quality threshold is. Our tool shows an orange mark on the quality slider — it estimates your original's quality from its file size, so you know where you're starting from. For detailed format benchmarks, see our format comparison guide.

Recommended Settings by Use Case

🌐 Websites & Blogs

This is the most common use case. Here's the quality breakdown by image role:

Image RoleQualityFormatMax WidthTarget Size
Hero / banner85–92%WebP1920px (2560px retina)Under 300KB
Content / blog75–85%WebP1200pxUnder 150KB
Thumbnails / grid70–80%WebP400–600pxUnder 50KB
Screenshots, textPNGAs neededUnder 200KB

WebP is the recommended format for web photos. It produces files 25–35% smaller than JPG at the same visual quality, and 96%+ of browsers support it today (Chrome, Firefox, Safari 14+, Edge). Serve WebP to modern browsers with a JPG fallback using the <picture> element:

<picture>
  <source srcset="photo.webp" type="image/webp">
  <img src="photo.jpg" alt="Description" width="1200" height="800">
</picture>

This gives you the best of both worlds — small files for 96% of users, compatibility for the remaining 4%. Use JPG directly only when you need maximum compatibility (email attachments, legacy CMS, government portals).

📱 Social Media

PlatformRecommended SizeQualityMax File Size
Instagram Post1080×1080 (1:1)85%Under 1MB
Instagram Story1080×1920 (9:16)85%Under 1MB
Facebook Post1200×63080%Under 1MB
Twitter Post1200×675 (16:9) (community-recommended size; X does not publish an official dimension)80%Under 5MB
LinkedIn Post1200×62780%Under 5MB

For a complete Instagram sizing guide, see our dedicated post: How to Resize Images for Instagram.

📧 Email

🖨️ Print

How to Compress Images Without Visible Quality Loss

Step 1: Start with the Right Source

Always compress from the highest quality original. Don't re-compress an already compressed image — each generation of lossy compression discards more data, and you can't recover what's already lost. The orange mark on the quality slider helps you spot pre-compressed images: if it shows 40%, your original was already heavily compressed, and further compression will quickly degrade quality.

Step 2: Resize, Then Compress

This is the step most people skip — and it's the most impactful. A 4000px-wide photo from your camera compressed to 80% quality is still a large file because you're compressing 12 megapixels. Resize to your site's actual display width first:

Resizing alone can reduce a 5MB camera photo to 300KB — a 94% reduction before you even touch the quality slider. Use our Image Resizer for this step, then send the result to the compressor.

Step 3: Compress at the Right Quality

Try our free image compressor which processes files locally in your browser:

  1. Select your image — an orange mark appears on the quality slider showing your original's estimated quality. Always drag below the orange mark — if you stay above it, the file may get larger instead of smaller.
  2. Set quality to 80% in WebP format (recommended starting point). This typically cuts file size by 50–70% while looking identical at normal viewing distance.
  3. Preview the result with the split-view comparison or pixel diff heatmap (see screenshots below).
  4. If quality looks good, download. If not, adjust by 5% and try again.
PixKeep Image Compressor split view — original image on the left, compressed version on the right with a draggable slider for pixel-level comparison
Split view comparison — drag the slider to see exactly what changes when you compress. The original is on the left, the compressed result on the right.

Step 4: Verify the Result

Compare the original and compressed versions side-by-side at 100% zoom. Look for:

Pixel diff heatmap — areas highlighted in red/yellow show where compression changed the image, blue areas are identical to the original
The Diff Heatmap mode highlights exactly which pixels changed. Red/yellow = noticeable changes, blue = identical to the original. Switch to Diff mode and use the Amp (amplification) slider at 5× to reveal even the tiniest compression artifacts.

If the diff heatmap is essentially a solid gray rectangle (meaning no pixel differences), your compression is perfect. If you see colored blotches in important areas, increase quality by 5% and re-compress. This verification step takes 10 seconds and guarantees you never ship an over-compressed image.

Step 5: Check Your Size Targets

Google Lighthouse flags images over 100KB as optimization opportunities. After following the resize→compress→verify pipeline, aim for these targets:

If you're over these targets, try dropping quality by 5% or reducing dimensions slightly. Run your site through Google PageSpeed Insights after optimizing — pay attention to the mobile score, which is what Google uses for ranking.

Pro Tips

Tip 1: The Orange Mark Is Your Friend

The orange mark on the quality slider shows your original image's estimated quality, found by matching its file size against the browser's encoder. If the slider is above the mark, the file may get larger — you're re-encoding at higher quality than the source, which wastes bytes for zero visual gain. Always drag below the mark for real compression. The mark disappears for PNG files since they use lossless compression and have no quality level to estimate.

Tip 2: Use the Right Format

Tip 3: Batch Process

If you have many images, use our batch processing feature to compress them all at once with the same settings — up to 10 files in parallel, all processed locally in your browser.

Common Mistakes to Avoid

❌ Compressing to Quality Below 60%

Visible artifacts appear, especially around text and sharp edges. The file size savings aren't worth the quality loss. If you need smaller files than 60% quality gives you, resize to smaller dimensions instead.

❌ Compressing Full-Resolution Camera Photos

A 6000×4000px photo compressed to 80% quality is still enormous — you're compressing 24 megapixels when your website only displays maybe 1 megapixel. Always resize to your display width first. This single mistake is responsible for the majority of bloated websites.

❌ Using PNG for Photos

PNG is lossless, meaning a photo saved as PNG will be 5–10× larger than the same photo as JPG or WebP — with zero visual benefit. Only use PNG when you need transparency or crisp text/graphics.

❌ Setting Quality Too High "Just to Be Safe"

Quality 95% produces a file that's nearly identical to 85% but 2–3× larger. The difference between 85% and 95% is invisible to the human eye, but the file size difference is very real. Use the diff heatmap at 1× zoom to calibrate your eye — you'll likely find that 80% is already perfect.

❌ Re-Compressing an Already Compressed Image

Every round of lossy compression discards more data. If you take a JPG that was saved at 60% and re-compress it at 80%, you're not getting the original back — you're just making a larger file that still has the same artifacts. Always work from the highest-quality source available. The orange mark on the slider helps you spot pre-compressed images before you start.

❌ Not Testing on Mobile

Images that load instantly on desktop Wi-Fi may crawl on a mobile 4G connection. Always test page speed on mobile using Google PageSpeed Insights — the mobile score is what Google uses for ranking.

Frequently Asked Questions

What is the best quality setting for web images?

75–85% is the sweet spot for most web images — it cuts file size by 50–70% with no visible quality loss. For hero images and photography portfolios, use 85–92% for near-lossless results. For thumbnails and secondary images, 60–75% is acceptable. Below 60%, compression artifacts become noticeable and are rarely worth the file size savings.

Should I use WebP or JPG for my website?

Use WebP as your primary format — it produces files 25–35% smaller than JPG at the same visual quality, and 96%+ of browsers support it. Serve JPG as a fallback using the <picture> element (see code example in the Websites & Blogs section above). For email attachments or legacy systems, stick with JPG. For real benchmark data, see our complete format comparison.

Do I need to resize images before compressing them?

Yes — resizing first is the single most impactful optimization. A 4000px photo resized to 1200px drops from ~5MB to ~300KB before any compression. Compress it to 80% WebP and you're under 100KB — a 98% total reduction with no visible quality loss. Use our Image Resizer for this step, then send the result straight to the compressor.

How much can I compress an image before quality drops?

At 75–85% quality, most images compress by 50–80% with no visible difference. The exact threshold varies by image content — photos with smooth gradients (skies, skin tones) show artifacts sooner than busy, detailed images. Use the diff heatmap with 5× amplification to find the exact tipping point for your specific image. If you see colored blotches in important areas, increase quality by 5% and try again.

Conclusion

Good image compression is about finding the balance between file size and visual quality. For most web use cases, 75-85% quality in WebP format provides the best results — 50–70% smaller files with no visible quality loss. Follow the resize→compress→verify pipeline, use the diff heatmap to confirm your settings, and check your mobile PageSpeed score. Use our free compressor to optimize your images privately — no uploads required.