LocalOps Studio free browser tools

How-to guide · ImageSqueeze

How to compress images for the web

A product photo straight from a camera is 5 MB and a web page should ship under 200 KB per image. This guide covers the two levers that matter - resizing and format choice - plus how to compress a whole batch without sending client photos to a third party.

Updated 2026-10-25 Local-first No upload

The two levers: width and format

Image file size is driven mostly by two things: pixel dimensions and format. A 6000px-wide camera photo is huge no matter what; a 1600px-wide version of the same photo is a fraction of the size at the same visual quality for a screen.

After resizing, the format decides the rest. WebP typically saves 25-35% versus JPEG at similar quality and supports transparency like PNG.

Which format should you use

  • WebP - best default for modern browsers and content sites; smaller than JPEG, supports transparency.
  • JPEG - use when compatibility is critical, such as email attachments or older software.
  • PNG - keep only for small icons or images that must stay pixel-perfect.

How to compress a batch in one pass

  1. Open ImageSqueeze and select the images you want to process.
  2. Choose the output format and set a maximum width - 1600 px is a sensible default for product pages, 1200 px for blog images.
  3. Press Compress and review the size report.
  4. Download the ZIP and verify one file visually before publishing the batch.

When compression makes a file bigger

Converting a tiny or already-optimized image to a heavier format can produce a larger file. A good tool keeps the original when the conversion would not help, so a batch run can never make things worse.

Common image compression mistakes

The biggest mistake is compressing before resizing. A 4000-pixel photo that is displayed at 800 pixels wastes bytes no matter how aggressive the quality slider is. The second is using the same format for every image: JPEG and WebP are good for photos, while PNG and SVG are better for text, screenshots, and flat graphics.

Over-compression is easy to miss on a fast desktop connection. Check faces, gradients, and small text at 100 percent, and test the page on a phone. A file that looks fine in a thumbnail can show blocking and halos at full size.

Pre-flight checklist

  • Set the display width and prepare a 2x version only where needed.
  • Pick the format per image type.
  • Compare the compressed file at 100 percent.
  • Check the page on a slow mobile connection.
  • Keep the source files in a separate folder.
  • Record the settings that worked for next time.
Try it free - ImageSqueeze

Compress and convert images in bulk

Open the tool

Frequently asked questions

What is the best format for web images?

WebP is the best default: it is smaller than JPEG at similar quality and supports transparency. Use JPEG for maximum compatibility and PNG for small icons.

What width should I resize images to?

1600 px works well for product pages, 1200 px for blog content, and 800 px for thumbnails. Match the width to where the image actually displays.

Can I compress many images at once?

Yes. Batch tools like ImageSqueeze process dozens of files and deliver them as a single ZIP, all locally.

Will compression make my images blurry?

Not if you resize to the display width and use a modern format. Test one image first and zoom in to check edges and text before publishing the batch.

Should I use WebP for every image?

Use WebP for photos and rich imagery. Keep PNG or SVG for logos, icons, and text-heavy screenshots where sharp edges matter.

Why did my compressed image get bigger?

The source may already be heavily compressed, or converting a small PNG to another format can add overhead. Compare formats and keep the smaller result.

Should I keep the original images in the repo?

Keep the originals outside the deployed bundle. Ship only the compressed derivatives so the repository and the page stay small.