How to resize and compress photos before uploading them

A photo from a phone or camera is often 4,000 pixels wide and several megabytes. Your website rarely shows an image wider than about 2,000 pixels, so the extra size only slows your pages down, especially on phones. A few minutes of resizing before you upload keeps your site fast.

What size to aim for

  • Full-width banners: about 2,000 to 2,400 pixels wide, ideally under 400KB.
  • Photos inside a page or blog post: about 1,200 to 1,600 pixels wide, ideally under 250KB.
  • Team photos and small images: about 600 to 800 pixels wide, ideally under 150KB.

Use JPG or WebP for photos, and PNG or SVG for logos and graphics with sharp edges or a see-through background.

Resize and compress with Squoosh (free)

Squoosh is a free tool from Google that runs in your web browser. Your photo stays on your computer.
  1. Open Squoosh and drag your photo onto the page.
  2. On the right, turn on Resize and type the Width you want. The height updates to match.
  3. Under Compress, choose MozJPEG or WebP and set the quality to about 75.
  4. Drag the slider across the photo to compare it with the original. You shouldn’t see a difference.
  5. Check the new file size at the bottom right, then click the download button.

Using the tools on your computer

  • Mac: open the photo in Preview, go to Tools, then Adjust Size, and set the width. Then choose File, then Export, pick JPEG and lower the Quality slider a little.
  • Windows: open the photo in the Photos app, click the … menu at the top, choose Resize image and set the width.

Give it a clear name

Rename the file before you upload it, for example team-at-work-auckland.jpg rather than IMG_4821.jpg. A clear name is easier to find in your Media Library later, and it helps Google understand the image.

Upload it and add alt text

  1. Go to Media and click Add Media File, then drag your photo in.
  2. Click the photo to open its details. Check the File size and Dimensions look right.
  3. Fill in the Alternative Text: a short description of what the photo shows, as if you were describing it to someone over the phone. Skip words like image of.
  4. Click Update (or close the window if you’re in the Media Library grid, as it saves automatically).
A WordPress media item with its alternative text, file size and dimensions

Alt text is read out by screen readers for people with low vision, and Google uses it to understand your images. Purely decorative images, like a background pattern, can be left blank.

Doesn't my website compress images already?

Many of the sites we look after use Smush, which compresses images as you upload them and serves modern formats where browsers support them. It helps a lot, but it works best on a photo that’s already a sensible size. Not sure what your site has? Send us a support request and we’ll check.

Still stuck?

Send us a support request and a real person will help, usually within one business day.

More guides

How to add schema to a page in Elementor

Add schema (structured data) to individual pages with Elementor Pro's Custom Code, then check it with the free Schema Markup Validator.

How to log in to your WordPress website

Where to find your website's login page, what to enter, and what you'll see once you're in.

How to reset your WordPress password

Locked out? Reset your WordPress password from the login page in a couple of minutes.