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

Best 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 TypeRecommended SizeAspect RatioNotes
Full-width hero1920×108016:9Use srcset for smaller viewports
Blog post header1200×630~1.9:1Doubles as OG image
Content image800×6004:3Standard within article body
Thumbnail400×4001:1Product cards, grid items
Avatar / profile200×2001:1Accounts for 2× retina
Logo400×100VariesUse SVG when possible
Background image1920×108016:9Compress aggressively (quality 60-70)

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.

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.

PlatformRecommended SizeMin Size
Open Graph (Facebook, LinkedIn)1200×630600×315
Twitter/X (summary_large_image)1200×628600×314
Twitter/X (summary)240×240144×144
Pinterest pin1000×1500600×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 TypeSizeFormat
Favicon (browser tab)32×32PNG or ICO
Favicon (SVG)Any (vector)SVG
Apple touch icon180×180PNG
Android Chrome192×192, 512×512PNG
Microsoft tile150×150PNG

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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 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 Website

Platform-specific guides

Use-case guides

Concepts and audits