How heavy are the images on this page?
Enter the address of a page. You get every image on it with its address, format, file size, alt text, width and height and lazy loading, with large files, missing sizes and old formats flagged, and a CSV to download.
What it checks
- Every image in the HTML. img tags, the sources inside picture elements, and background images set in style attributes. For an image with srcset, the largest candidate is checked, because that is the biggest file a visitor may get. An image that a lazy-loading script swaps in from data-src is checked at that address.
- Format and size, from the server. Each image is asked for its headers only: the format comes from its Content-Type and the size from its Content-Length. Up to 50 different images per page, three at a time.
- Large files. Files over 200 KB. This is Leonscope's own line to keep the list short, not a rule from Google or anyone else.
- Old formats. JPEG, PNG and GIF files of 10 KB or more. MDN's image format guide suggests WebP or AVIF for raster images, as they generally compress better. A JPEG or PNG fallback inside a picture that already offers WebP or AVIF is not flagged.
- Missing width and height. img tags without both attributes. web.dev advises always setting them, so the browser can reserve the space before the image arrives and the text does not jump.
- Alt text and lazy loading. Shown as written. For a full check of alt text, use the accessibility check.
What it can't see
Images that JavaScript adds, and images named in stylesheets or style blocks rather than in style attributes. Icons, video posters and images inside noscript are left out.
Formats picked for the browser. Some image services send WebP or AVIF only to browsers that say they accept them. This check asks the way a simple fetcher does, so such a service may show JPEG or PNG here.
A size the server does not send. Some servers send images in pieces without a Content-Length, so the size shows as unknown.
The pixel size of each file and whether it is far larger than the space it fills. The product image checker reads the pixel size of files you choose.
More than 50 different images on one page, pages behind a login, and anything after the first 750 KB of a page.
Questions
Why 200 KB?
It is a line this site draws so the list stays useful. It is not a rule from Google or anyone else. A large photo at the top of a page may need more, an icon far less.
Should every image be WebP or AVIF?
For photos and other raster images, MDN suggests WebP or AVIF, which generally compress better than JPEG, PNG and GIF. Keep SVG for logos and icons drawn as shapes. A picture element lets you offer AVIF or WebP with a JPEG fallback.
Do width and height fix the size an image shows at?
No. Browsers work out the image's proportions from them and keep that space free while it loads. CSS can still make the image fill its column, as long as the height is left to follow, for example with height: auto.
What does data-src mean?
Some themes and plugins put the real address in data-src and a placeholder in src, and a script swaps them when the image scrolls into view. This check reads the real address. Without JavaScript, those images do not show.