How to Resize Images for the Web: The Dimensions Guide
Resizing beats compressing as the first optimization move: a 4K photo squeezed into an 800 px slot wastes roughly 90% of its pixels before compression even starts, and no quality slider fixes dimensions that were wrong from the beginning. Here are the display sizes that actually matter, the retina doubling rule, responsive variants that stop phones downloading desktop weight, and the resize-then-compress workflow in the right order.
The short answer
Resize every image to the largest size it will actually display — typically 1080 px wide or less for content images, exact hero dimensions for banners — then compress. Doubling for retina only where sharpness visibly pays (heroes, product zooms), and serve srcset variants so each device downloads exactly its size.
Order matters unconditionally: resize first, compress second. Compressing a 4K file down to web weight bakes in artifacts that resizing afterward cannot remove, while resizing first lets the compressor work on the real pixels.
Why dimensions beat the quality slider
Consider a 2805 by 1863 px upload displayed at 860 by 571: over two-thirds of its pixels never reach any eye, yet the browser downloads, decodes, and holds every one of them in memory. Dropping the file to display size first routinely cuts more weight than dragging any quality slider — one real-world resize went from megabytes to under 100 KB before compression even entered the picture.
The quality slider then works on truth instead of waste: 70–85 for photos at their real size holds up beautifully, while the same setting on an oversized file just preserves pixels nobody sees.
Display sizes that actually matter
- Content and blog images: 1080 px wide maximum — almost nothing on the modern web displays wider except full-bleed heroes.
- Heroes and banners: exact slot dimensions, commonly 1920 px wide; the most popular desktop viewports are 1920 and 1366 px.
- Thumbnails and avatars: match the rendered size plus retina double (a 200 px avatar wants a 400 px file, not 2000).
- Etsy and marketplaces: 2000–3000 px to keep zoom alive — marketplace rules override web minimalism here.
- Email: under 600 px wide, since clients scale down brutally and every kilobyte counts against deliverability.
Retina, srcset and responsive delivery
Retina doubling means serving 2x pixels for the same CSS size — but only where eyes can tell: hero images, product zooms, and brand marks earn it, while background textures and below-fold illustrations rarely repay the weight. The 1080 px rule already covers most cases because few layouts show content images wider than that.
Then stop serving one file to every device: srcset variants let phones download the 640 px version while desktops take the 1920 px one, which is the single biggest mobile weight saving available. Pair it with lazy loading for below-fold images and a preloaded hero, and the responsive setup is complete.
The resize-then-compress workflow
The correct order never changes: audit displayed sizes first, resize everything to its slot (doubling only retina-critical heroes), then compress the resized files as progressive JPEG or WEBP. Each step multiplies the last — resize cuts the 80% that was never displayed, compression cuts the rest.
Finish by verifying one file per template: dimensions match the slot, weight sits in budget, and a side-by-side glance shows no loss. Sized right and compressed once, images stop being the reason pages feel slow.
Frequently asked questions
What width should web images be?
1080 px or less for content images, exact slot size for heroes and banners, 2000–3000 px for marketplace listings that need zoom. Match the file to the display, never larger.
Does resizing reduce image quality?
Downsizing correctly preserves visible quality — you discard pixels nobody could see. Quality suffers only from upscaling small files or compressing brutally after a bad resize.
Should I double dimensions for retina?
Only where sharpness visibly pays: heroes, product zooms, brand marks. For textures and below-fold art, 1x weight at display size beats 2x weight nobody examines.
Resize or compress first?
Resize first, always. Compressing an oversized file bakes artifacts into pixels you will delete anyway; resizing first lets compression work on the real final pixels.
What about image height?
Lock aspect ratio and let height follow width — distortion from unlocked resizing looks instantly amateur. Crop deliberately to the slot ratio instead of squashing.
About BulkImageSEO
BulkImageSEO is a free image SEO toolkit maintained by Salah Berrehou. It renames files with keyword-rich names, injects Title, Subject, Tags and Comments metadata, compresses images for Core Web Vitals and converts formats. Uploaded files are deleted after 60 minutes and no account is required. Read more about the author, the step-by-step guide, or contact us.