What size should images on my website be?

Make full-width photos about 1600 pixels wide and smaller photos about 800, and save them as WebP or JPEG. About 200 KB is plenty for a main photo. A photo straight from a phone is far bigger than that, so resize it before you upload it.

By Ethan Stoner, web designer. Published .

Sizes to start from

  • Full-width banner or background: about 1600 pixels wide.
  • Photo in a column or a gallery: about 800 pixels wide.
  • Logo: SVG or PNG, which keep the edges sharp.
  • Picture for shared links: at least 1200 by 630 pixels. See link previews.

These are starting points. Phones pack more pixels into the same space, which is why a photo is saved wider than the gap it fills. Chrome's own advice is that a page shouldn't serve images larger than the version shown on screen, once the screen's pixel density is counted.

Find the ones that are too big

  1. On a computer, right-click a photo on your site, open it in a new tab and save it.
  2. Look at the file's size and its width in pixels.
  3. If it's over about 200 KB, or far wider than 1600 pixels, put it on the list.
  4. Start with the photo at the top of the homepage. Every visitor waits for that one.

Replace them

Oversized images

About an hour

  1. Resize photos before uploading: about 1600 pixels wide for full-width photos and 800 for smaller ones.
  2. Use a free tool such as Squoosh (squoosh.app) to resize and compress, then replace the original image on the site.

Modern image formats

About an hour

  1. Convert large photos to WebP with a free tool such as Squoosh (squoosh.app) and upload those instead.
  2. Keep PNG only for logos and graphics with sharp edges or transparency; use WebP or JPEG for photos.

Image width and height set

About 30 minutes

  1. Add width and height to each image tag, using the image's real pixel size, for example <img src="van.jpg" width="1200" height="800" alt="Our van">.
  2. If the image is resized with CSS, keep height: auto in the stylesheet so it stays in proportion.

Give each picture a description

While you're there, fill in the alt text, the short description that screen readers speak. Google reads it as well.

  • Say what the picture shows. Google's own example goes from "puppy" to "Dalmatian puppy playing fetch".
  • If the picture has words on it, such as a price list, put the words in the page as text.
  • Leave the description empty for a picture that is only decoration.
  • Don't fill it with search words. Google warns against that.

Image descriptions

About 20 minutes

  1. Find each image that carries meaning: photos of your work, products, staff, or any picture with text in it.
  2. Give it a short description of what it shows, like Kitchen remodel with white cabinets in Carlsbad.
  3. If an image has words on it (a price list, an offer), put those words in the description or, better, in the page text.
  4. Leave decorative images (backgrounds, dividers) with an empty description so screen readers skip them.

When to ask for help

Ask if you have hundreds of photos, since a plugin or a script can convert them together. Ask too if your builder shows a small copy but the page still loads the original.

Ethan Stoner, who makes WebCheckup, also fixes small-business sites. Ask for a quote.

Questions

Is WebP better than JPEG for a website?
Usually. WebP looks the same and is usually about a third smaller, so the page loads faster. Keep PNG or SVG for logos and graphics with sharp edges.

What WebCheckup checks

The checkup runs these checks on this subject. Each link goes to its place in our full list.

Sources

The builder steps are the ones in our reports, written from each builder's own help pages. Menus change, so a label may have moved.

Check your site.

The free checkup looks for this and the rest of our list, and puts the problems in order.