Ideal image size and weight for websites

Two numbers matter for every image on a page: how many pixels it contains, and how many kilobytes that costs. Here are sensible targets for both.

Targets by role

Full-width hero
2000–2560 px wide · 150–300 KB
Content image in an 800 px column
1600 px wide · 100–200 KB
Card or list thumbnail
400–600 px wide · 30–60 KB
Avatar or icon
128–256 px square · under 20 KB
Logo
SVG where possible, otherwise 2× its display size
Background texture
Whatever tiles — usually under 30 KB
Whole-page budget
Aim for under 1 MB of images above the fold

How to arrive at your own numbers

Work backwards from the layout

Find the widest the image can ever be displayed in your design, then double it for high-density screens. That doubled figure is your target width, and everything else follows from it.

An image in an 800-pixel content column needs 1600 pixels. A hero that spans a 1440-pixel viewport needs 2560 at most. A 200-pixel thumbnail needs 400.

Doubling is the sensible ceiling. A 3× file costs roughly twice as much as a 2× file and is essentially indistinguishable, because at that density the limiting factor is your eye rather than the screen.

Why kilobytes and pixels are separate decisions

Dimensions decide how sharp an image can be. Compression decides how many bytes that sharpness costs. Getting one right and the other wrong produces two distinct failures.

Too few pixels, generous compression: a small, clean file that looks soft on a good screen. No setting fixes it — the detail was never there.

Too many pixels, aggressive compression: a large file full of visible artefacts. The worst of both, and surprisingly common when people compress hard without resizing first.

Set the dimensions from the layout, then compress at quality 78–85, and both are right.

The weights above are guidance, not rules

Content decides how many bytes an image legitimately needs. A portrait against a plain wall reaches 100 KB at 1600 pixels easily. A photograph of foliage, gravel or a crowd at the same dimensions may need 250 KB before it stops looking mushy — the detail is genuinely there, and the encoder has to pay for it.

Treat the figures above as the range to aim for, and let genuinely detailed images exceed them rather than destroying them to hit a number.

The budget that actually matters

Individual image sizes matter less than what loads before the visitor can use the page. A single 300 KB hero is fine; six 300 KB images all loading immediately is not.

A workable discipline: keep everything above the fold under about 1 MB in total, and lazy-load the rest. That way the page is usable quickly regardless of how much imagery sits further down.

Then check the real figure in your browser's network panel rather than trusting the arithmetic. There is usually one forgotten background image doing more damage than everything you optimised.

Formats, briefly

Photographs
WebP, with JPEG as a fallback. Roughly 25–35% smaller at matched quality.
Screenshots, diagrams, line art
PNG or lossless WebP. Never JPEG.
Logos and icons
SVG if you have it — vector, tiny, sharp at every size.
Anything transparent
PNG or WebP. JPEG has no alpha channel.

Try it yourself

Everything below runs in your browser, so you can test any of this on your own files without uploading them.

  • Resize image

    By pixels or percentage, aspect ratio locked, across a whole batch.

    Open the tool
  • Compress to 200KB

    Full resolution kept, quality still invisible to the eye.

    Open the tool
  • JPG to WebP

    Typically 25–35% smaller at matched quality. The standard web win.

    Open the tool
  • Bulk compressor

    One setting across a whole folder, processed in parallel, downloaded as a ZIP.

    Open the tool

Questions

Frequently asked questions

Every answer below is present in the page source, expanded, so it can be read without opening anything.

What size should images be for a website?

Take the widest the image is ever displayed at in your layout and double it for high-density screens. In practice that means about 1600 pixels for a content image, 2000–2560 for a full-width hero, and 400–600 for a thumbnail.

How many KB should a web image be?

100–200 KB for a content image, 150–300 KB for a hero, and 30–60 KB for a thumbnail. Detailed subjects legitimately need more — treat these as targets rather than limits, and do not destroy an image to hit a number.

Is 1920 pixels wide enough for a hero image?

On a standard-density display, yes. On a high-density laptop showing the page full width it will look slightly soft, which is why 2000–2560 is the usual recommendation for a full-bleed hero.

Should I use 3× images for retina screens?

Rarely worth it. A 3× file is roughly twice the weight of a 2× one for a difference almost nobody can see, because at that density your eye is the limiting factor. Double the display size is the sensible ceiling.

Does image size affect SEO?

Indirectly but genuinely. Oversized images slow Largest Contentful Paint, which is a Core Web Vitals metric and a ranking signal. The effect is on page experience rather than on relevance — a fast page with poor content still will not rank.

What about images inside emails?

Different rules. Keep the total message small, use JPEG or PNG rather than WebP since email client support is unreliable, and size for roughly 600 pixels of layout width, doubled for high-density screens.

From the blog

Related reading

Longer, more practical guides from the blog.

  • Practical Guides

    How to Compress Images for a Website Without Wrecking Them

    Resize before you compress. Measured on one photograph: half the width at quality 80 produced a 16.4 KB file, while full width at quality 40 produced 20.6 KB and looked far worse. The order of operations matters more than the settings.

    8 min read

  • Practical Guides

    How to Reduce Image Size for Email Without Sending a Blurry Mess

    Attachments are base64-encoded in transit, which inflates them by about a third. A 20 MB limit is really a 15 MB limit. Resize to 1600 pixels on the long edge and encode at quality 80, and a photograph lands near 150 KB.

    9 min read

  • Image Compression

    JPEG Quality Settings Explained: What the Number Actually Means

    Quality 80 is not 80% of anything. It is an index into a quantisation table. Measured on one photograph: dropping from 100 to 90 removes 77% of the file and 4.2 dB of fidelity; dropping from 40 to 30 removes 17% and costs almost as much.

    8 min read