The short answer
Upload images at roughly twice the width they display, then compress them. A full-width hero wants about 2,000 to 2,500 pixels wide, an in-post photo 1,200 to 1,600, a thumbnail 600 to 800, and a social share image exactly 1,200 by 630. Aim to keep most photos under 200 KB.
Key takeaways
- Size to the space, then double it. Modern screens pack two physical pixels into every one you design with.
- Pixel dimensions and file size are separate problems. Get the dimensions right, then compress.
- WebP is the sensible default now, at roughly 96% browser support and files 25 to 34% smaller than JPEG.
- Logos and icons should be SVG, not PNG. Vector art has no resolution to run out of.
- A single 1200 by 630 image satisfies the published specs for both Facebook and X.
The right image size for a website is roughly twice the width it displays at: a full-width hero wants about 2,000 to 2,500 pixels, an in-post photo 1,200 to 1,600, and a thumbnail 600 to 800. That answers the pixel side. The other half is file weight, and getting that wrong is what actually slows a site down. Get the first number wrong and the picture looks soft. Get the second wrong and the page crawls on a phone. Below is the best image size for a website by use, the formats worth using in 2026, and how to compress images for a website without visibly wrecking them.
One number for scale before we start. The 2024 HTTP Archive Web Almanac measured the median desktop homepage loading 1,054 KB of images and the median mobile one 900 KB, which is roughly 40% of the whole page. Images are usually the heaviest thing you control.
The best image size for a website, by where it appears
| Where it appears | Upload it this wide | Aim for | Format |
|---|---|---|---|
| Full-width hero or banner | 2,000 to 2,500 px | Under 300 KB | WebP or JPG |
| In-post blog or article photo | 1,200 to 1,600 px | Under 150 KB | WebP or JPG |
| Product photo | 2,048 px square | Under 250 KB | WebP or JPG |
| Team headshot or staff photo | 800 px square | Under 80 KB | WebP or JPG |
| Thumbnail or card image | 600 to 800 px | Under 60 KB | WebP or JPG |
| Logo in the header | Vector, or 2x its display width | Under 30 KB | SVG, or PNG |
| Favicon (the browser tab icon) | 512 x 512 px source | Under 100 KB | PNG, plus SVG |
| Social share image (Open Graph) | 1,200 x 630 px | Under 1 MB | JPG or PNG |
Some of those numbers are ours, drawn from sizing images for client sites, and some come straight from the platforms. Squarespace publishes both: it calls a width of 2,500 pixels ideal for most images, warns that anything under 1,500 pixels wide can look blurry, and asks you to keep files at 500 KB or less. Our targets are tighter than 500 KB because 500 KB times eight images is a slow page.
The rule behind every number in that table: double the display width
Screens have two kinds of pixels. The ones you design with, and the physical ones the screen actually has. Retina and most modern phone displays pack two or more physical pixels into each design pixel, a ratio browsers call device pixel ratio. Google's own performance guidance puts it plainly: on a device with a ratio of 2, an image displayed in a 500 by 500 slot needs to be 1,000 by 1,000 to look sharp.
So the process is short. Measure the space in your browser (right-click, Inspect, read the rendered width), double it, upload that. If the number lands above your platform's recommended maximum, use the platform's number instead.
You may see advice to export at 3x for the newest phones. Skip it. The same Google guidance notes that in most cases the human eye can't benefit from a ratio of 3, and the file size cost is real: MDN's own responsive images example has a 320-pixel photo at 39 KB and the 640-pixel version of it at 93 KB. Going a step further again buys you almost nothing and costs plenty.
Which format to use
| Format | Use it for | Browser support | Worth knowing |
|---|---|---|---|
| JPG | Photographs, when you need maximum compatibility | Universal | No transparency. Still 32% of images served on the web. |
| PNG | Flat graphics, screenshots, anything needing transparency | Universal | Wasteful for photographs. Great for a logo when SVG isn't an option. |
| WebP | The sensible default for nearly everything | About 97% | Google measures WebP as 26% smaller than PNG lossless and 25 to 34% smaller than JPEG. |
| AVIF | Photos where you want the smallest possible file | About 95% | web.dev reports better than 50% savings against JPEG in some cases. Slower to create. |
| SVG | Logos, icons, line art, simple illustration | Universal | Vector, so there is no resolution to run out of. Useless for photographs. |
If you want one rule: photographs as WebP, logos and icons as SVG, and PNG only when you need transparency on something SVG can't describe. Most platforms now convert uploads to WebP or AVIF for you, so you may be getting this for free without knowing it. Upload a good JPG or PNG and let the platform do the conversion.
How to compress images for a website without losing quality
Compression removes detail your eye wasn't going to notice. Push it gently and a photo goes from 2 MB to 150 KB with no visible difference. Push it hard and you get blotchy skies and halos around text. The line between those two sits around 75 to 85 on the quality slider in most tools, which is why Google's own Lighthouse audit tests your images by re-saving them at quality 85 and flagging anything that could shed 4 KiB or more.
How to compress images for a website, in the order that wastes least of your time:
- 1Resize first, compress second. Cutting a 6,000-pixel camera original down to 1,600 removes more weight than any compression setting will. Doing it the other way round is wasted effort.
- 2Set quality to 80 and look at the result at full size. Not the thumbnail. Blocking shows up in gradients and flat color, so check a sky or a plain wall before you check a face.
- 3Convert to WebP. On the same photo this usually takes another quarter off with no visible change.
- 4Check the file size against the table above. If a hero image is still over 400 KB, the dimensions are probably still too big.
- 5Do one image end to end before you batch forty. If the first one holds up on a real phone, the rest will.
Free tools that do this well
- Squoosh (squoosh.app). Built by Google's Chrome Labs, free, with a slider and a side-by-side before and after so you can see the exact moment quality breaks. It runs entirely in your browser, so the images never leave your computer. This is the one to learn.
- TinyPNG (tinypng.com). Drag and drop, no settings to think about, good results. The free tier takes up to 20 images at a time, 5 MB each, and handles PNG, JPEG, WebP and AVIF.
- ImageOptim (imageoptim.com/mac). A free, open-source Mac app. Drop a folder on it and it rewrites every file in place, also stripping the camera metadata riding along inside.
- GIMP (gimp.org). Free and open source, on every platform. Overkill for compression alone, but if you also need to crop, resize and export properly, it's the free option that does all of it.
Two sizes people get wrong constantly
The favicon is the first. Google's guidance is a square image, at least 8 by 8 pixels and preferably larger than 48 by 48, and it supports ICO, PNG, GIF, JPEG and a few others. Older advice about sticking to exact multiples of 48 is no longer in Google's documentation, so don't lose an afternoon to it. In practice, keep a 512 by 512 PNG master: WordPress asks for at least 512 square, Squarespace wants 100 to 300 pixels and under 100 KB, and Shopify shrinks whatever you give it to 32 by 32.
The logo is the second, and it's the one that generates the most complaints. If your header logo displays at 300 pixels wide, a 300-pixel PNG will look soft on every modern phone. Export it at 600, or better, use SVG and stop thinking about it. There's a whole page on why a logo goes blurry and how to fix it properly if that's the problem that brought you here.
When it's worth handing this off
If you post a few photos a month, do it yourself. Squoosh and ten minutes will get you a genuinely fast site, and you'll never have to ask anyone. It stops being sensible around the point where you're loading dozens of product shots, or where the images already on the site are the reason it's slow and nobody wants to redo four hundred of them by hand. That's the sort of thing our maintenance plans cover, from $99 a month, and we're in Mill Creek just north of Seattle if you'd rather talk it through.
Either way, the habit matters more than the tool. Size to the space, double it, compress to 80, check it on a phone. Do that every time and images stop being something that goes wrong.
Related services
More website answers
Every question in this series, from Website Problems, Solved.
Symptoms & emergencies22
- What Size Should Images Be for a Website? A Plain Guide With Numbers (you are here)
- Why Is My Logo Blurry on My Website? How to Fix It for Good
- Images Not Loading on My Website? Nine Causes, Checked in Order
- Why Is My Website Down? How to Find Out and Fix It
- Why Does My Website Say "Account Suspended"?
- Error Establishing a Database Connection: What It Means
- Why Is My Contact Form Not Sending Emails?
- White Screen of Death on WordPress: What to Do Now
- Why Is My Website Showing "Not Secure" in Chrome?
- Squarespace Site Not Showing Up on Google? Here's Why
- Why Did Google Remove My Website From Search Results?
- Why Did My Website Traffic Suddenly Drop? Top Causes
- Why Is My Website Sending Spam Emails? What It Means
- 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 or Broken?
- How to Tell If Your Website Has Been Hacked: 9 Signs
- "This Site May Be Hacked": How to Remove Google's Warning
- "Deceptive Site Ahead" Warning: How to Fix It Fast
- How to Make Your Website Load Faster
- Why Is My Website Not Showing Up on Google?
- 10 Signs Your Business Website Needs a Redesign
What happens if...15
- Hosting Company Shut Down? What to Do About Your Website in the Next 24 Hours
- How to Get Your Website Files From Your Hosting Company
- Hosting Expired and the Website Is Down: What Is Still Recoverable
- How to Recover a Deleted Website (Backups, the Host, and the Wayback Machine)
- How to Move a Website to a New Host Without Downtime
- Is My Web Host Going Out of Business? The Signs, and What to Do Before It Does
- What Happens If You Don't Update WordPress Plugins?
- What Happens If Your SSL Certificate Expires?
- What Happens If Your Domain Name Expires? A Timeline
- What Happens If Your Web Host Goes Out of Business?
- What Happens If You Stop Paying Your Web Developer?
- Can an Old Website Hurt Your Google Ranking?
- Is an Outdated Website a Liability for Your Business?
- Why Are My Business Emails Going to Spam?
- What Happens If You Don't Maintain Your Website?
Cost & pricing9
- Web Developer Hourly Rate: What Small Businesses Actually Pay in 2026
- How Much Does It Cost to Update a Website? Real Ranges by Job
- How Much Does It Cost to Fix a Hacked WordPress Site?
- Why Is Website Maintenance So Expensive? A Breakdown
- Hourly Rate vs. Monthly Retainer for Website Updates
- How Much Do Freelancers Charge for Website Maintenance?
- How Much Does WordPress Maintenance Cost Per Month?
- How Much Does Squarespace Maintenance Cost?
- How Much Does Website Maintenance Cost?
Plans & hiring11
- Website Management for Dentists: What It Covers, What It Costs
- Do I Need a Website Maintenance Plan? An Honest Answer
- Maintenance Plan vs. Pay As You Go: Which Actually Wins
- One-Time Website Fix vs. Ongoing Care: Which Do You Need
- Does a Simple Website Need a Maintenance Plan?
- 12 Questions to Ask a Website Maintenance Company
- Freelancer vs. Agency for Website Maintenance
- What to Look For in a Website Maintenance Contract
- Is Your Website Maintenance Plan a Scam? How to Tell
- Website Maintenance Checklist for Non-Technical Owners
- What Does Website Maintenance Include? (And Why It Matters)
Ownership & switching15
- How to Find Out Who Built Your Website (and Who Still Has the Keys)
- How to Find Out Who Owns a Domain Name (Including Your Own)
- Locked Out of Your Own Website? How to Get Access Back
- How to Transfer a Website to a New Developer Without Losing Anything
- The Website Ownership Checklist: What a Small Business Should Actually Hold
- What Is My Website Built With? How to Check in Seconds
- How to Find Out Who Hosts and Manages Your Website
- Your Web Developer Disappeared: What to Do Now
- How to Switch Web Hosting Without Losing Your Email
- Who Is My Email Provider? How to Find Out in Two Minutes
- How to Fire Your Web Developer (Without Losing Your Site)
- Can You Maintain Your Own Website Without Coding?
- How Often Should You Update Your Website Content?
- How to Back Up a WordPress Site Yourself (Two Ways)
- Do You Really Own Your Website? How to Check Before You Hire
Platform-specific7
- Do Squarespace Sites Need Maintenance? The Honest Answer
- Do Wix Websites Need Maintenance? What Owners Should Know
- Shopify Maintenance: What Store Owners Actually Need
- WordPress Maintenance Checklist for Non-Developers
- WordPress vs. Squarespace: Which Is Easier to Maintain?
- GoDaddy Website Builder vs. WordPress for Small Business
- How to Keep Your WordPress Website Secure
The Venbit Team
Web design & SEO, Seattle
Venbit is a Seattle-area web design, SEO, and digital marketing studio. 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
- Meta for Developers, Sharing Best Practices for Websites and Mobile Apps
- web.dev, Image performance (device pixel ratio and sizing)
- Google Developers, A new image format for the web (WebP compression figures)
- web.dev, Use AVIF to compress images
- Chrome for Developers, Lighthouse: Efficiently encode images
- HTTP Archive Web Almanac 2024, Page Weight
- Squarespace Help Center, Formatting your images for display on the web
- Google Search Central, Define a favicon to show in search results
- MDN, Responsive images
- Can I use, WebP and AVIF browser support