← Back to blog

By the ImageOpti team · , updated 2026-11-11

How to Compress Images for a Faster Website (Simple Checklist)

A practical checklist for making website images smaller: resize first, pick the right format, compress sensibly, and check the result. No technical background needed.

To make a website image load faster, do three things in order: resize it to the size it is actually displayed at, save it in a suitable format, then compress it with a quality setting that still looks good. Most of the saving usually comes from the first step, which many people skip.

This guide is a checklist you can follow for every image you add to a site, whether it is a blog, a shop or a portfolio. It explains why each step matters so you can make your own judgment calls instead of following numbers blindly.

Why image size matters for a website

A web page is a bundle of files, and images are normally the heaviest part. Text and code might add up to a few hundred kilobytes, while a single unprocessed phone photo can be several megabytes. Visitors on mobile data or a slow connection wait for every one of those bytes.

Heavy images cause practical problems:

  • Pages feel slow, and people leave pages that feel slow.
  • Large images can push the main content of a page down while the page loads, which looks jumpy.
  • Visitors on limited data plans pay for the bytes you ask them to download.
  • Some upload forms, email systems and website builders reject files over a certain size.

Search engines also treat page speed as one of many signals, though it is only one of them. The strongest reason to compress images is simpler: it makes the site nicer to use. If you want the technical side of how images affect loading measurements, read image optimization for Core Web Vitals.

Step 1: Resize to the size you actually need

File size depends on two things: how many pixels the image has, and how hard those pixels are compressed. Reducing the pixel count is the more powerful lever.

Here is a worked example. A phone photo might be 4000 by 3000 pixels. Multiply those and you get 12,000,000 pixels, or 12 megapixels. Now suppose your blog column displays images at 1200 pixels wide, so the same photo scaled down is 1200 by 900.

  • 1200 x 900 = 1,080,000 pixels.
  • 1,080,000 divided by 12,000,000 = 0.09.

The smaller version has only 9 percent of the pixels. Because file size roughly follows pixel count when quality is held the same, the file will often be many times smaller, and nobody visiting your page will see any difference, since their screen was never going to show 4000 pixels in a 1200 pixel column.

To find the right width, look at where the image appears:

Where the image appearsTypical width to aim for
Small icon or logo100 to 400 pixels
Thumbnail or product card400 to 800 pixels
Image inside a blog column800 to 1200 pixels
Full-width banner or hero1600 to 2000 pixels

Many phones and laptops have screens that pack two or more physical pixels into each displayed pixel. For an image that must look very sharp on those screens, going about 1.5 to 2 times larger than the displayed width is reasonable. Going beyond that rarely helps.

Use the Resize tool to set the width. It keeps the proportions locked by default so nothing gets stretched, and it only reduces size, which is the safe direction. If the image also needs a different shape, crop it first with the Crop tool so you are not shrinking pixels you plan to throw away.

Step 2: Choose a sensible format

The format decides what kind of compression is available.

  • JPEG suits photographs. It is lossy, so it discards detail your eye is unlikely to notice, and it is understood everywhere.
  • PNG suits logos, screenshots, diagrams and anything with sharp edges or flat colour. It is lossless, which keeps edges clean but makes photos large.
  • WebP handles both photos and graphics, supports transparency, and often produces smaller files than JPEG or PNG. Current browsers all support it.

A common and costly mistake is saving a photograph as PNG. The picture looks the same, but the file can be several times larger than the same photo as a JPEG or WebP. If you have a photo in PNG form and it does not need a transparent background, convert it with the Convert tool. The article on PNG vs JPG vs WebP covers the choice in more depth, and what WebP is and whether to use it explains why it is often a good default for websites.

Step 3: Compress with a quality setting

Once the image is the right size and format, compression removes what is left over.

For lossy formats (JPEG and WebP), the quality setting trades file size against fidelity. The relationship is not a straight line. Going from quality 100 to 85 usually cuts the file dramatically while looking almost identical. Going from 85 to 75 saves a further chunk. Below about 50, smooth areas such as skies and skin can start to look blocky or blotchy, and you see it most when zooming in.

A reasonable approach:

  1. Start at around 75. This is the default in the Optimize tool, and for photos viewed on a screen it often looks very close to the original.
  2. Use the before and after comparison to inspect areas with fine detail, like text, hair or foliage.
  3. If you see no difference, try a lower setting. If you do, go back up.

For PNG files, the Optimize tool reduces the number of colours and repackages the data more efficiently. This can work very well on graphics and screenshots and less well on photos stored as PNG, because the lossless format limits how much can be removed.

Everything in the Optimize tool runs inside your browser, so images are not uploaded anywhere. It accepts JPEG, PNG and WebP files up to 50 MB, and you can process a batch and download everything as a ZIP.

A target size for each type of image

Treat these as rough guides rather than rules. A detailed landscape needs more bytes than a plain product shot on white.

Image typeReasonable file size
Icon or small logoUnder 20 KB
Blog image80 to 200 KB
Product photo100 to 250 KB
Full-width hero image150 to 400 KB

If your file is far above the range for its type, go back to step 1 and check the pixel dimensions. That is the cause far more often than the quality setting.

Keep your originals

Lossy compression is permanent. Once detail is discarded it cannot be recovered, and compressing an already compressed JPEG again adds more damage. Two habits protect you:

  • Keep an untouched copy of every original in a separate folder.
  • Always export from the original, never from a copy that has already been resized or compressed.

If you later decide your site needs bigger images, or a different format, you can start clean.

A short checklist to follow every time

  1. Crop the image to the shape you need.
  2. Resize to the displayed width, or up to double that for sharp results on dense screens.
  3. Choose JPEG or WebP for photos, PNG or WebP for graphics.
  4. Compress at around quality 75 and check the comparison.
  5. Check the file against the size range for its type.
  6. Name the file clearly, for example red-ceramic-mug-front.jpg, rather than IMG_4821.jpg.
  7. Add alt text where you place the image, describing what it shows for people using screen readers.

Steps 6 and 7 do not change file size, but they make images more useful to visitors and easier for search engines to understand.

Common mistakes

  • Relying on the page to shrink the image. Setting a 4000 pixel photo to display at 800 pixels in your page builder only changes how it looks. The browser still downloads all 4000 pixels.
  • Compressing too hard. A 40 KB file that looks blotchy is worse for your brand than a 120 KB file that looks clean.
  • Repeated re-saving. Each lossy save adds a little damage. Work from the original.
  • Using one size everywhere. A thumbnail does not need the same file as a banner. Make a smaller copy for small slots.
  • Forgetting about batches. If you have a folder of product photos, process them together instead of leaving some uncompressed.

Frequently asked questions

How much smaller can I expect my images to get?

It varies widely. A large camera photo that is resized and compressed often ends up a small fraction of its original size, while an image that was already small and well compressed may barely change. Resizing usually accounts for the biggest share of the saving.

Will compressing images hurt my quality?

Lossy compression always discards some information, but at moderate settings the loss is usually invisible at normal viewing size. Check the result with the comparison view and increase quality if you can see a difference.

Should I compress images before uploading to WordPress or another website builder?

Yes. Some platforms create smaller copies automatically, but they work from whatever you upload, and they may not compress very hard. Uploading an image that is already the right size and weight gives you control over the result.

Is it safe to use an online compressor with private images?

It depends on how the tool works. Many online tools upload your files to a server. The tools on this site process images in your browser, so files stay on your device.

Does image compression affect SEO?

Faster pages are better for visitors, and speed is one of many factors search engines consider. Compression alone will not lift a site in search results, but heavy images can hold it back.

What if my image is already small but the page is still slow?

Check how many images load on the page, whether images far down the page load immediately, and whether other things such as scripts or fonts are the bottleneck. Image size is a common cause of slow pages but not the only one.

Related guides

For the full picture, see the image optimization guide for websites, or the image workflow for developers if you build sites.