If you want screenshots that are both small and pixel-exact, ask headless Chrome for WebP at quality 100: it switches to lossless WebP, which was identical to PNG pixel for pixel on all ten pages we tested and smaller than PNG on nine of them. If you can accept some loss, WebP at quality 85 was about 40% of the PNG's size and looked better than JPEG at 85. JPEG never got close to lossless: even at quality 100 it scored no higher than 85.8 on any page, and its files were a median 47% larger than the PNG.
Below is how we measured that, the full numbers, and what the documentation doesn't tell you, such as what an omitted quality does and why JPEG at 100 still blurs coloured text.
How we tested
On 20 October 2026 we loaded ten public pages in headless Chrome through Puppeteer 24.11.1: Hacker News, an MDN docs page, the Puppeteer GitHub repository, python.org, BBC News, apple.com, w3.org, nasa.gov, gov.uk and IKEA UK. That mix covers text-heavy pages, photo-heavy home pages and plain government pages. Each page was captured at a 1280 × 800 viewport and a device pixel ratio of 1, in a fresh browser context.
After loading, we waited three seconds, switched off CSS animations and transitions, and paused any videos. Then we took the same view thirteen times with page.screenshot(): PNG, PNG with optimizeForSpeed, JPEG and WebP each at quality 70, 85, 95, 100 and with no quality given, and a second PNG at the end. The two PNGs matched byte for byte on every page, so the page didn't change during the run and every file shows the same frame. (We dropped stripe.com from an earlier run because its animated background kept changing between captures.)
We scored each lossy file against the PNG with SSIMULACRA 2, a perceptual metric from Cloudinary. Its README describes the scale: 90 is "visually lossless", 80 is very high quality with no difference visible side by side at 1:1, 70 is high quality where artefacts are "perceptible, but not annoying", and 50 is medium. We ran everything twice, on Puppeteer's bundled Chrome 138 and on Chrome 155. The numbers below are from Chrome 155; Chrome 138 gave the same median scores to within 0.1 and the same conclusions. Single pages differed by up to 4.7 points, because live pages changed between the two runs.
The results
Totals and medians across the ten pages, Chrome 155:
| Setting | Total size, 10 pages | Median size vs PNG | Median score | Worst score |
|---|
| PNG | 3,524 KB | 100% | 100 | 100 |
PNG, optimizeForSpeed | 4,202 KB | 120% | 100 | 100 |
| JPEG, quality 70 | 1,028 KB | 52% | 69.0 | 64.6 |
| JPEG, no quality (= 80) | 1,226 KB | 61% | 74.1 | 70.2 |
| JPEG, quality 85 | 1,382 KB | 69% | 76.9 | 72.5 |
| JPEG, quality 95 | 2,078 KB | 100% | 82.8 | 76.9 |
| JPEG, quality 100 | 3,330 KB | 147% | 83.8 | 77.4 |
| WebP, quality 70 | 636 KB | 32% | 73.6 | 67.1 |
| WebP, no quality (= 80) | 751 KB | 38% | 78.0 | 73.4 |
| WebP, quality 85 | 855 KB | 42% | 79.8 | 75.3 |
| WebP, quality 95 | 1,292 KB | 59% | 82.2 | 77.0 |
| WebP, quality 100 (lossless) | 2,882 KB | 86% | 100 | 100 |

Three things stand out.
WebP beats JPEG at the same setting. WebP at 85 scored higher than JPEG at 85 on nine of the ten pages, and was smaller than JPEG at 70 on nine of the ten. The gap closes at the top: at quality 95 the two scored within 1.4 points of each other on every page, but WebP was still about 40% smaller.
No lossy setting reached "visually lossless". The best lossy score on any page was 85.8, for JPEG 100 on apple.com. Raising JPEG from 95 to 100 added one point to the median score and made the files 60% bigger in total.
Lossless WebP is usually, not always, smaller than PNG. It was smaller on nine pages, from 61% smaller on Hacker News to 5% smaller on python.org. On gov.uk, a page of flat colours and text, it was 151 KB against PNG's 82 KB.
Per page, for the settings most people choose between:
| Page | PNG | WebP lossless | WebP 85 (score) | JPEG 85 (score) |
|---|
| news.ycombinator.com | 199 KB | 78 KB | 90 KB (81.3) | 139 KB (78.2) |
| developer.mozilla.org | 200 KB | 128 KB | 120 KB (77.0) | 196 KB (73.5) |
| github.com | 170 KB | 151 KB | 71 KB (81.4) | 129 KB (76.8) |
| python.org | 148 KB | 140 KB | 65 KB (75.5) | 114 KB (73.1) |
| bbc.co.uk | 544 KB | 430 KB | 118 KB (75.3) | 187 KB (72.5) |
| apple.com | 265 KB | 227 KB | 38 KB (82.5) | 69 KB (81.0) |
| w3.org | 161 KB | 149 KB | 67 KB (81.1) | 109 KB (78.4) |
| nasa.gov | 1,297 KB | 1,029 KB | 161 KB (76.5) | 225 KB (76.9) |
| gov.uk | 82 KB | 151 KB | 45 KB (84.1) | 84 KB (80.1) |
| ikea.com | 460 KB | 397 KB | 80 KB (78.6) | 131 KB (76.9) |
Why JPEG at 100 still blurs coloured text
Chromium's screenshot code encodes JPEG through gfx::JPEGCodec::Encode(bitmap, quality), and that function always asks for 4:2:0 chroma subsampling: colour is stored at half the resolution of brightness in each direction, whatever the quality. We confirmed it on the files: every JPEG we captured, quality 100 included, was 4:2:0. Photos hide this well. Thin white text on a coloured background doesn't, because the colour edge is sharper than the colour channel can represent.

Lossy WebP is built on VP8, and RFC 6386 says VP8 "works exclusively with an 8-bit YUV 4:2:0 image format", so lossy WebP subsamples colour too. That matches what we measured: both lossy formats flatten out in the low 80s. The only way past that ceiling is a lossless format.
What the documentation doesn't say
quality works for WebP. The DevTools Protocol describes quality as "(jpeg only)". Chromium passes it to the WebP encoder as well, and our WebP sizes moved with it as expected. Puppeteer's own docs say only that it doesn't apply to PNG.
Quality 100 means lossless WebP. In Chromium's webp_codec.cc, a quality of 100 selects lossless compression, behind a feature switch that is on by default. Every WebP we captured at 100, in Chrome 138 and 155, held a lossless VP8L bitstream and decoded to exactly the PNG's pixels. Below 100 the code picks lossy compression, and all our captures at 95 and under held a lossy VP8 bitstream.
No quality means 80. page_handler.cc sets kDefaultScreenshotQuality = 80 and uses it when quality is missing or outside 0 to 100. On gov.uk and nasa.gov, JPEG and WebP captures with no quality were byte-identical to captures with quality: 80.
optimizeForSpeed trades size for time. For PNG it switches Chromium to a faster encoder. The files were 15% to 29% larger in Chrome 155 (23% to 68% in Chrome 138). We timed page.screenshot() seven times per setting, with the median including the capture itself:
| Page | PNG | PNG fast | JPEG 85 | WebP 85 | WebP lossless |
|---|
| gov.uk | 41 ms | 35 ms | 34 ms | 50 ms | 49 ms |
| nasa.gov | 122 ms | 50 ms | 33 ms | 73 ms | 146 ms |
On a heavy page lossless WebP was the slowest setting, slightly slower than PNG. For a single capture the difference hardly matters. For thousands a day it does.
Try it
This is the script we used to check the result on one page. It ran as shown on Puppeteer 24.11.1 with its bundled Chrome 138:
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.setViewport({ width: 1280, height: 800 });
await page.goto('https://www.python.org/', { waitUntil: 'networkidle2' });
const shots = {
png: await page.screenshot({ type: 'png' }),
'webp lossless': await page.screenshot({ type: 'webp', quality: 100 }),
'webp 85': await page.screenshot({ type: 'webp', quality: 85 }),
'jpeg 85': await page.screenshot({ type: 'jpeg', quality: 85 }),
};
for (const [name, data] of Object.entries(shots)) {
const kind = name.startsWith('webp') ? (data.includes('VP8L') ? ' (VP8L, lossless)' : ' (VP8, lossy)') : '';
console.log(`${name}: ${(data.length / 1000).toFixed(0)} KB${kind}`);
}
await browser.close();
})();
Output:
png: 152 KB
webp lossless: 139 KB (VP8L, lossless)
webp 85: 65 KB (VP8, lossy)
jpeg 85: 114 KB
The sizes differ a little from the per-page table, which comes from Chrome 155 and an earlier load of the page.
Which to use
| You need | Use | Why |
|---|
| Exact pixels: visual regression diffs, evidence, archives | WebP quality 100, or PNG | Both lossless; WebP was smaller on 9 of 10 pages. Use PNG if a tool in your pipeline can't read WebP. |
| Small previews and thumbnails | WebP quality 70 to 85 | About a third to two fifths of PNG's size, scores 74 to 80. |
| A format every old tool reads | JPEG quality 85 | Don't go to 95 or 100 expecting lossless; colour stays subsampled. |
| Many captures where encoding time matters | PNG with optimizeForSpeed, or JPEG | Fastest in our timing; PNG fast costs about 20% more storage. |
Two caveats. Chrome's WebP encoder refuses images taller or wider than 16,383 device pixels, which matters for tall full-page captures; we covered that in our WebP height limit article. And our numbers come from 1280 × 800 views of ten pages on one day: dense photo pages compress differently from documentation, so measure your own pages before setting a quality for a large archive.
Our free screenshot tool offers all three formats if you want to compare them on your own pages without writing code.