Best Image Sizes for Websites in 2026
A practical reference for the image dimensions that actually work on the modern web. Every size below accounts for retina (2×) displays — what users see on phones, laptops, and most desktop monitors built in the last decade.
Want to check whether your own pages match these sizes?
Scan a URL →Quick Answer
If you only need one number per use case, these are the sizes that ship on most production sites today:
- Hero / full-width banner: 1920×1080
- Blog post header: 1200×630 (also works as Open Graph)
- In-article content image: 800×600 to 1200×800
- Thumbnail / card: 400×400
- Avatar / profile photo: 200×200
- Favicon: 32×32 (PNG/ICO) or any size as SVG
Standard Image Sizes for Website Layouts
These are the recommended dimensions for the most common layout slots on a website. Each one is sized for retina displays — meaning the file is roughly twice the pixel dimensions of the visible container so the image stays sharp on high-density screens.
| Image Type | Recommended Size | Aspect Ratio | Notes |
|---|---|---|---|
| Full-width hero | 1920×1080 | 16:9 | Use srcset for smaller viewports |
| Blog post header | 1200×630 | ~1.9:1 | Doubles as OG image |
| Content image | 800×600 | 4:3 | Standard within article body |
| Thumbnail | 400×400 | 1:1 | Product cards, grid items |
| Avatar / profile | 200×200 | 1:1 | Accounts for 2× retina |
| Logo | 400×100 | Varies | Use SVG when possible |
| Background image | 1920×1080 | 16:9 | Compress aggressively (quality 60-70) |
| Wide in-article image | 1200×800 | 3:2 | Breaks out of the text column |
| Card / grid item | 600×400 | 3:2 | Listings, related-post grids |
| E-commerce product | 2000×2000 | 1:1 | Square keeps grids tidy; supports zoom |
| Email header | 600×200 | 3:1 | 600px is the safe email body width |
| Icon (raster) | 128×128 | 1:1 | Prefer SVG unless the icon is photographic |
Why these numbers? 1920×1080 is the most common desktop viewport, so a hero image at that size renders 1:1 on the largest audience and scales down cleanly via srcset for everyone else. 1200×630 matches Facebook and LinkedIn's Open Graph recommendation, which means a single asset can serve as both the in-page header and the social preview — saving editorial overhead and keeping branding consistent.
Thumbnails at 400×400 give you 2× density on a 200px container — sharp on retina, small enough that even ten of them on a grid page won't hurt page weight. For logos, prefer SVG: it stays crisp at any resolution and usually weighs less than a PNG.
File Size Budgets by Image Type
Pixel dimensions are only half the answer — the byte weight is what your visitors actually wait for. These are practical budgets to hold yourself to after compression:
| Image type | Target | Hard ceiling | Best format |
|---|---|---|---|
| Hero / banner | 150–300 KB | 500 KB | WebP / AVIF |
| In-article image | 50–150 KB | 200 KB | WebP |
| Thumbnail / card | 10–30 KB | 50 KB | WebP |
| Avatar | 5–15 KB | 25 KB | WebP |
| Logo | 2–10 KB | 30 KB | SVG |
| Product image | 80–200 KB | 300 KB | WebP |
A useful sanity check: the whole page should land under about 1–2 MB, and images are usually the largest share of that. If a single image is above 500 KB, it is almost always either oversized in pixels or saved at an unnecessarily high quality setting.
Common Aspect Ratios
Picking a consistent ratio per context matters more than the exact pixel count — mismatched ratios are what make grids and cards look broken.
| Ratio | Example size | Where it's used |
|---|---|---|
| 16:9 | 1920×1080 | Heroes, video thumbnails, backgrounds |
| 1.91:1 | 1200×630 | Open Graph / social preview cards |
| 3:2 | 1200×800 | Photography, in-article images |
| 4:3 | 800×600 | Classic content images, older cameras |
| 1:1 | 400×400 | Thumbnails, avatars, product grids |
| 4:5 | 1080×1350 | Instagram portrait posts |
| 9:16 | 1080×1920 | Stories, Reels, TikTok |
How to Size Any Image Slot
Tables cover the common cases, but eventually you hit a slot nobody wrote a number for. The method is always the same:
- Measure the rendered width of the slot at its largest — inspect the element and read the layout width in CSS pixels.
- Multiply by 2 for retina. (Going to 3× is rarely worth the bytes; the perceived difference is small on typical content.)
- Cap at about 2500 pixels. Beyond that you are paying for pixels almost nobody will see.
- Generate responsive variants and let the browser choose — 400, 800, 1200, 1600 and 1920 wide covers essentially every viewport.
<img
src="/photo-1200.jpg"
srcset="/photo-400.jpg 400w,
/photo-800.jpg 800w,
/photo-1200.jpg 1200w,
/photo-1600.jpg 1600w"
sizes="(max-width: 768px) 100vw, 800px"
width="1200" height="800"
alt="..." loading="lazy">Always set width and height attributes. They let the browser reserve the right space before the image loads, which prevents layout shift — one of the Core Web Vitals Google measures. To see what your pages are actually serving versus what they render at, run a free image audit.
Best Image Sizes for Social Media & Open Graph
Social previews are easy to get wrong because every platform has slightly different requirements. The good news: a single 1200×630 image satisfies the major ones (Facebook, LinkedIn, Slack, Discord). Twitter/X uses a near-identical 1200×628 — a 2-pixel difference that no one will ever notice.
| Platform | Recommended Size | Min Size |
|---|---|---|
| Open Graph (Facebook, LinkedIn) | 1200×630 | 600×315 |
| Twitter/X (summary_large_image) | 1200×628 | 600×314 |
| Twitter/X (summary) | 240×240 | 144×144 |
| Pinterest pin | 1000×1500 | 600×900 |
Pinterest is the exception: tall 2:3 images perform dramatically better than the standard 1.9:1 social aspect, so it's worth a separate asset if Pinterest is part of your distribution. Keep OG images under 8 MB (Facebook's upper limit) but realistically under 1 MB — most platforms re-encode anything larger.
Best Sizes for Favicons & App Icons
Favicons have gotten more complex than they used to be. A modern site needs at least three: a 32×32 PNG or ICO for browser tabs, a 180×180 Apple touch icon for iOS home screens, and 192×192 plus 512×512 PNGs for Android. If you can supply an SVG favicon, do — Chrome, Firefox, and Safari all support it now and a single file replaces several.
| Icon Type | Size | Format |
|---|---|---|
| Favicon (browser tab) | 32×32 | PNG or ICO |
| Favicon (SVG) | Any (vector) | SVG |
| Apple touch icon | 180×180 | PNG |
| Android Chrome | 192×192, 512×512 | PNG |
| Microsoft tile | 150×150 | PNG |
Retina & HiDPI: When to Use 2× and 3×
Most modern devices have a device pixel ratio (DPR) of 2 or higher, which means the screen has twice as many physical pixels as CSS pixels. An image that's 400 CSS pixels wide on a 2× display is actually rendered using 800 physical pixels — so if your image file is only 400 pixels wide, it gets stretched and looks soft.
- 2× DPR (most common): Serve images at 2× the rendered size. This is the right default for almost everything.
- 3× DPR (flagship phones): Consider 3× for critical hero images only. Above 2×, the visual improvement is marginal but the file size cost is real.
- 1× DPR: Standard displays — natural size equal to rendered size is optimal. Increasingly rare.
The cleanest way to handle this without serving oversized images to everyone is the srcset attribute, which lets the browser pick the right file based on the actual device. See our natural vs rendered dimensions guide for the underlying mechanics.
Common Mistakes With Web Image Sizes
Picking the right dimensions is only half the job. The mistakes below are what actually cause slow pages — even when the "recommended" size was used.
- Uploading the camera original. A 6000×4000 photo from a DSLR displayed at 800×600 is sending the user 50× more data than they need. This is the single most common image performance bug — see our guide on finding oversized images.
- Ignoring rendered vs natural size. A 1920×1080 hero is correct for a full-width slot, but wrong for a 600×400 sidebar slot. The recommended size depends on where the image is rendered, not what it's called.
- Skipping modern formats. WebP cuts file size by ~30% vs JPEG with identical visual quality. AVIF cuts another 50%. Both are supported in every modern browser. There's no reason to ship JPEG-only in 2026.
- Forgetting srcset on responsive layouts. A single 1920×1080 hero served to a phone wastes 1.5 MB of bandwidth. srcset with three or four sizes solves this in about ten lines of HTML.
- Compressing too aggressively on hero images. Quality 60 is fine for backgrounds, terrible for product photos. Match compression to the image's role on the page.
Frequently Asked Questions
What is the best image size for a website?
There is no single best size — it depends on where the image is used. As a rule of thumb: 1920×1080 for full-width hero images, 1200×630 for blog post headers and Open Graph, 800×600 for in-article content, and 400×400 for thumbnails. Always serve the image at roughly 2× its rendered size to look crisp on retina displays.
What are the standard image sizes for the web?
There is no formal standard, but a small set of sizes has become conventional because they match common viewports and social requirements: 1920×1080 for full-width heroes, 1200×630 for blog headers and Open Graph images, 800×600 to 1200×800 for in-article images, 400×400 for thumbnails and cards, 200×200 for avatars, and 32×32 for favicons. Generating responsive variants at 400, 800, 1200, 1600 and 1920 pixels wide covers essentially every viewport via srcset.
What is the ideal image size for a website?
The ideal size is roughly twice the width the image actually renders at, capped at about 2500 pixels. There is no single number that fits every slot — a thumbnail and a hero have very different requirements. Measure the rendered width of the slot, multiply by the device pixel ratio you want to support (usually 2), and use that as the target. On file size, aim for under 200 KB for most content images and under 500 KB for a hero.
What is the best resolution for website images?
Web images should be saved at 72 DPI — print resolution (300 DPI) is meaningless for screens. What matters is pixel dimensions, not DPI. Match the natural pixel dimensions to roughly 2× the size the image will be displayed at.
What is the best file size for website images?
Aim to keep individual images under 200 KB and total page weight under 2 MB. Hero images can go up to 500 KB if necessary. Use WebP or AVIF formats with quality 80–85 — visually indistinguishable from quality 100 at roughly half the file size.
What is the best size for blog post images?
1200×630 pixels is the sweet spot for blog post header images. It matches Open Graph requirements (so the same image works as a social preview), keeps file size reasonable, and scales down cleanly for mobile.
What size should website photos be?
Photos in article content typically work well at 800×600 (4:3) or 1200×800 (3:2). Save at 2× the rendered size if the layout is fixed, or use srcset to let the browser pick the right size for each viewport.
How big should a hero image be?
1920×1080 pixels covers most desktop screens at full width, including 1080p and larger displays. For 4K hero images, 2560×1440 is reasonable but rarely justified — the file size cost usually outweighs the visual benefit.
What is the best image size for mobile?
A 750×500 image at 2× density (1500×1000 natural) covers most mobile viewports. The cleanest approach is to use srcset and let the browser download a smaller version automatically based on viewport width and pixel density.
See exactly which images on your site are oversized, undersized, or just right.
Scan Your WebsiteChecking images at scale?
Bulk-audit hundreds of URLs at once or hit a dimensions API from your own code.
Platform-specific guides
- Shopify Image Sizes: Complete Guide — product, collection, banner
- WordPress Featured Image Size — featured + thumbnail dimensions per theme
- Squarespace Image Sizes — banners, gallery blocks, Pixel Geometry
- Webflow Image Dimensions — hero, CMS, slider, lightbox
- Wix Image Sizes — strips, galleries, Wix Stores, AVIF serving
- E-Commerce Product Image Dimensions — Shopify, WooCommerce, BigCommerce, Magento
- Amazon Product Image Requirements — zoom threshold, white background, formats
- Etsy Image Sizes — listing photos, thumbnail crop, shop banners
Use-case guides
- Hero Image Size — above-the-fold dimensions and LCP impact
- Open Graph Image Size — Facebook, LinkedIn, Twitter, Slack
- Social Media Image Sizes — Instagram, Facebook, X, LinkedIn, YouTube, Pinterest, TikTok
- Email Header Image Size — Outlook, Gmail, Apple Mail