Properly size images is a Lighthouse speed check that flags pictures whose file is much bigger than the space they fill on screen, so the visitor downloads pixels nobody sees. A photo 3,000 pixels wide shown in a 400 pixel box still costs the full download. The fix is to serve each device a file close to the size it will really show.
What is “properly size images”? #
It is the name of an audit in Google Lighthouse, the test that also runs inside PageSpeed Insights. Chrome’s page on the properly size images audit says Lighthouse compares the size each image is drawn at with the size of the real file. It says an image fails if its rendered size is at least 4 KiB smaller than its actual size, and that the rendered size also takes account of device pixel ratio. Failing images are listed with the KiB you could save.
The same page notes that in Lighthouse 13 this check moved into a wider “Improve image delivery” insight. So you may see either name, depending on the version of the tool you use.
What is device pixel ratio? #
Many phones and laptops pack 2 or 3 physical pixels into each CSS pixel. A slot 400 CSS pixels wide on such a screen looks sharp with a file about 800 to 1,200 pixels wide. Lighthouse allows for this, so a file that is 2 times the slot is not a fault on a high-density screen. A file 6 times the slot usually is.
Why does it matter for search? #
Oversized images slow pages down, and loading speed is one of the things the Core Web Vitals measure. The web.dev article on serving responsive images says sending desktop-sized images to mobile devices can use 2 to 4 times more data than needed. It adds that smaller images can improve Largest Contentful Paint when the largest element on screen is an image, and leave more bandwidth for other files. With mobile-first indexing, the phone view is the one that counts most.
Why does it matter for AI answers? #
AI assistants mostly read your text, so a heavy hero photo will not stop a quote by itself. It still matters in 2 ways. First, people who click through from an AI answer arrive on a phone more often than not, and a slow page loses them. Second, a page that is quick and light is cheaper for every crawler to fetch. Good image SEO and clear alt text help both search and AI read what a picture shows.
How do you fix it? #
- Make a few sizes of each image. web.dev says serving 3 to 5 sizes is common. Our free image resizer does this in the browser.
- List them with srcset and describe the slot with sizes. The browser then picks. MDN’s responsive images guide says that if there is no exact match, the browser will choose the first image that is bigger than the slot and scale it down.
- Keep a sensible fallback in src. web.dev says it should be large enough to work on all device sizes, for browsers that ignore srcset.
- Compress as well. Size and encoding are separate problems. Resize first, then see efficiently encode images, image compression and WebP and AVIF.
- Use SVG for logos and icons. Chrome’s audit page says vector images scale to any size with little code.
- On WordPress, the audit page advises against Full Size images unless their dimensions suit how they are used. Pick a smaller size in the image block. Our WordPress SEO page covers more.
What does the code look like? #
<img src="shed-800.jpg"
srcset="shed-400.jpg 400w, shed-800.jpg 800w, shed-1600.jpg 1600w"
sizes="(max-width: 600px) 100vw, 50vw"
width="800" height="533"
alt="Green timber garden shed with double doors">
The w numbers tell the browser how wide each file is without fetching it. The sizes value says the picture fills the full screen on narrow devices and half of it on wider ones. The width and height let the browser hold the space before the file arrives, which helps Cumulative Layout Shift.
Common mistakes #
- Shrinking with CSS only. Setting width: 300px on a 4,000 pixel file makes it look small but downloads it all.
- A wrong sizes value. If sizes says 100vw for an image that fills a third of the page, the browser fetches a file 3 times too wide.
- One giant fallback. A huge src with no srcset means every device gets the biggest file.
- Uploading straight from the camera. Phone photos are often 4,000 pixels wide or more and several megabytes.
- Lazy loading the main image. Lazy loading is good below the fold, but the first big picture above the fold should load at once.
- Fixing size but not format. A well sized JPEG can still be twice as heavy as it needs to be.
A worked example #
A garden shed seller has a product page with 6 photos. Each was uploaded at 4,032 by 3,024 pixels, about 3.5 MB. On a phone the gallery shows each at about 360 CSS pixels wide on a screen with a pixel ratio of 3, so roughly 1,080 device pixels is enough. Lighthouse lists all 6 under properly size images. The owner makes copies at 480, 1,080 and 1,600 pixels wide, adds srcset and sizes, and converts them to WebP. The phone now fetches the 1,080 files. Our data size converter helps read the KiB and MB figures the report prints. The page gets lighter, and the LCP photo arrives sooner. The exact gain will differ for every site, so measure before and after.
How to check it #
- Run Lighthouse in Chrome DevTools, or PageSpeed Insights, and look for properly size images or improve image delivery.
- Scan a page’s pictures, sizes and alt text with our free image SEO checker.
- Resize and shrink files with the image compressor.
- 2 more of our tools will help here once they open: the Core Web Vitals checker (coming soon) and the page speed checker (coming soon).
- For a whole site, the image SEO audit (Pro), asset diet report (Pro) and page speed monitor (Pro) watch every page over time.
Questions #
Is this the same as image compression? #
No. Sizing is about pixel dimensions. Compression is about how many bytes each pixel costs. You usually need both.
Will a CDN fix it for me? #
Some image services resize on request, and Chrome’s audit page lists image CDNs as one fix. A plain CDN that only copies files does not resize them.
Where can I learn more about speed? #
Start with why your website is slow, then browse the speed topic.
Related words #
Sources #
- Chrome for Developers: Properly size images, checked 25 November 2026
- web.dev: Serve responsive images, checked 25 November 2026
- MDN: Responsive images, checked 25 November 2026
Updated 25 November 2026 by URSY.
Cite this page: Properly size images. URSY. Updated 25 November 2026. https://ursy.com/wiki/properly-size-images/ · Section links
Tools for this
- LiveImage SEO Checkeralt text, AVIF/WebP, sizes and licence markupRun the check →
- LiveProduct Page Checkerschema, images, reviews, delivery info, AI readinessRun the check →
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →
- ProWhat AI readsAI reads of llms.txt, .md, .json, images, feedsIn URSY Pro →
- ProImage SEO auditAlt text, sizes, formats, image sitemapsIn URSY Pro →