Open BGZone
Formats & quality

Choosing Image Dimensions for the Web

How to choose pixel dimensions for website images, from hero banners to thumbnails, balancing sharpness on modern screens with fast loading.

2 min read · Published

Images are often the largest part of a web page. Using the right dimensions keeps pages fast while still looking sharp on modern screens.

Match the displayed size

Start by checking how wide the image actually appears on the page. A blog image in a 700-pixel column doesn't need to be 4000 pixels wide.

Account for high-density screens

Most phones and many laptops have high-density screens that use two or more physical pixels for each displayed pixel. An image displayed at 700 pixels wide looks sharpest at about 1400 pixels. See saving images for high-resolution screens.

Typical sizes

These are starting points; your layout decides:

  • Full-width hero images: around 1600 to 2400 pixels wide.
  • Content images in an article: around 1200 to 1600 pixels wide.
  • Thumbnails and cards: around 400 to 800 pixels wide.
  • Logos and icons: use SVG where possible. See SVG vs. PNG.

Serve several sizes

Websites can offer several versions of an image and let the browser pick the best one for the screen. Phones then download smaller files. Many website platforms do this automatically when you upload a large image.

Compress sensibly

After resizing, compress with a modern format such as WebP or AVIF, with a sensible quality setting. See reducing an image's file size.

Prevent layout jumps

Tell the browser an image's width and height in the page code, or use a fixed aspect ratio. This reserves space while it loads, so text doesn't jump around.

Lazy-load below the fold

Images further down the page can load only when the visitor scrolls near them. This speeds up the first view of the page.

Cutouts on websites

Transparent cutouts look great on coloured sections. Trim them first so they're no larger than needed. See trimming empty space.