Original and optimized
Webp Me Daddy exported four widths from one Shadewater Labs homepage screenshot. Compare the original JPEG with the WebP your browser chooses below.
In the preview below, srcset lists those four WebP files and their pixel widths. sizes tells the browser how wide the image will appear in the layout. The browser uses that width and the screen’s pixel density to choose a file.
The exported files
| WebP dimensions | File size | Example use |
|---|---|---|
| 320 × 180 | 7.4 kB | Narrow cards |
| 480 × 270 | 13.4 kB | Wider cards |
| 768 × 432 | 24.9 kB | Wide or high-density cards |
| 800 × 450 | 26.6 kB | Largest preview and fallback |
These are the sizes from this run. The best file for a visitor depends on the display width and pixel density.
Which WebP did the browser load?
We loaded the on-page preview in a fresh Chromium 158 session for each viewport width and device pixel ratio (DPR), then checked the image URL the browser actually loaded. Viewport and preview widths are in CSS pixels.
| Viewport | Preview | DPR | WebP loaded |
|---|---|---|---|
| 360 px | 290 px | 1× | 320w WebP |
| 360 px | 290 px | 2× | 768w WebP |
| 360 px | 290 px | 3× | 800w WebP |
| 390 px | 320 px | 1× | 320w WebP |
| 390 px | 320 px | 2× | 768w WebP |
| 640 px | 570 px | 1× | 768w WebP |
| 768 px | 327 px | 1× | 480w WebP |
| 768 px | 327 px | 2× | 768w WebP |
| 1440 px | 408 px | 1× | 480w WebP |
| 1440 px | 408 px | 2× | 800w WebP |
At 640 px the preview fills one column. At 768 px the two images sit side by side, so the preview gets narrower and Chromium loads a smaller file at 1×. Your browser may choose differently or reuse a cached file. Check the WebP loaded caption above for your result.
Use responsive WebP images with srcset and sizes
This example uses a card up to 400 pixels wide, with 20 pixels of space on each side on narrow screens. If you host the files yourself, replace the image URLs and adjust sizes to match your layout.
At a 360 px viewport, the copied snippet gives the image 320 CSS pixels of space. At 2× pixel density, that calls for about 640 image pixels. The on-page preview uses its own layout, so use the measurements above for that preview.
The ZIP includes the original JPEG, all four WebPs, and a standalone demo. Unzip it and open index.html to try the example offline.
See how we used this page to test crawler access in the SEO audit.
Back to Webp Me Daddy
