How to Resize and Compress Images for Your Website

How to Resize and Compress Images for Your Website

A photo straight from a phone or camera is often 4000 pixels wide and several megabytes in size. Put a few of those on a web page and it loads slowly, especially on mobile. The fix takes two minutes: resize first, then compress.

Why image size matters

  • Speed: images are usually the heaviest part of a page. Smaller files mean faster pages and happier visitors.
  • Mobile data: many visitors browse on a phone connection, where every megabyte counts.
  • Search: page speed is part of a good user experience, which search engines care about.

Step 1: Resize to the size you actually need

There is no point in uploading a 4000-pixel photo if your page shows it 1200 pixels wide. Check how wide the image appears in your layout and resize it to that width, or about twice that if you want it to look sharp on high-resolution screens.

  • Upload your photo to Resize Image.
  • Enter the new width or height.
  • Download the resized image.

As a rough guide, a full-width banner rarely needs more than 2000 pixels, an image inside a blog article is fine at around 1200 pixels, and a thumbnail or profile picture needs only a few hundred.

Step 2: Crop to the right shape

Many layouts expect a fixed shape, such as a square for products or a wide format for headers. Use Crop Image to cut away the edges you don't need, so your page doesn't stretch or cut the picture in unexpected places.

Step 3: Compress the file

Resizing removes pixels; compression makes the remaining data smaller. Run the result through Compress Image to reduce the file size further. For photos, the difference in quality is usually hard to see, while the file can shrink a lot.

Which format should you use?

  • JPG: the safe choice for photos. Small files and supported everywhere.
  • PNG: best for logos, screenshots and graphics with sharp edges or transparency. Photos saved as PNG are usually much larger.
  • Other formats: if you have a HEIC, WEBP, BMP or TIFF file that your website builder doesn't accept, convert it with Image → JPG.

A quick checklist before you upload

  • Is the width close to how large the image is shown on the page?
  • Is it cropped to the shape your layout expects?
  • Is it compressed?
  • Does the file name describe the picture, for example red-bike-front.jpg instead of IMG_2045.jpg?

Working with many images?

If you are preparing a whole gallery or a product catalogue, use the same width for every image of the same type. Your pages look more consistent, and you don't have to think about each photo again. Keep your original full-size files in a separate folder, so you can create a different size later without losing quality.

A descriptive file name and alt text also help people using screen readers and help search engines understand the image.

Get started

Open Resize Image and make your website images lighter now.