The short answer
Export a website image at twice the width it fills on the page, then compress it. That is about 2,500 pixels wide for a full-width banner, 1,600 for a photo inside a post, 800 for a card or thumbnail, and 1,200 by 630 for a share picture. Keep a banner photo at or under 500 KB.
Two numbers decide whether a picture works on a website. Pixel width decides how sharp it looks, and file size decides how fast it arrives. They are fixed separately: export at the right width, then compress. Pick the spot below for the width, the file size to aim for and the format.
Find your size
What size should your image be?
Pick where the image goes on the page. Your answers stay in your browser.
Where will the image go?
Image sizes for each spot on a page
| Where it appears | Export it this wide | Aim for | Format |
|---|---|---|---|
| Full-width banner | 2,500 to 2,560 px | 500 KB or less | WebP or JPEG |
| Photo inside a page or post | 1,600 px | About 200 KB | WebP or JPEG |
| Image beside text | 1,200 px | About 150 KB | WebP or JPEG |
| Card or thumbnail | 800 px | Under 80 KB | WebP or JPEG |
| Team headshot | 800 by 800 px | Under 80 KB | WebP or JPEG |
| Product photo | 2,048 by 2,048 px | Under 300 KB | WebP, JPEG or PNG |
| Logo in the header | Vector, or twice its display width | Under 30 KB | SVG, or PNG |
| Browser tab icon | 512 by 512 px | Under 100 KB | PNG |
| Share picture | 1,200 by 630 px | Under 1 MB | JPEG or PNG |
The file sizes are the targets we work to on the sites we look after. Only the 500 KB figure is published, by Squarespace.
Why twice the display width
A page is laid out in its own pixels, and phones and newer laptops draw each one with two or three screen pixels across. Google's web.dev course gives the sum: on a screen with a pixel ratio of 2, an image shown in a 500 by 500 space is best at 1,000 by 1,000. The same page says the eye rarely benefits from a ratio of 3, so stop at twice.
To measure a space, open the page in Chrome on a computer, right-click an image already in that spot and choose Inspect. Hover the highlighted img line and read the rendered size. Double the width, and if the result passes your platform's ceiling, use the ceiling.
Resize first, then compress
Images are the heaviest thing on most pages. The HTTP Archive's 2024 Web Almanac found that the median home page with images loads 1,054 KB of them on desktop and 900 KB on mobile, more than any other kind of file except video. If the site already drags on a phone, heavy images are one of the causes in why a website is slow on mobile.
- 1
Resize the original
Cutting a 6,000-pixel camera photo down to 1,600 removes more weight than any quality setting.
- 2
Set quality near 80 and look at full size
Compression damage shows first in skies, shadows and flat color, so check those before you check a face.
Squoosh
Free at squoosh.app, from GoogleChromeLabs, with a before-and-after slider. It compresses in your browser and does not send the photo to a server.
TinyPNG
Drag and drop at tinypng.com. The free version takes up to 20 images at a time, 5 MB each.
WebP for photos, SVG for logos
| Format | Use it for | Worth knowing |
|---|---|---|
| WebP | Photos and most graphics | Google measures lossy WebP 25 to 34% smaller than a comparable JPEG, and lossless WebP 26% smaller than PNG. |
| AVIF | Large photos where every kilobyte counts | web.dev has seen savings above 50% against JPEG, depending on the image. |
| JPEG | Photos, anywhere at all | No transparency. Every browser and every tool reads it. |
| PNG | Logos and graphics that need a transparent background | Heavy for photographs. |
| SVG | Logos, icons and line art | Drawn from shapes, so it is sharp at any size. Not for photographs. |
Chrome, Edge, Firefox and Safari all display WebP and AVIF. Wix converts uploads to AVIF and Squarespace displays every image as WebP, so on those two a well-sized JPEG upload is enough. If a logo still looks soft after this, work through the causes of a blurry logo.
The share picture and the tab icon have fixed sizes
These two do not depend on your layout. Meta asks for a share picture of at least 1,200 by 630 pixels and no larger than 8 MB. For the tab icon, WordPress asks for a square of at least 512 by 512 pixels, and Google's search results need a square favicon, with larger than 48 by 48 recommended.
When the pictures are already on the site
If an image already looks soft, find why a website image looks blurry before you export it again, because the file is not always the cause. Hundreds of product shots, or a site where every image is too heavy, is work our website maintenance plans take on.
Get help from Venbit
More website guides
Every question in this series, from Fix website problems.
Symptoms & emergencies17
- What Size Should Images Be for a Website? (you are here)
- Why Is My Logo Blurry on My Website?
- Why Are Images Not Loading on My Website?
- Why Is My Website Down Right Now? How to Fix It
- Why Does My Website Say "This Account Has Been Suspended"?
- Why Is My Contact Form Not Sending Emails?
- There Has Been a Critical Error on This Website: How to Fix It
- Why Is My Website Showing "Not Secure" in Chrome?
- Why Is My Squarespace Site Not Showing Up on Google?
- Why Did Google Remove My Website From Search Results?
- Why Did My Website Traffic Suddenly Drop? Top Causes
- Why Is My Website Slow on Mobile but Fast on Desktop?
- Why Does My Website Look Broken on My Phone?
- Why Do My Website Images Look Blurry?
- How to Tell If Your Website Has Been Hacked
- Why Google Shows "This Site May Be Hacked" and How to Clear It
- How to Fix the "Deceptive Site Ahead" Warning
What happens if...11
- What to Do When Your Hosting Company Shuts Down
- How to Get Your Website Files From Your Hosting Company
- Hosting Expired and Your Website Is Down? How to Get It Back
- How to Recover a Deleted Website
- How to Move a Website to a New Host Without Downtime
- Is My Web Host Going Out of Business?
- What Happens If My SSL Certificate Expires?
- What Happens If My Domain Name Expires?
- What Happens If Your Web Host Goes Out of Business?
- What Happens If You Stop Paying Your Web Developer?
- Why Are My Business Emails Going to Spam?
Plans & hiring1
Ownership & switching11
- How to Find Out Who Built Your Website
- How to Find Out Who Owns a Domain Name
- Locked Out of Your Own Website? How to Get Access Back
- How to Transfer a Website to a New Developer
- Website Ownership Checklist for a Small Business
- What Is My Website Built With?
- Who Hosts My Website and Domain?
- What to Do When Your Web Developer Disappears
- How to Switch Web Hosting Without Losing Your Email
- Who Is My Email Provider?
- How to Back Up a WordPress Website Yourself
Platform-specific3
Seattle & local1
The Venbit Team
Web design & SEO, Mill Creek, WA
Venbit is a web design, SEO, and digital marketing studio in Mill Creek, Washington. Since 2011 we've designed, built, and ranked small-business websites for clients across the Puget Sound and around the country, so the numbers and advice here come from real projects, not a content mill.
Sources
- web.dev, Image performance (device pixel ratio and sizing)
- Squarespace Help Center, Formatting your images for display on the web
- Make WordPress Core, Introducing handling of big images in WordPress 5.3
- WordPress.org Documentation, Image block (Resolution setting)
- WordPress.org Plugins, Safe SVG
- Wix Help Center, Site Performance: Optimizing Site Media
- Shopify Help Center, Product media types
- Meta for Developers, Sharing Best Practices for Websites and Mobile Apps
- WordPress.org Documentation, Site Editor Identity (site icon size)
- Google Search Central, Define a favicon to show in search results
- Google for Developers, An image format for the Web (WebP compression figures)
- web.dev, Use AVIF to compress images
- MDN, Image file type and format guide (browser support)
- HTTP Archive Web Almanac 2024, Page Weight
- Squoosh, GoogleChromeLabs on GitHub
- TinyPNG, free image compression

