What Size Should Images Be for a Website?

The Venbit TeamUpdated November 29, 20268 min read

Export width for website images

2,500pixels for a banner

1,600pixels for a photo in a post

One page and the width to export for each spot: 2,500 pixels for the banner, 1,200 for the photo beside the text, 800 for each card, and SVG for the logo.

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 appearsExport it this wideAim forFormat
Full-width banner2,500 to 2,560 px500 KB or lessWebP or JPEG
Photo inside a page or post1,600 pxAbout 200 KBWebP or JPEG
Image beside text1,200 pxAbout 150 KBWebP or JPEG
Card or thumbnail800 pxUnder 80 KBWebP or JPEG
Team headshot800 by 800 pxUnder 80 KBWebP or JPEG
Product photo2,048 by 2,048 pxUnder 300 KBWebP, JPEG or PNG
Logo in the headerVector, or twice its display widthUnder 30 KBSVG, or PNG
Browser tab icon512 by 512 pxUnder 100 KBPNG
Share picture1,200 by 630 pxUnder 1 MBJPEG or PNG
Widths to export, and the file size we aim for, by where the image appears

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.

One pixel of the page is one screen pixel on an older monitor and four on a phone with a pixel ratio of 2.

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. 1

    Resize the original

    Cutting a 6,000-pixel camera photo down to 1,600 removes more weight than any quality setting.

  2. 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.

The export settings for a photo inside a post: 1,600 pixels wide, WebP, quality 80, with a file-size target beside it.
  • 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

FormatUse it forWorth knowing
WebPPhotos and most graphicsGoogle measures lossy WebP 25 to 34% smaller than a comparable JPEG, and lossless WebP 26% smaller than PNG.
AVIFLarge photos where every kilobyte countsweb.dev has seen savings above 50% against JPEG, depending on the image.
JPEGPhotos, anywhere at allNo transparency. Every browser and every tool reads it.
PNGLogos and graphics that need a transparent backgroundHeavy for photographs.
SVGLogos, icons and line artDrawn from shapes, so it is sharp at any size. Not for photographs.
Image formats, and when each is the right call

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.

A shared link's preview card with its picture at 1,200 by 630 pixels, the 1.91 to 1 shape Meta asks for.

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.

More website guides

Every question in this series, from Fix website problems.

Symptoms & emergencies17
What happens if...11
Plans & hiring1
Ownership & switching11
Platform-specific3
Seattle & local1

Keep reading

Let’s grow your business

Tell us about your business. We would love to hear from you. Or call us at (425) 314-1415.

Join the local businesses that grow with us

  • Pawn Fathers
  • Protectee
  • Pinnacle Energy Services
  • See Clearwater Beach
  • Q Blinds
  • Domaine des Florines
  • Track & Field AI
  • Edgewater Commercial Park
  • Colour Play Salon
  • Houston Hurricane & Security