Guides

How to compress images for the web without losing quality

By Gentooly Editorial14 November 20263 min read

How to compress images for the web without losing quality

Large images are one of the main reasons web pages load slowly. With a few steps you can shrink them dramatically with little visible difference.

1. Resize before you compress

A photo straight from a phone can be 4,000 pixels wide, while a page might display it at 800. Resize the image to the largest size it will actually be shown, or a bit larger for sharp screens. This often saves more than compression does.

2. Pick the right format

  • JPEG: good for photographs.
  • PNG: good for graphics, screenshots and anything needing transparency, but large for photos.
  • WebP: a modern format that is usually smaller than JPEG or PNG at similar quality and is supported by all major browsers.

3. Choose a sensible quality

For JPEG and WebP, a quality setting somewhere around 70 to 85 percent usually looks nearly identical to the original at a fraction of the size. Check by zooming in on detailed areas.

4. Remove what you do not need

Photos can carry metadata such as camera details and location. Removing it saves a little space and protects privacy.

5. Check the result

Compare the compressed image with the original on a real screen. If you see blocky patches or banding, raise the quality a little.

Do it in your browser

Gentooly’s image tools run in your browser, so your photos are not uploaded to a server for the basic tasks. Use the compressor to reduce file size and the resizer to set dimensions.

Free tools on Gentooly

45+ free tools for PDFs, images, text and data, with no signup for core tools.

Compress an image free →

Sources