What size should images be on a website?
Images are usually the heaviest part of a page. A photo straight from a phone can weigh 3 to 5 MB, while the same picture prepared for the web looks identical at 100 to 200 KB. Here is how to prepare each kind.
How wide
Size an image for the widest it is ever shown, then double it for phones and laptops with sharp (high-density) screens, which use two physical pixels per CSS pixel. More than that is wasted.
| Image | Width to save |
|---|---|
| Full-width banner or hero | 1920 px (2560 px if it must look crisp on large sharp screens) |
| Picture inside an article or page column | 1200 to 1600 px |
| Product photo with zoom | 1600 to 2000 px, square if your theme shows squares |
| Card, thumbnail, team photo | twice the displayed width, often 600 to 800 px |
| Logo and icons | SVG, which has no width at all |
To find the displayed width, open the page on a computer, right-click the image, choose Inspect, and hover the image tag: the browser shows the size it is drawn at.
How heavy
There is no official limit, but these targets keep most pages fast on mobile data:
- Banner or hero: under about 200 to 300 KB.
- Article and product images: under about 150 KB each.
- Thumbnails: under about 50 KB.
The banner matters most. It is often the largest element on screen when the page loads, which Google measures as Largest Contentful Paint, one of the Core Web Vitals. PageSpeed Insights flags images that are larger than they are displayed or saved in an older format.
Which format
- Photos: WebP, usually about a quarter to a third smaller than a JPG of the same visible quality, and supported by all current browsers. JPG is fine where WebP is not accepted, such as some email tools.
- Screenshots, diagrams, flat graphics: PNG or lossless WebP. JPG blurs sharp text edges.
- Needs a transparent background: PNG or WebP; JPG has no transparency.
- Logos and simple icons: SVG stays sharp at every size and is usually tiny. If you only have a PNG of your logo, Image to SVG can trace a simple one.
Prepare an image in three steps
- Resize image: type the width from the table; the height follows.
- Convert image: choose WebP for photos (or PNG for graphics) at a high quality setting. Check the KB shown.
- Still above your target? Compress to KB lets you type the size you want and finds the best quality that fits.
Do it before uploading. Many site builders shrink large uploads, but they keep the heavy original, and some themes still serve it. WordPress, for example, scales down uploads larger than 2560 px and creates smaller copies, which helps, yet it cannot fix a badly cropped or oversized banner chosen by the theme.
On the page
- Give every
<img>itswidthandheightattributes, so the page does not jump while images load. - Add
loading="lazy"to images further down the page, but never to the banner at the top: it must load first. - Write a short
alttext that says what the image shows. It helps screen reader users and image search. - Name files with words, such as
blue-ceramic-mug.webp, notIMG_4821.webp.