← Back to Blog

JPEG Quality 80 vs 60 vs 40: I Ran the Numbers So You Don't Have To

Here's what almost everyone does with image compression: they drag the slider somewhere between 70 and 85, hit compress, and hope it looks okay. If the file is too big they move it left. If it looks bad they nudge it right. Repeat until bored.

I used to do the exact same thing. Then I built an image compressor that runs MozJPEG in your browser, and I started wondering: what does the slider actually do? How much file size do you gain or lose at each step? Is there a point where dropping quality further stops being worth the savings?

So I stopped guessing and ran some numbers.

How I tested this

I took four different images — a portrait-style shot, a landscape with sky and ground, a product photo on a clean background, and a sunset gradient scene — and fed each one through our compressor at quality 40, 60, 80, and 90. Same engine (MozJPEG), same resolution (1600×1200), zero resizing. This is not theoretical math from a textbook. These are real byte counts from the same library we use on CompactJPG.

ImageOriginal PNGq=40q=60q=80q=90
Sunset495 KB10.6 KB13.3 KB47 KB148 KB
Portrait637 KB28.7 KB40.2 KB82 KB187 KB
Landscape567 KB15.4 KB22.5 KB74 KB204 KB
Product shot382 KB9.8 KB11.1 KB21 KB67 KB

A few things jump out immediately.

The three things nobody tells you about quality settings

1. Quality 90 is almost never worth it

Moving from quality 80 to quality 90 roughly doubles the file size across all test images — but the visual improvement is barely noticeable unless you're pixel-peeping side by side. On average, q=90 came out at about 2.6× the size of q=80. That's 160% more bandwidth and storage for maybe 2% better perceived sharpness. If you're serving millions of photos, that difference is expensive. If you're just posting on Instagram, nobody will ever tell.

2. Quality 60 is where the sweet spot lives for most web use

Dropping from 80 to 60 cuts the file size by roughly half (average: 45% of the original q=80 output). For most website photos, blog images, and email attachments, the quality loss is subtle — smooth gradients stay smooth, faces look normal, text stays readable. You start seeing mild blockiness only if you zoom past 100% on detailed areas like hair texture or foliage. At normal viewing size? Indistinguishable from q=80 for the vast majority of viewers.

3. Quality 40 has a real cost

At q=40, files get tiny — we're talking under 30 KB for most of these test images. That's great if you're fighting a strict upload limit (like the 20 KB cap many government forms enforce). But there's a trade-off: flat areas stay fine, edges get slightly fuzzy, and anything with fine detail (fabric texture, tree leaves, printed text) starts showing visible JPEG artifacts. Use it when you have to. Not as your default.

Same portrait at JPEG quality 80 (82 KB) versus quality 40 (29 KB) via MozJPEG engine
Side-by-side comparison: the same image at quality 80 (left, 82 KB) and quality 40 (right, 29 KB). The lower setting cuts the file by 65%, but notice the softer edges around the face and shoulders on the right panel. Whether that trade-off is acceptable depends entirely on where the image ends up.

So which quality should YOU use?

Stop thinking about the number and think about where the image goes:

One thing that makes this easier

The reason most people pick a random number on the slider is that they can't see the result until after they've already downloaded the compressed file. They compress, download, open, squint, go back, adjust, repeat. It's tedious and nobody enjoys it.

What helps is seeing the output size update in real time as you move the slider, plus a quick preview before you commit. That's how our tool works — you drop the image, drag the quality bar, and watch the predicted size change instantly. No guesswork, no back-and-forth. Your files never leave your device either, so there's no privacy concern while you're experimenting with different settings.

You don't need to memorize "quality 78 is best for blogs." You just need a tool that shows you the numbers while you decide.

Find Your Image's Sweet Spot

Upload any image, drag the quality slider, and see the file size change live. Free, browser-based, private — your files never leave your device.

Compress & Compare Free →
About the Author: Chuan Independent developer who got tired of guessing at JPEG sliders. Built CompactJPG so you don't have to. When not tinkering with compression engines, I'm probably overthinking quality settings for my own photos.