logo of Screenshot for Web
Free toolsPlaygroundDocsBlogPricing
LoginDashboard

Company

HomeFeaturesPricingBlogFacts

Screenshot Tools

Website ScreenshotsFull Page ScreenshotsScrolling ScreenshotsWebsite HistoryPDF Generation APIScreenshot API

Legal

Terms of UsePrivacy PolicyCookie PolicyCopyrightSecurity

Support

FAQSupportContact UsAPI Status
screen shot for web logo

No clutter. No distractions. Just clean, full-page screenshots with smart customization.

© 2026 HYDRANODE LTD. All rights reserved.

Screenshot for Web is operated by HYDRANODE LTD, a company registered in England and Wales, company number 15672526. Registered office: 124 City Road, London, London, England, EC1V 2NX.

FacebookInstagramLinkedInYouTube
  1. Home
  2. Blog
  3. Research

PNG vs JPEG vs WebP for screenshots, measured on ten real pages

We captured ten real pages in headless Chrome as PNG, JPEG and WebP at several qualities and measured size and visual quality. Results, code and the settings to use.

Screenshot for Web·October 20, 2026·7 min read

Sources

  1. Chrome DevTools Protocol: Page.captureScreenshot (Page.pdl)
  2. Chromium source: content/browser/devtools/protocol/page_handler.cc
  3. Chromium source: ui/gfx/codec/webp_codec.cc
  4. Chromium source: ui/gfx/codec/jpeg_codec.cc
  5. Puppeteer: ScreenshotOptions
  6. Google for Developers: WebP compression techniques
  7. RFC 6386: VP8 Data Format and Decoding Guide
  8. Cloudinary: SSIMULACRA 2 (README and score scale)

How this article was made

Researched and drafted with AI assistance from the sources listed. The captures, measurements and code were run by us on 20 October 2026 on an Apple M5 Mac (macOS 26.6, Node 22.21.1) with Puppeteer 24.11.1, against both its bundled Chrome 138.0.7204.49 and Chrome 155.0.8059.85. Quality scores were computed with the ssimulacra2 command-line tool. Every number in the article comes from those runs.

Capture any page without ads, banners or chat widgets, free and without an account.

Try the free tools

More articles

  • News

    Puppeteer 25.19 stops print and dark mode emulation from cancelling each other

    Before Puppeteer 25.19.0, emulateMediaType and emulateMediaFeatures reset each other, losing print or dark mode. Our tests, the fix and a workaround.

    November 26, 2026
  • News

    Chrome 158 drops XSLT: what it does to screenshots of sitemaps and feeds

    We captured eight live sitemaps in Chrome 156 and Chromium 158. Styled pages turn into raw XML, a red warning bar is already in captures, and two fixes work.

    November 9, 2026
  • Research

    Chrome DevTools' full-size screenshot: where it fails on long and lazy pages

    We ran DevTools' full-size screenshot on six long pages: it stops at 16,384 pixels and misses content that appears on scroll. Here's why, and the fixes that worked.

    November 8, 2026

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:

SettingTotal size, 10 pagesMedian size vs PNGMedian scoreWorst score
PNG3,524 KB100%100100
PNG, optimizeForSpeed4,202 KB120%100100
JPEG, quality 701,028 KB52%69.064.6
JPEG, no quality (= 80)1,226 KB61%74.170.2
JPEG, quality 851,382 KB69%76.972.5
JPEG, quality 952,078 KB100%82.876.9
JPEG, quality 1003,330 KB147%83.877.4
WebP, quality 70636 KB32%73.667.1
WebP, no quality (= 80)751 KB38%78.073.4
WebP, quality 85855 KB42%79.875.3
WebP, quality 951,292 KB59%82.277.0
WebP, quality 100 (lossless)2,882 KB86%100100

Chart of median size against median SSIMULACRA 2 score for ten screenshots. WebP runs from quality 70 (32% of PNG, score 74) to quality 100 (86%, score 100). JPEG runs from quality 70 (52%, score 69) to quality 100 (147%, score 84), never reaching the visually lossless line at 90.

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:

PagePNGWebP losslessWebP 85 (score)JPEG 85 (score)
news.ycombinator.com199 KB78 KB90 KB (81.3)139 KB (78.2)
developer.mozilla.org200 KB128 KB120 KB (77.0)196 KB (73.5)
github.com170 KB151 KB71 KB (81.4)129 KB (76.8)
python.org148 KB140 KB65 KB (75.5)114 KB (73.1)
bbc.co.uk544 KB430 KB118 KB (75.3)187 KB (72.5)
apple.com265 KB227 KB38 KB (82.5)69 KB (81.0)
w3.org161 KB149 KB67 KB (81.1)109 KB (78.4)
nasa.gov1,297 KB1,029 KB161 KB (76.5)225 KB (76.9)
gov.uk82 KB151 KB45 KB (84.1)84 KB (80.1)
ikea.com460 KB397 KB80 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.

Four crops of the BBC News red navigation bar, enlarged four times. The PNG shows crisp white text. JPEG at quality 100 shows pink fringes around the letters. JPEG at quality 70 adds blocky noise in the red. WebP at quality 85 shows softer letter edges with slight fringing.

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:

PagePNGPNG fastJPEG 85WebP 85WebP lossless
gov.uk41 ms35 ms34 ms50 ms49 ms
nasa.gov122 ms50 ms33 ms73 ms146 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)) {
    // A WebP file holds a 'VP8L' chunk when it is lossless and a 'VP8 ' chunk when it is lossy.
    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 needUseWhy
Exact pixels: visual regression diffs, evidence, archivesWebP quality 100, or PNGBoth lossless; WebP was smaller on 9 of 10 pages. Use PNG if a tool in your pipeline can't read WebP.
Small previews and thumbnailsWebP quality 70 to 85About a third to two fifths of PNG's size, scores 74 to 80.
A format every old tool readsJPEG quality 85Don't go to 95 or 100 expecting lossless; colour stays subsampled.
Many captures where encoding time mattersPNG with optimizeForSpeed, or JPEGFastest 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.