RSRobince Studio
Image Tools

How to resize an image for a website

Oversized images are the most common reason a page loads slowly. A photo straight from a phone can be thousands of pixels wide and several megabytes, while the page may display it at 800 pixels. Resizing to the size you actually need makes pages faster with no visible loss.

2 min read Reviewed

On this page
  1. The short answer
  2. How many pixels do you need?
  3. Choose the right format
  4. Step by step
  5. Good habits
  6. Frequently asked questions
  7. Try these tools

The short answer

Find out how wide the image appears on your page, export it at that width (or twice that for sharp retina screens), choose WebP or JPG for photos and PNG for graphics with sharp edges or transparency, and compress it until it is small without visible damage.

Resize first, then compress. Reducing the pixel dimensions has the biggest effect on file size.

How many pixels do you need?

Look at the largest width the image is displayed at on your site. A full-width banner may be 1200 to 1600 pixels wide on a laptop, an article image perhaps 800, and a small thumbnail 300 or less. High-density screens show sharper images if the file is about twice the displayed width, but going beyond that adds weight without adding quality.

Image useTypical displayed widthFile width to export (retina)
Full-width banner1200–1600 px2400–3200 px, or less if the weight is too high
Article image700–900 px1400–1800 px
Thumbnail300 px600 px
Logo or icon100–200 pxUse SVG when possible

Choose the right format

FormatUse it forNotes
WebPPhotos and graphicsSmall files, supported by current browsers
JPGPhotosWidely supported, no transparency
PNGScreenshots, logos, transparencyLarger files for photos
SVGLogos and iconsScales to any size

Step by step

  1. Open the Image Resizer and choose your image.
  2. Keep the aspect ratio locked and enter the new width. Use the 25%, 50% or 75% presets for quick reductions.
  3. Pick the output format and quality.
  4. Resize and download.
  5. If the file is still heavy, run it through the image compressor.

Good habits

  • Keep the original in full size and save resized copies for the web.
  • Give the image a descriptive file name and alt text.
  • Set width and height on the image element so the page does not jump while loading.
  • Remove location metadata from photos before publishing.

Frequently asked questions

What size should website images be?

About the width they are displayed at, or up to twice that for high-density screens. Many article images are 800 to 1800 pixels wide.

Is WebP better than JPG?

WebP usually gives smaller files at similar quality and is supported by current browsers. JPG remains a safe, universal choice for photos.

How do I reduce image file size without losing quality?

Resize to the displayed dimensions first, then compress with a moderate quality setting.

Should I use PNG or JPG?

Use JPG or WebP for photos, and PNG for screenshots, logos and graphics that need sharp edges or transparency.

Is my image uploaded when I resize it?

No. The resizer works in your browser.

Try these tools

Keep reading