Web image field guide
How to choose image dimensions for a faster website
An image should contain enough pixels for its largest real display size without carrying thousands of unused pixels. A simple measure-resize-compress workflow improves delivery while preserving useful detail.
Measure the use
Start with the largest size the layout actually displays
A camera file can be several thousand pixels wide while a card on a website displays it in a much smaller column. The browser may visually scale that large file down, but visitors still have to transfer and decode the oversized source. Creating a delivery copy near the maximum rendered size removes data the layout never shows.
Responsive layouts complicate the number because the same image can appear wider on a phone than inside a desktop sidebar, or span a large hero on a wide screen. Inspect the component at its widest intended breakpoint. If the site provides multiple responsive source files, each can be sized for a narrower range instead of forcing one file to cover every screen.
Allow useful detail
High-density displays may justify more pixels than CSS width
A device can use more than one physical pixel for each CSS pixel. Supplying a moderately larger source can keep photographs and interface screenshots sharp on those displays. That does not mean every thumbnail needs the full camera original; it means the delivery size should reflect the component and the clarity the content actually requires.
Small text, line art and detailed product edges reveal undersizing sooner than soft photographic backgrounds. Export a candidate, view it at normal scale on the target device and increase dimensions only when the difference is visible and valuable. Extra pixels that do not improve the real viewing experience add transfer, decode and memory cost without helping the reader.
Use a repeatable order
Crop, resize and compress in that order
Crop first when composition or aspect ratio must change. Resize the retained image to the required delivery dimensions with the ratio lock enabled. Compress last, because the encoder can make a better file-size decision after unnecessary pixels are gone. This order also avoids spending time compressing regions that will later be discarded.
Keep the original outside the delivery folder and give exported files descriptive names. Compare the result at its real page size, then test the page on a slower connection or mid-range phone when possible. One quality setting is not universal: a smooth illustration, noisy night photo and screenshot with text respond differently.
- Change composition with Crop Image.
- Match the layout with Resize Image.
- Reduce transfer size with Compress Image.
- Use JPG, PNG or WebP according to content and destination support.
Protect page experience
Reserve layout space and verify the finished page
Correct file dimensions do not by themselves prevent layout movement. The page should reserve an aspect-ratio box or explicit width and height before the image loads. That lets the browser plan the layout and reduces the chance that text or controls jump when media appears. Ad placements need reserved space for the same reason.
After publishing, check that the image is not blurry, unexpectedly cropped or larger than needed. Confirm that alt text explains meaningful images and that decorative visuals do not create noise for assistive technology. Performance numbers are useful, but the final goal is a page that loads predictably and communicates clearly to its real audience.
Technical references
Sources used for verification
These references support browser and format behavior. The practical recommendations come from testing the live ResizeImg workflow.
Use the guidance
Try it with your own image
Your file is processed in the browser and the original remains unchanged.
Open Resize ImageBrowse all image guides