Image Tools

How to Resize Images for the Web: A Practical Guide

Learn how to resize images for the web the right way: match display width, handle retina screens, avoid blurry scaling, and compress after resizing.

4 min read·Updated 2026-03-14

Uploading a 5000-pixel photo into a 700-pixel blog column is the most common image mistake on the web. The browser shrinks it for display, but the visitor still downloads every original pixel, wasting bandwidth and delaying the page. This guide shows how to resize images for the web correctly, covering display widths, retina screens, scaling quality, and the small workflow that keeps every upload fast and sharp.

Why dimensions matter more than you think

Page weight scales with pixel count, not with what the visitor can see. A 4000 by 3000 JPEG may weigh 4 MB, while the same photo resized to 1200 pixels wide weighs under 200 KB. That difference decides whether a mobile page loads in one second or six, and loading time directly affects bounce rate, conversions, and search rankings. Resizing also protects layout stability: correctly sized images give the browser width and height information up front, which prevents content from jumping as the page loads.

The rule is simple: determine the maximum width your layout will ever display, and never ship pixels beyond it. Beyond that threshold, extra pixels add cost with zero visual return.

Common display widths for the web

Most sites only need a handful of sizes. Use this as a starting reference:

PlacementDisplay widthRetina (2x) widthTypical use
Inline content image700 to 800 px1400 to 1600 pxBlog photos, tutorials
Card thumbnail300 to 400 px600 to 800 pxGrids, related posts
Hero banner1600 px1920 to 2400 pxFull-width headers
Avatar or icon48 to 96 px96 to 192 pxProfiles, UI elements

Downscaling without blurriness

Naive scaling averages neighboring pixels, which softens edges and makes text look muddy. Good resizers use high-quality interpolation such as Lanczos or bicubic filtering, which preserves contrast along edges while reducing the image. The practical effect is that a 4000-pixel photo scaled to 1200 pixels can look sharper than the same file left at full size and squashed by the browser. When you need pixel-accurate output, open the photo in an Image Resizer, enter the target width, keep the aspect ratio locked, and let the algorithm handle the reduction.

Planning for retina and high-density screens

Modern phones pack roughly two to three physical pixels into each logical pixel, so an image displayed at 800 CSS pixels actually has 1600 physical pixels available. Serving only 800 pixels produces a soft result on those devices. The balanced approach is to export at 2x the display width for important visuals, then compress hard so the larger file stays small. For decorative backgrounds, 1x is fine; for product photos and screenshots people inspect closely, go to 2x.

A reliable resize workflow

  1. Identify the widest container the image will appear in and record that width.
  2. Choose 1x for supporting visuals and 2x for hero images, product shots, and screenshots.
  3. Resize using a high-quality filter, keeping the original proportions locked.
  4. Compress the resized file at quality 80, then inspect it at full zoom.
  5. Export in an efficient format and add explicit width and height attributes in your markup.

Resize first, then compress

Order matters. Compression squeezes the data that already exists, while resizing removes pixels that should never have been shipped. Doing both in that sequence gives the compressor far less to work on, which is why the second step usually produces dramatic savings. A practical target for inline article images is under 150 KB, and most files clear that bar easily once dimensions are correct. Follow up with an Image Compressor at quality 80 and check the result on a throttled connection.

Converting to an efficient format

After resizing and compressing, format choice delivers the final reduction. WebP at quality 80 typically beats an equivalent JPG by 25 to 35 percent, and it handles transparency too. Screenshots that must stay perfectly crisp can drop 40 percent of their weight through a PNG to WebP conversion in lossless mode. Serve modern formats with a fallback so older browsers still receive a valid image.

Frequently asked questions

What width should I use for blog images? Measure the content column of your site, which is usually 700 to 800 pixels, and export at that width or double it for retina screens. Never upload the camera original.

Does resizing reduce image quality? Downscaling to a sensible width preserves perceived sharpness, especially with a good algorithm. Quality loss comes from aggressive compression or from upscaling small images beyond their real detail.

How do I know the file is small enough? Check the weight in kilobytes and the natural dimensions. Inline images under 150 KB at 1600 pixels wide are in good shape for most audiences.

Tools used in this guide

Related guides