Image Guide

What Image Size Should I Use for a Website?

The right image size depends on where it's used. Get exact pixel dimensions and file-size targets for hero, blog, product, and thumbnail images.

There is no single correct image size for every website. The right dimensions depend on where the image is displayed. A hero banner needs to be much larger than a thumbnail, while a product photo may need enough resolution for customers to zoom.

Quick-reference table

Image typeRecommended dimensionsTarget file sizeFormat
Hero / banner1600–1920px wide, 16:9 typicalUnder ~200 KBWebP, JPG fallback
Blog featured / Open Graph1200×630pxUnder ~100 KBWebP or JPG
In-article / inlineTypically 700–900px wideUnder ~150 KBWebP or JPG
Product photo1000–2000px on the long sideUnder ~300 KBWebP or high-quality JPG
Thumbnail300–400px squareUnder ~30–50 KBWebP
LogoApproximately 2× display sizeAs small as practicalPNG or SVG

These are practical starting points rather than rigid standards. The actual layout, device, image content, and performance requirements should determine the final choice.

Why one universal size doesn't exist

Two forces pull in opposite directions. Larger images can provide more detail on high-density screens and large displays, while smaller images load faster. The right image is usually the smallest one that remains sharp at the size where it is actually displayed.

Hero and banner images

Hero images are often among the most important images on a page because they can appear early in the user experience and can influence perceived loading speed. They should be large enough for their layout but compressed aggressively enough to avoid unnecessary page weight.

Blog featured and Open Graph images

A 1200×630 image is a widely used starting point for blog featured and social preview graphics. Keep these images reasonably compressed because the same artwork may be reused across social previews and other surfaces.

In-article images

Inline blog images usually do not need to be as wide as a hero image. Match the image to the width of the content column and avoid serving several times more pixels than the page can actually display.

Product images

Product images are a special case because shoppers may zoom in. Keeping the resolution reasonably high and relying more heavily on compression can protect the buying experience while still controlling page weight.

Thumbnails

Thumbnails are displayed at small sizes and are often used in large numbers. Keeping both their dimensions and file sizes small can have a meaningful effect on total page weight.

Mobile vs desktop image sizes

With responsive images, the ideal image size is really a range. A properly configured website can serve a smaller image to mobile visitors and a larger version to larger displays.

How to optimize a website image

  1. Choose dimensions based on display size

    Measure or inspect the actual area where the image will appear.

  2. Choose the format

    WebP or JPG can work well for photographs, while PNG is useful for logos and transparency.

  3. Compress the image

    Reduce file size until the image is small enough without becoming visibly degraded.

  4. Check the result on the real page

    Do not judge an image only in isolation. Check how it looks at the size visitors actually see.

Common mistakes

  • Uploading camera-original files directly to a website.
  • Using the same oversized image for a hero, thumbnail, and inline image.
  • Optimizing only pixel dimensions while ignoring file size.
  • Optimizing only file size while ignoring whether the image is sharp enough.
  • Copying another platform's image dimensions without checking your own site's layout.

Frequently asked questions

Frequently asked questions

What resolution should website images be?

Match the resolution to the image's actual rendered size. A practical starting point is around 1.5–2× the rendered size for high-density screens rather than serving the camera's full original resolution.

What file size is too big for a website image?

As a general guideline, most individual web images should stay within a few hundred KB, with hero images and thumbnails toward the lower end and product photos sometimes requiring more. Total page weight matters more than any single image.

What format is best for website images?

WebP is a strong option for many photographic web images, while PNG is useful for logos and images requiring transparency. JPG remains useful for photographs and compatibility.

References

web.dev

Image optimization and Largest Contentful Paint guidance.

Google Search Central

Image SEO and search best-practices guidance.

Need to resize an image?

Use Let's Resize It to resize your image directly in your browser.

Resize an image