Design

Preparing images for the web

Choose dimensions, file formats and compression for faster, clearer pages.

Size the image for its purpose

A high-resolution camera photo may be much larger than a website needs. Decide how wide the image will appear in its largest layout and export an appropriate copy. A thumbnail rarely needs the same dimensions as a full-screen banner. Keep the original separately for future cropping or editing.

Pick the right format

JPEG works well for many photographs because it can compress detailed scenes. PNG is useful for graphics that need transparent backgrounds or sharp edges. WebP can offer smaller files in many situations; check that the destination supports it. SVG is suited to vector artwork such as simple icons, not ordinary photos.

Balance quality and loading speed

Export a few copies at different quality settings and compare them at their intended size. Look for fuzzy text, banding in gradients and visible artifacts around edges. A smaller file is not worth it if the image loses information users need. Conversely, keeping invisible detail adds unnecessary transfer time.

Prepare for responsive layouts

If you manage a website, set image dimensions in HTML to reduce unexpected layout shifts and use responsive image sources where appropriate. Lazy-load images that appear far below the first screen, but prioritize the main image if it is important for initial viewing. Descriptive alt text helps people understand meaningful images when they cannot see them.

Review the final page

Test on a phone and desktop, ideally on a slower connection as well. Verify that the image is not stretched and that important content survives any cropping. For sensitive photos, check whether metadata needs to be removed and whether you have permission to publish the image.

Try the browser image resizer for a local PNG export.

← All articlesSend feedback →