Almost every image editor, export dialog and compression tool has a quality slider for JPG and WebP. It is easy to guess what it does in general (lower number, smaller file, worse picture), but much harder to know how much each step costs or saves. This guide answers that with measurements: we saved the same images at quality 30, 50, 75, 85 and 95 in both formats and recorded the sizes and how far each result drifted from the original.
What the quality number actually controls
JPG and lossy WebP do not store an image pixel by pixel. They describe small areas of the picture as combinations of patterns, and then round those descriptions off. The quality setting controls how coarse that rounding is. At high quality the rounding is gentle and the decoded image is very close to the original. At low quality much of the fine detail is rounded away to zero, which saves space but leaves visible traces called compression artifacts.
In web browsers, the quality value is a number between 0.0 and 1.0, as described for toBlob() in the HTML standard's canvas section. TabGarden's Compress Image slider shows 30 to 95 and divides by 100 before passing it on, so "75" in the tool is 0.75 to the browser.
Two important consequences follow from how this works:
- The number is not a percentage of anything. Quality 50 does not mean "half the quality" or "half the size". It is just a position on the encoder's internal scale.
- The same number means different things in different encoders. JPG at 75 and WebP at 75 are not designed to look the same, and two programs writing JPG can produce different files from the same setting.
How we measured
All numbers here come from a test run on 28 November 2026.
- Engine: headless Chromium 129, encoding with
canvas.toBlob(), the same call TabGarden's image tools use. Results reflect that browser's built-in JPG and WebP encoders. - Photos: 12 CC0 photographs from Wikimedia Commons with very different content: a butterfly wing, a hamburger, a capybara, river rapids, a sunset, a harbour skyline, a living room, a peacock, a mushroom, a mountain panorama, a goose and a city view. Each was scaled to 2000 pixels wide (heights 1088 to 1727 pixels).
- Screenshots: three synthetic 1600 × 1000 images drawn in the browser: a light settings page with text and buttons, a dark code editor, and a spreadsheet-style grid with a chart. They are synthetic, not captures of real software.
- Settings: quality 30, 50, 75, 85 and 95, each in JPG and in WebP.
- Closeness to the original: for every result we decoded the file again and computed PSNR (peak signal-to-noise ratio) against the original pixels. PSNR is measured in decibels; higher means closer. As a rough orientation, differences between results matter more than the absolute values, and PSNR does not perfectly match what people notice, but it does track the size of the error.
- Looks: we also cut out 400 × 300 pixel areas of one photo and one screenshot at each setting and enlarged them two times to describe the artifacts.
Sizes are in KB (1 KB = 1024 bytes). Each line gives the median of the set and, in brackets, the smallest and largest result.
Results for photos
As a reference, the same 12 photos saved as lossless PNG had a median of 4,352 KB (2,332 to 6,967 KB).
JPG:
- Quality 30: median 140 KB (58 to 320), PSNR median 31.6 dB
- Quality 50: median 202 KB (82 to 489), PSNR median 33.2 dB
- Quality 75: median 312 KB (130 to 800), PSNR median 35.4 dB
- Quality 85: median 425 KB (179 to 1,068), PSNR median 37.2 dB
- Quality 95: median 858 KB (370 to 1,714), PSNR median 40.9 dB
WebP:
- Quality 30: median 95 KB (31 to 462), PSNR median 32.5 dB
- Quality 50: median 134 KB (43 to 616), PSNR median 34.2 dB
- Quality 75: median 195 KB (60 to 790), PSNR median 36.1 dB
- Quality 85: median 320 KB (97 to 1,061), PSNR median 38.4 dB
- Quality 95: median 741 KB (244 to 1,611), PSNR median 41.5 dB
Results for screenshots
The three screenshots saved as PNG had a median of 253 KB (157 to 309 KB).
JPG:
- Quality 30: median 63 KB (59 to 98), PSNR median 30.6 dB
- Quality 50: median 83 KB (74 to 128), PSNR median 32.9 dB
- Quality 75: median 116 KB (98 to 170), PSNR median 37.3 dB
- Quality 85: median 145 KB (116 to 203), PSNR median 40.1 dB
- Quality 95: median 219 KB (156 to 273), PSNR median 44.3 dB
WebP:
- Quality 30: median 46 KB (33 to 60), PSNR median 36.2 dB
- Quality 50: median 58 KB (38 to 71), PSNR median 38.8 dB
- Quality 75: median 70 KB (44 to 81), PSNR median 40.6 dB
- Quality 85: median 90 KB (52 to 98), PSNR median 43.0 dB
- Quality 95: median 130 KB (70 to 134), PSNR median 44.9 dB
What the numbers show
The top of the scale is expensive
Going from 85 to 95 almost doubled the size of a photo: the median growth was 1.89 times for JPG and 2.02 times for WebP. Going from 75 to 95 multiplied the JPG size by 2.59 (range 2.14 to 3.62) and the WebP size by 3.09 (2.04 to 5.76). Those last steps do bring the file closer to the original (about 4.3 dB of PSNR for JPG between 85 and 95), but at 85 the JPG photos were already fairly close to the original (median 37.2 dB), so the last 10 points buy a modest gain for twice the bytes. For sharing and for web pages, settings above 90 rarely pay off; keep them for images that will be edited further or printed.
The bottom of the scale saves less than you might expect
From 50 down to 30, a JPG photo shrank only to about 70% of its size (the 30 to 50 step was a median 1.43 times growth in the other direction). WebP behaved similarly. In other words, the last 20 points of quality you give up buy relatively little space, while the measured distance from the original keeps growing (median JPG PSNR 33.2 dB at 50, 31.6 dB at 30). If a file is still too big at 50, lowering the pixel dimensions usually works much better than going to 30; see shrinking photos for upload limits for measured examples.
Content matters more than the setting
At JPG quality 75, the largest photo was more than six times the size of the smallest (800 KB against 130 KB), even though all were 2000 pixels wide. The large files were the river rapids, the mountain panorama, the mushroom and the capybara, all full of fine, irregular detail. The two smallest were the goose close-up and the living room interior. These same detailed photos also had the lowest PSNR at every setting: fine texture is exactly what lossy compression removes. So there is no quality number that produces "about 300 KB" for every photo. Check the result for each image.
WebP is usually smaller, but not at every setting
At quality 75, WebP was smaller than JPG on all 12 photos, with a median of 68% of the JPG size. At quality 30 and 50, however, the four most detailed photos came out larger as WebP than as JPG. In those four cases WebP was also clearly closer to the original (for the river rapids at quality 30: 27.2 dB for WebP against 23.6 dB for JPG). The encoders simply interpret the number differently: at the low end, this WebP encoder kept more detail than the JPG encoder at the same setting.
For screenshots the difference was larger and consistent. WebP was 45 to 73% of the JPG size at every quality, and at the same time closer to the original at every quality. For screenshots and other images with text, WebP had the clear advantage in this test. (The format comparison guide covers when PNG is still the right choice.)
What the artifacts look like
These descriptions are our visual impressions from enlarged crops (one photo and one synthetic screenshot, shown at twice the size) at quality 30, 50, 75 and 95. They are observations, not measurements; the crops can be regenerated with the measurement script in the site's research folder.
JPG
- Speckles around edges (often called mosquito noise). At quality 30 and 50, faint grey dots and halos appeared around letters, input-field borders and other sharp lines on the white screenshot background. At 75 they were very hard to spot at twice the size; at 95 we could not see them.
- Blocky patches. In the photo, fine texture on the butterfly wing broke up into small square patches at quality 30, and the edges between colors became stepped instead of smooth.
- Flattened texture. Subtle variations inside an area of similar color are smoothed into flat patches, which can make skin, sky or fabric look plastic at low settings.
WebP
- Smearing instead of blocks. At quality 30, WebP did not produce the square pattern of JPG. Instead, fine wing texture was smoothed into soft, smeared areas that look slightly painted.
- Cleaner text. On the screenshot at quality 30, letters and borders had far fewer speckles than in the JPG, though the thinnest strokes were slightly softened.
- Loss of fine grain. Small random detail is what gets smoothed away first, which is why the most detailed photos had the lowest PSNR. At 75 and above, we did not see obvious artifacts in either crop at twice the size.
When artifacts show up most
- Text, line drawings and screenshots saved as JPG.
- Images that are already compressed and get compressed again. Each new lossy save adds its own errors on top of the old ones.
- Large flat or gently graded areas, such as sky, where blocky steps or banding are easy to see.
- Viewing the image larger than its pixel size, for example zooming in on a phone.
Practical settings
- 75 is a sensible default for photos in chats, email and web pages. In our test it kept PSNR above 35 dB for 7 of 12 photos as JPG and 8 of 12 as WebP, at a median of 8% (JPG) or 5.4% (WebP) of the PNG size.
- 80 to 90 for images that will be viewed large, such as product photos or portfolio pieces.
- 50 to 65 when you must reach a size limit and slight softening is acceptable. If you still need to go lower, reduce the pixel dimensions with Resize Image first.
- 30 to 45 only for thumbnails or when size matters far more than looks.
- For screenshots with text, use WebP at 75 or more, or keep PNG if the text must stay perfectly crisp.
Always judge the result at the size it will actually be seen. A setting that looks poor at 200% zoom can be perfectly fine at the size of a chat bubble.
Trying it yourself
Compress Image lets you set the quality between 30 and 95 and choose JPG or WebP. Each result shows the size before and after, and you can run it again with another setting to compare. The tool never returns a file larger than the one you gave it; if a high setting would grow the file, you get the original back. Everything runs inside your browser, so your images are not uploaded.
Limits of this test
The sizes come from one browser engine (Chromium 129). Other browsers and programs use different encoders and will produce different numbers for the same setting. The photos were already JPG files downloaded from Wikimedia Commons, not raw camera output, and the screenshots were synthetic. PSNR is a measure of numeric difference and does not capture everything a person notices. Treat the figures as a guide to proportions, not as exact predictions for your own images.