Image size for websites: dimensions and file sizes that load fast
Short answer Make each photo about twice as wide as the space it fills on screen, so it stays sharp on phones, and no wider. A full-width banner rarely needs more than 2,500 pixels. Then compress it: Squarespace suggests 500 KB or less, and small photos should be far lighter. Save as WebP or JPEG, or let your builder convert.
Want help applying this to your business? Talk it through on a free 30-minute call.
Book a callWhat size should images be for a website?
Two numbers matter: the dimensions (how many pixels wide and tall) and the file size (how many kilobytes the visitor downloads). Get the first right, then shrink the second.
Dimensions: twice the width it's shown at. Phones and newer laptops pack two or three screen pixels into each pixel your layout uses. Google's Lighthouse audit already counts this: "The rendered size also accounts for device pixel ratio" (Chrome for Developers). So doubling keeps photos sharp. Going further only adds weight:
"Ideally, your page should never serve images that are larger than the version that's rendered on the user's screen." (Chrome for Developers: Properly size images)
| Where the photo sits | If it shows this wide | Upload this wide |
|---|---|---|
| Full-width banner (hero) | 1,250 px | 2,500 px |
| Photo in the page text | 700 px | 1,400 px |
| Team or gallery thumbnail | 300 px | 600 px |
| Logo | 200 px | 400 px, or SVG |
The left columns are layout examples, not rules; measure your own. Squarespace sets the top end: "A width of 2500px works for most images," and images narrower than 1,500 px may look blurry (Squarespace Help).
File size: as light as still looks good. Squarespace's advice: "For faster loading, we recommend 500 KB or smaller" (same page). Treat that as the ceiling for a big banner. A thumbnail should be a small fraction of it.
Why image size slows a page down
Images are usually the heaviest thing on a page. Google says they "are often the largest contributor to overall page size, which can make pages slow and expensive to load" (Google Search Central).
The 2025 Web Almanac, which measures millions of sites, found the median mobile home page loads 911 KB of images, the biggest share of any file type (HTTP Archive). One uncompressed banner can double that on its own.
Phones pay most. web.dev puts it plainly:
"Serving desktop-sized images to mobile devices can use 2–4x more data than needed." (web.dev: Serve responsive images)
How much speed counts for Google ranking is its own question: see Core Web Vitals and ranking.
How do I find how wide an image shows on my site?
Open the page on a computer, right-click the photo and choose Inspect. The browser shows the photo's displayed size, such as "700 × 467". Check at full window width, since that's usually the widest it gets.
To see the file's own size before uploading: on a Mac, select it and choose Get Info; on Windows, right-click, Properties, then Details.
JPEG, PNG or WebP: which format is smallest?
| Format | Use it for | Notes |
|---|---|---|
| WebP | Photos and graphics | Google measured WebP 25–34% smaller than JPEG at the same quality, and 26% smaller than PNG for lossless images (Google for Developers) |
| JPEG | Photos, if your tool can't save WebP | Works everywhere |
| PNG | Logos, screenshots, images needing a see-through background | Heavy for photos |
| SVG | Logos and icons drawn as shapes | Stays sharp at any size |
| AVIF | Photos | Newer; Shopify serves it automatically where the browser supports it (Shopify Help Center) |
Google Images indexes "BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF" (Google Search Central), so any of these is safe for search.
How do I compress an image without losing quality?
Resize first, then compress. Squoosh, a free compression app that runs in your browser, is maintained by Google's web team (Chrome for Developers). Lower the quality until you can see a difference, then nudge it back up.
To check your work, run the page through PageSpeed Insights. Its Lighthouse test re-saves each JPEG at quality 85 and flags any image that would shrink by 4 KiB or more (same page). It also flags images 4 KiB or more bigger than they're shown (Chrome for Developers).
Does my website builder resize images for me?
Mostly, yes. Upload one good copy at the right width, and the platform makes smaller copies for phones.
| Platform | What it does | Upload limit |
|---|---|---|
| Squarespace | "We create up to seven versions of every image you upload" and serves the right one per device | 20 MB (Squarespace Help) |
| Shopify | Picks the best format, including WebP and AVIF, per browser; themes lazy-load, showing a small version while the full image loads | 20 MB and 20 megapixels (Shopify Help Center) |
| WordPress | Since version 5.3, shrinks uploads wider or taller than 2,560 px; keeps the original on the server | Set by your host (Make WordPress Core) |
What builders don't do: they won't fix a blurry photo, and an image stretched to fill the screen still downloads the big copy. Compressing before upload still helps. Platform trade-offs: Wix, Squarespace or WordPress for SEO.
What size is a social share or preview image?
The image shown when someone shares your link is its own size. Meta says to "Use images that are at least 1200 x 630 pixels for the best display on high resolution devices," with a file under 8 MB (Meta for Developers). Google Discover favors large images "at least 1200 px wide" (Google Search Central). One 1,200 × 630 image covers both.
Example
Illustrative cases, round numbers.
A landscaper's homepage banner
The photo came off a camera at 6,000 px wide and 9 MB. The banner shows 1,250 px wide. Resized to 2,500 px and saved as WebP, it lands near 400 KB and looks the same.
A dentist's team page
Eight headshots show 300 px wide, but each was uploaded at full size. Resized to 600 px, each drops well under 100 KB, and the page stops crawling in on mobile data.
A plumber's logo
A 2 MB PNG logo shows 200 px wide in the header. Swapped for an SVG from the designer, it is a few kilobytes and sharp on every screen.
FAQ
What is the best image size for a website in pixels?
No single size. Double the width it shows at, and keep full-width banners near 2,500 px, which Squarespace says works for most images.
How many KB should a website image be?
Squarespace recommends 500 KB or smaller for faster loading. Use that as the ceiling for large banners and aim far lower for small photos.
Does image size affect SEO?
Indirectly. Heavy images slow the page, and Google uses page speed measures in ranking, though relevance comes first. See Core Web Vitals.
Different for you?
- Images are small but the site is still slow: Core Web Vitals and website speed.
- Choosing a builder that handles images for you: Wix, Squarespace or WordPress for SEO.
- Building a trade site that loads fast on a phone: HVAC and plumber website design.
- Fast site, still no calls: website not getting leads.
- Want a site built light from the start: Website Agent.