What JPEG quality should you use for the web? We tested 16 images

By default, WordPress saves your JPEGs at quality 82. We re-saved 16 images as JPEG at quality 60, 70, 80, 82 and 90, measured every file, and compared crops at 100%. For photos and products on white, 70 was already enough, on the numbers and in the crops, unless the JPEG is already around quality 80 or lower. For screenshots and QR codes, JPEG is a worse trade than AVIF.

One run, 16 images, one quality metric, one encoder (Pillow with libjpeg), 27 November 2026. Treat the numbers as what happened on this set, not as a promise for your library.

The short answer

  • Photos and products on white: quality 70, unless the file is already around quality 80 or lower.

  • Scanned drawings: quality 90, and expect a small saving.

  • Screenshots and QR codes: not JPEG. Use AVIF, see AVIF vs WebP for WordPress.

  • Transparent images: not JPEG, because JPEG cannot hold transparency.

The sections below give the sizes behind each line and what the crops showed.

What we ran

We started from the same 21 images as our AVIF vs WebP test: phone photos, stock photos, products on white, transparent product PNGs, screenshots, logos, a QR code and illustrations. Five of them have transparency (the three transparent product PNGs, the TIO gecko logo and the instruments illustration), so they are not in the JPEG tables. That leaves 16.

Each of the 16 went through Pillow, which uses libjpeg-turbo, at quality 60, 70, 80, 82 and 90. 4:2:0 chroma, not progressive, no extra optimisation. We also searched, from quality 30 upwards, for the lowest quality that still scored an SSIM of at least 0.98 against the original. SSIM is a similarity score from 0 to 1. A file that scores 0.98 or more is very close to the original, but a matching score is not a matching look, so we also compared crops by eye.

Two limits to know now. First, the search started at quality 30. On 8 of the 16 images the file already passed at 30, so the true lowest quality for those is 30 or lower. Second, Pillow is not mozjpeg, so these JPEG sizes are somewhat larger than a tuned encoder would make. Read them as a ceiling.

What WordPress does by default

Checked on 27 November 2026: WordPress's image editor class sets its default JPEG quality to 82. The same code sets WebP to 86. The get_default_quality reference describes the lookup, and the 82 is the class property in class-wp-image-editor.php. WordPress applies it when it makes resized copies of an upload and when you save an edited image. Two filters let a theme or plugin change it, wp_editor_set_quality and jpeg_quality.

We re-saved our images at 82 as one of the five levels, so you can see what the default does to a photo that came from a camera. That is the “q82” column below.

Sizes by image type

Smaller than the original, as a median with the range in brackets. A minus sign means the JPEG came out bigger than the original.

Image type
Images
q60
q70
q80
q82
q90
Phone photo
Images3
q6075.8% (62.5% to 81.6%)
q7070.1% (54.8% to 76.9%)
q8060.1% (44.8% to 66.4%)
q8256.8% (39.8% to 63.1%)
q9026.5% (16.0% to 27.7%)
Stock photo
Images3
q6066.8% (17.2% to 85.7%)
q7059.0% (-4.3% to 81.2%)
q8034.7% (-11.6% to 76.0%)
q8227.5% (-12.7% to 74.9%)
q905.7% (-53.9% to 67.5%)
Product on white
Images3
q6064.7% (54.0% to 71.1%)
q7058.7% (48.1% to 66.8%)
q8048.4% (38.0% to 60.4%)
q8246.0% (35.9% to 57.4%)
q9018.6% (10.4% to 36.5%)
Screenshot
Images3
q6073.6% (66.0% to 92.5%)
q7070.2% (61.6% to 91.6%)
q8064.9% (55.1% to 89.9%)
q8263.3% (53.1% to 89.4%)
q9053.6% (41.3% to 85.8%)
Logo (one banner)
Images1
q6089.2%
q7087.6%
q8085.0%
q8284.2%
q9079.1%
QR code (one image)
Images1
q60-529.8%
q70-547.1%
q80-570.4%
q82-584.4%
q90-630.5%
Illustration (two scans)
Images2
q6060.9% (50.6% to 71.3%)
q7050.6% (41.0% to 60.1%)
q8043.4% (32.3% to 54.4%)
q8240.1% (29.4% to 50.8%)
q908.7% (0.6% to 16.9%)

Note: one run on 16 images, one quality metric (SSIM), Pillow with libjpeg-turbo, 27 November 2026. Five transparent images are not in the table. Percentages are the JPEG file against the original file. Where a type has one or two images, the range is all there is, not a median of many.

Three things stand out. Phone photos lose a lot of weight at every level, and 82 still saves a median 56.8%. Stock photos are mixed: at 82 the median is 27.5%, but the range runs from 12.7% bigger to 74.9% smaller. And the QR code gets bigger at every level. The original is 4,230 bytes as a PNG, and the JPEG is 26,639 bytes at 60 and 28,949 at 82.

What happens when you re-save a JPEG that is already compressed

It depends on how hard the file was compressed the first time, and the stock orchid photo shows it. Its original is already around quality 80. Saved again at 60 it was 17.2% smaller. At 70 it was 4.3% bigger, at 80 11.6% bigger, at 82 12.7% bigger and at 90 53.9% bigger.

The other five photos came off a camera or an editor at an estimated quality of 94 to 99, so they had room. Saved again at 82 they came out 27.5% (the lake photo) to 74.9% (the flower photo) smaller.

So there is a rule hiding in this: do not re-save a JPEG at a higher quality than it already has. You pay in bytes and gain nothing, because the detail is already gone. We re-saved each image once. We did not test saving the same file over and over.

Where quality loss shows first

SSIM said most files were fine. At quality 82, 14 of the 16 scored 0.98 or higher. The two that did not were the logo banner (0.9796) and the botanical print (0.9640). The crops are where we checked the rest. Each crop is a 400 by 400 area at 100%, taken from the hardest part of the image. This is our own look, not a blind test, so check the crops on your own images before you change a setting.

Photos: very little shows, and only at 60. On the lake photo at 60, the fir needles are a little smoother than in the original. At 70 it is closer. On the fruit photo the netting and the spotted skin look the same at 60 and 70 as in the original. On the orchid we could not tell the original, 60 and 70 apart, even at 3x, and at 70 the file is already bigger than the original.

Products on white: the crops hold. On the medicine-pack photo, the foil pattern and the tablet look the same at 60 and 70 as in the original. On the whisky bottle the label text and the No.1 panel stay legible at every level, and we could not separate 70 from 80.

Screenshots: clean, but the wrong format. On the guide screenshot the body text is clean at 60 and 70, with no ringing or smearing we could see at 100%. The case against JPEG here is size and the better formats, not a visible flaw.

QR code: wrong in size. The file size is what fails. Every JPEG is several times the size of the original PNG. We did not scan any of the JPEGs, so we cannot tell you a phone reads them.

Scanned drawings: the two scans behave differently. On the gecko scan at 60 the handwriting and hatching are visibly lighter and thinner than in the original. At 70 it is closer but still a little lighter. On the botanical print we could not see a difference at 100% at 60, 70 or 80, even though its SSIM is the lowest of the set (0.9640 at 82, and it took quality 87 to reach 0.98). The score and the eye disagree on that image, so we kept the higher setting as a margin.

The lowest quality that reached 0.98

This is the other way to read the data: for each image, how low could the quality go before the SSIM dropped under 0.98?

Image type
Images
searched
Lowest quality at 0.98,
median (range)
Images at the
quality 30 floor
Smaller than the
original at that quality,
median (range)
Phone photo
Images searched3
Lowest quality at 0.98, median (range)30 (30 to 55)
Images at the quality 30 floor2 of 3
Smaller than the original at that quality, median (range)83.7% (65.0% to 87.2%)
Stock photo
Images searched3
Lowest quality at 0.98, median (range)46 (30 to 49)
Images at the quality 30 floor1 of 3
Smaller than the original at that quality, median (range)71.9% (56.8% to 87.9%)
Product on white
Images searched3
Lowest quality at 0.98, median (range)30 (30 to 30)
Images at the quality 30 floor3 of 3
Smaller than the original at that quality, median (range)71.9% (66.1% to 77.8%)
Screenshot
Images searched3
Lowest quality at 0.98, median (range)40 (30 to 61)
Images at the quality 30 floor1 of 3
Smaller than the original at that quality, median (range)75.0% (73.3% to 93.6%)
Logo (one banner)
Images searched1
Lowest quality at 0.98, median (range)83
Images at the quality 30 floor0 of 1
Smaller than the original at that quality, median (range)83.7%
QR code (one image)
Images searched1
Lowest quality at 0.98, median (range)30
Images at the quality 30 floor1 of 1
Smaller than the original at that quality, median (range)-475.0%
Illustration (two scans)
Images searched2
Lowest quality at 0.98, median (range)61 (35 to 87)
Images at the quality 30 floor0 of 2
Smaller than the original at that quality, median (range)43.2% (23.8% to 62.7%)

Note: same run and caveats as above. “At the floor” means the search started at 30 and the file already passed, so the real minimum is 30 or lower. The search found the lowest quality that scored 0.98, which is a measure of similarity, not of how a person sees the image.

Read the low numbers with care. A median of 30 for phone photos and products says “30 or lower”, not “30”. We would not ship quality 30. The useful finding is the spread: a screenshot or a scanned print needs a much higher setting than a phone photo to score the same.

What TIO does with a JPEG

This is from reading the code of the free web tool and of the WordPress plugin as they ship today, not from our test above.

For an image without transparency, the web tool encodes AVIF, WebP, PNG and JPEG and keeps the smallest. In the WordPress plugin, when a JPEG is optimised on upload or in a Bulk Optimize run, the plugin asks for the format to be kept, so a JPEG stays a JPEG and its address does not change. The JPEG is encoded with mozjpeg and saved as a progressive file.

TIO does not use one quality for everything. It starts at 82 for JPEG and moves it by what it finds in the image, within a range of 60 to 95. Photos start 2 lower, screenshots and graphics start higher, and text or a face in the picture pushes it up. In the plugin, if the result is not smaller than the original, TIO keeps your original file. That is the “-0%” case, explained in why TIO skipped my image.

In the TIO run on these same images (13 November, the free web tool), the output was smaller than the original on all 16 images in the JPEG tables. The savings were 88.3% for the shop-sign phone photo and 80.0% for the orchid, against 56.8% smaller and 12.7% bigger for plain JPEG at 82 on the same two files. That gap comes mostly from the format, not the quality: TIO chose AVIF for both. That run is a separate test and it did not hold every file to the same score. TIO scored below 0.98 on two of the 16, the fruit photo (0.9790) and the botanical print (0.9591).

Why transparent images are not in the table

JPEG has no transparency. A transparent PNG saved as a JPEG gets a solid background colour where the see-through part was. So the three transparent product PNGs, the TIO gecko logo and the instruments illustration have no JPEG row. For those, WebP or AVIF is the choice, and the AVIF vs WebP test shows which one for each.

What to use for each type

  • Phone and stock photos: quality 70. It saved a median 70.1% on phone photos and 59.0% on stock photos, with no loss we could see in the crops. Leave a JPEG alone if it is already around quality 80 or lower.

  • Products on white: quality 70. It saved a median 58.7%, and the whisky label and the foil pattern looked the same as the original.

  • Scanned drawings: quality 90. It saved 0.6% to 16.9% on our two scans, so expect little. The gecko scan looked lighter at 60 and 70, and the botanical print needed 87 to reach 0.98, so 90 is the safe margin for both.

  • Screenshots: not JPEG. Plain JPEG at 82 saved a median 63.3%, while TIO's AVIF result saved a median 86.6% on the same three. Use AVIF, see AVIF vs WebP for WordPress.

  • Logos: we tested one banner. At 82 it scored 0.9796, just under our 0.98 bar, and it reached 0.98 at quality 83 with 83.7% saved. TIO's own output for it was WebP, saving 90.5%. Use AVIF, as in AVIF vs WebP for WordPress, which found the banner a little smoother in AVIF.

  • QR codes: not JPEG. The file grew from 4,230 bytes to between 26,639 and 30,900.

  • Anything with transparency: not JPEG. Use WebP.

If you would rather not choose one by one, how to bulk optimise an old WordPress media library starts with a backup and a sample of 50.