The short answer
Three things about the file decide how heavy a picture is to load: how many pixels it has, which format it is saved in and how hard it is compressed. Resize each picture to the size it is actually shown at, save it in a modern format such as WebP, then compress it and check the result by eye.
Start with the pixels
A photo straight from a camera is usually wider than the column it will sit in. The browser still has to download the whole file to draw it small. Find out how wide the picture appears on your page and note the figure; you will type it into Max width below. A common practice is to allow up to twice the displayed width, because high-density screens can show the extra pixels. The tools never enlarge, so a picture already narrower than your figure is left at its own width.
Match the format to the picture
- Photographs: WebP usually gives a smaller file than JPG and opens in current Chrome, Edge, Firefox and Safari. AVIF can be smaller still and works in current browsers. JPG remains the safest choice where old software must open the file.
- Logos, icons, charts and screenshots of text: PNG keeps every edge exact. WebP is worth trying when the PNG is heavy.
- Pictures with a transparent background: PNG, WebP or AVIF. Converting one to JPG fills the transparent areas with white.
- Animated pictures: the tools here handle still pictures only, so leave animations to other software.
Resize, convert and compress in one pass
- Open the Compress image tool. Set Output format to the format you chose and type your width into Max width.
- Pick Balanced to begin with. It uses a fixed quality that aims for a good trade between size and appearance.
- Drop in the original pictures.
- Look at the percent saved on each row, then drag the Compare slider on the pictures that matter most, such as the one at the top of the page.
- If a picture looks rough, switch to Custom and raise the quality slider. If it looks fine and the file is still heavy, lower it.
- Download the results and upload those to your site in place of the originals.
Work from originals
Lossy formats generally lose a little each time a picture is saved again, so compressing a file that was already compressed stacks one loss on another. Doing the resize, the format change and the compression in a single pass avoids that. Keep the untouched originals in a folder of their own and produce the web versions from them. When a page design changes and a picture needs a new width, go back to that folder.
Compressed files also come without hidden data, so camera details and GPS positions are not published along with your pictures. The colour profile is not carried over either. Where exact colour matters, check the picture on the live page.
What the page itself can do
A light file is only part of the job. In the page code, give each image its width and height so the layout does not jump as pictures arrive. Mark images far down the page for lazy loading so they are fetched only when the reader gets near them. If your site builder offers responsive images, let it serve a narrower file to phones. These are settings in your site or its template, not in the picture.