A 3000 × 2000 photo becomes
| Width | Height | Files |
|---|---|---|
| 480 px | 320 px | -480w.webp, -480w.jpg |
| 768 px | 512 px | -768w.webp, -768w.jpg |
| 1080 px | 720 px | -1080w.webp, -1080w.jpg |
| 1600 px | 1067 px | -1600w.webp, -1600w.jpg |
| 2400 px | 1600 px | -2400w.webp, -2400w.jpg |
Heights follow the photo’s own proportions, rounded to whole pixels, and the markup quotes exactly those numbers. Each width is computed from the full-size original — never from a smaller copy — through Lanczos in linear light.
Limits
- No art direction: every width is the whole photo. A different crop for phones is a different picture — make it on the aspect-ratio page first.
- AVIF is not written; WebP and JPEG cover every current browser.
- Quality is one setting for the set. For a hard size cap on one file, use Resize to a KB limit.
Questions
What size should images be for a website?
There is no single size: a phone needs about 480–800 px across, a laptop 1080–1600, a large retina screen up to 2400. The answer is a set — the browser picks the smallest file that fills the space it has. This page makes that set from one photo and writes the srcset markup that lets the browser choose.
Which widths does it make?
480, 768, 1080, 1600, 2400 px by default; tap any width to add or remove it. Widths larger than your photo are skipped and listed, because a responsive set should never contain an enlarged file.
Why both WebP and JPEG?
WebP files are usually noticeably smaller at the same look, and every current browser reads them. The JPEG copies are the fallback inside the <img> tag. The markup uses <picture> so each browser takes the format it supports; switch either format off if you only need one.
What do I put in sizes?
How wide the image is shown, so the browser can pick before it lays out the page. “(max-width: 768px) 100vw, 768px” means full width on phones and 768 px wide otherwise. Edit it to match your layout; the markup updates as you type.
Are the width and height attributes right?
Yes: they are the real pixel size of the fallback file, computed from your photo's own proportions, so the browser reserves the right space and the page does not jump while images load.
Neighbouring measurements
Many photos, one width each? Bulk resize takes a folder. One exact size for one slot? Change the size in pixels.
- Bulk resize imagesOne rule for a folder, a row per file, a ZIP and a CSV receipt.
- Change image size in pixelsA box in pixels: fit inside, fill and crop, or stretch, with the factor printed.
- Resize an image to a KB limitQuality first, pixels only if allowed, and a sentence saying which moved.
- Resize a logoEight icon sizes and a favicon.ico from one logo, with clean transparent edges.

