Images are usually the heaviest part of a web page. A picture straight from a phone can be 5 MB; on a page it is shown 800 pixels wide. You are sending ten times more than needed.
Three levers #
- Pixel size. A picture shown 800 pixels wide does not need 4000 pixels. Resize it to twice the shown size at most, for sharp screens.
- Format. JPG for photos, PNG for pictures with sharp edges or transparency, WebP for both with smaller files.
- Quality. For photos, 75 to 85 is usually not to be told from the original.
Do it in the browser #
The Image Compressor works inside your browser, so your pictures are not uploaded and it keeps working when the connection is poor. Add a whole folder, set the mode, and save all as one ZIP.
Choose the mode #
Quality. Move the slider and watch the size. Under the picture a "Likeness" line says whether a difference can be seen at all: "Looks the same" means you can go lower.
Target size. Type, for example, 200 KB. The tool finds the best quality that fits and never goes above. If it must, it scales the picture down.
Lossless. Not one pixel changes. Good for logos and screenshots saved as PNG. For a photo saved as PNG there is little to gain without loss; change the type to JPG or WebP instead.
Resize first, then compress #
Set the pixel size under Pixel size: by width, longer side, percent, or fit into a box. A picture is never enlarged unless you allow it.
Camera data #
A phone photo carries place, date and camera. For a public website, leave it out. The tool offers Camera data: Leave out, and the turn of the picture stays so it does not lie on its side. This also protects your privacy.
WebP and AVIF #
WebP is smaller than JPG at the same look and keeps transparency. AVIF is smaller still, but the tool offers it only where your browser can really write it, and not every program opens it yet.
Compare at 100 percent #
Open the 100 percent view and look at a detailed part, such as hair or text. This is where artefacts show first.
A checklist for a page #
- Resize to the displayed width, doubled at most.
- Choose WebP or JPG for photos.
- Quality 75 to 85, or a target size.
- Remove camera data.
- Compare, then save all.