NoUpload

How small should a web image be? Target sizes that actually work

Size targets only mean something next to a pixel width. Pick the display size first, then aim for 0.1–0.25 bytes per pixel for photographs.

NoUpload engineering teamLast updated

Key facts

  • For photographs, 0.10–0.20 bytes per pixel is the normal web range; 0.20–0.35 is high quality, and above 0.5 is an archival file sent to a browser.
  • A 1600×900 photo is 1.44 megapixels, so about 216 KB at 0.15 bytes per pixel; the same photo at 800×450 is about 54 KB.
  • Typical targets for photographs: hero 200–400 KB at 1920–2560 px, content image 100–180 KB at 1200 px, card thumbnail 30–60 KB at 600 px.
  • LCP has a 2.5 second good threshold, and lazy-loading the hero image is a common self-inflicted regression.

“Compress your images under 100 KB” is the most repeated advice in web performance, and it is wrong about half the time. A 100 KB hero image that is 3000 pixels wide will look soft on any modern screen. A 100 KB product photo that is 400 pixels wide is wasting bandwidth.

File size only makes sense paired with dimensions. Here is a framework that pairs them correctly.

Start from the pixels you actually display

A page does not need an image wider than the slot it fills, multiplied by the device pixel ratio.

  • A full-width hero at a 1400 px container needs about 1400 px on a 1× screen, 2100 on a 1.5× laptop, 2800 on a 2× phone.
  • A card thumbnail displayed at 380 px needs 380–760 px.
  • An avatar at 48 CSS pixels needs 96 px at most.

Use srcset with two or three widths rather than one giant file. A single 3000 px image served to every visitor is the most common cause of a slow photo-heavy page — not the encoder settings.

Bytes per pixel: the useful metric

Once you know the width, a photograph’s file size lands in a predictable band. Divide file size by pixel count:

Bytes per pixel What it looks like
0.05–0.10 Aggressively compressed. Fine for backgrounds behind text, bad for detail.
0.10–0.20 The normal web range for photos. Quality 75–85 JPEG or 70–80 WebP.
0.20–0.35 High quality. Product shots, portfolios, anything zoomable.
Above 0.5 You are shipping an archival file to a browser.

A 1600 × 900 photo is 1.44 megapixels. At 0.15 bytes per pixel that is about 216 KB. Same photo at 800 × 450 is 0.36 MP, so about 54 KB. That is why “under 100 KB” is meaningless without a width: it is generous at 800 px and impossible at 2400 px.

Realistic targets by slot

These are starting points for photographs, not laws:

Slot Width Target
Full-bleed hero 1920–2560 200–400 KB
Content image 1200 100–180 KB
Card thumbnail 600 30–60 KB
Avatar 96 3–8 KB
Open Graph card 1200 × 630 under 300 KB

For flat graphics and screenshots, ignore bytes-per-pixel and aim for lossless: a well-optimised PNG screenshot at 1200 px is usually 40–120 KB, and pushing it smaller usually means visible artefacts.

Why LCP changes the answer

Since Core Web Vitals replaced older metrics, the largest contentful paint element is usually a hero image or a heading. LCP has a 2.5 second “good” threshold, and the image cannot finish before it has been discovered, requested and downloaded.

That gives three levers, in order of impact:

  1. Do not lazy-load the hero. loading="lazy" on the LCP image delays discovery and is one of the most common self-inflicted regressions. Lazy-load everything below the fold.
  2. Serve the right width. A 2800 px image on a 1400 px slot doubles the bytes for no visible gain.
  3. Compress harder, not blindly. Going from 400 KB to 200 KB helps; going from 200 KB to 60 KB at quality 40 usually just makes the page look cheap.

fetchpriority="high" on the hero is worth adding. It is a hint, not a guarantee, but browsers respect it.

The quality settings that survive a real review

  • JPEG: 80–85 with 4:4:4 chroma if the image has saturated reds or fine coloured detail. Below 75, gradients band.
  • WebP: 75–82 lossy for photos; lossless for graphics.
  • PNG: always lossless; reduce the palette first if the image has few colours.
  • AVIF: 50–65 is often visually equal to JPEG 85. Encode time is the price.

Always compare at 100% zoom on the actual content, not on a smooth sky. Detail hides in foliage, hair, fabric and text edges.

The workflow that does not waste an afternoon

  1. Decide the maximum display width for each image slot.
  2. Export at that width (or 2× for retina-critical images).
  3. Compress with a tool that shows you the result, not one that only reports a number.
  4. Compare side by side, then batch the rest.
  5. Check the two worst offenders with Lighthouse: the hero and the largest product photo.

The compressor on this site does step 3 and 4 in one pass, with a target-size mode that searches for the highest quality that still fits a byte budget — useful when a client has specified “under 200 KB” and you need to hit it without guessing.

When to stop optimising

Diminishing returns arrive fast. Going from 900 KB to 300 KB is transformative. Going from 300 KB to 200 KB is worth a few minutes. Going from 200 KB to 150 KB rarely changes a Core Web Vitals score and always costs visual quality.

If the page is already under about 1 MB of images on mobile and LCP is under 2.5 seconds, you are done. Spend the remaining effort on caching headers and responsive markup instead — they compound, and they do not degrade how the page looks.

Questions this guide answers

How large should a web image be in kilobytes?

Kilobytes only mean something next to pixel dimensions. Pick the display width first, then aim for 0.10–0.20 bytes per pixel for photos: roughly 200–400 KB for a 1920–2560 px hero and 30–60 KB for a 600 px card.

What is a good bytes-per-pixel value for photos?

0.10–0.20 is the normal web range, corresponding to JPEG quality 75–85 or WebP 70–80. Below 0.10 suits backgrounds behind text; above 0.35 is for product shots and zoomable images.

Should the hero image be lazy-loaded?

No. The hero is usually the largest contentful paint element, and loading=lazy delays its discovery. Load it eagerly, add fetchpriority=high, and lazy-load images below the fold instead.

Sources