A page is only as light as the images on it. The hero photo at the top and the content photos below it usually arrive straight from a camera at several megabytes each, and every megabyte is weight the page asks a visitor's connection to carry. Compressing them first is the simplest weight you can take off a page, and it costs a few seconds per photo.
This guide walks through that routine with the free Image Compressor on Ovatly: which quality setting suits which slot, when WebP beats JPEG, and how to check each result before it is downloaded. It talks about file size only, in plain before and after numbers.
Contents
- Quick answer
- Where page weight actually sits: hero images and content photos
- The quality settings that map to page slots
- WebP or JPEG: choosing the format per image
- How to compress website images, step by step
- Worked example: a 3 MB hero photo at 80 percent
- Limitations
- Common mistakes
- FAQs
- Conclusion
Quick answer
Before an image goes on your website, run it through the Image Compressor. Add the JPG, PNG or WebP file, set the quality slider to 80 percent for a standard web photo, choose WebP where your site supports it or JPEG for the widest compatibility, compare the before and after sizes, check the preview, and download. Use 60 to 70 percent for thumbnails and 90 percent or more only where detail matters. It works one image at a time and does not change dimensions, so resize first when the pixel size is wrong for the slot.
Where page weight actually sits: hero images and content photos
Most pages have two kinds of photographs. The hero image is the large one at the top, shown wide and seen first, so it is usually the heaviest file on the page, and the one where quality is most visible. Content photos sit inside the text at smaller sizes; individually lighter, they add up across a long page, and their smaller display size tolerates a firmer squeeze.
That split is why one blanket setting for a whole site is the wrong approach. The hero deserves the careful end of the routine: the sweet spot setting, a close look at the preview, WebP if the site supports it. Content photos follow the same steps faster; thumbnails can go lower still. What every image shares is the starting point: none should go up at camera weight when a re-encode shrinks it invisibly at display size.
The quality settings that map to page slots
The tool's own guidance gives three working points, and they line up neatly with the slots on a page. At 80 percent quality you get much smaller files with no visible loss for most people; that is the sweet spot, and the right default for hero images and content photos alike. At 60 to 70 percent the file shrinks further and small artefacts may appear at full size, but thumbnails are never seen at full size, so that range suits them. At 90 percent and above you keep the most detail and pay for it in kilobytes, justified only when every detail matters: a product photo customers zoom into, a portfolio piece.
The slider updates the result live, so treat these numbers as starting points, not rules. Set 80 percent, read the after-size, look at the preview, and adjust for the image in front of you. A flat graphic compresses further than a detailed photograph at the same setting; the panel tells you the truth.
WebP or JPEG: choosing the format per image
The compressor offers both output formats, and the choice is per image, not per site. JPEG is the safe default: it has the widest compatibility, opening in every browser and editor. WebP is the smaller option for the modern web: where your site supports it, WebP buys the same visual quality at a lower file size.
One content type deserves a specific note. Screenshots and images with large flat areas behave differently from photographs: as JPEG they can gain artefacts around text and edges without saving much space. The tool's notes point out that PNG screenshots with large flat areas often shrink more as WebP than as JPEG. The practical habit is simple: for a screenshot, try both formats at the same quality and keep whichever result is smaller and cleaner in the preview.
How to compress website images, step by step
- Open the Image Compressor and add the image by tapping the file box or dropping the file onto it. JPG, PNG and WebP are accepted.
- Choose the output format: WebP if your site supports it and you want the smaller file, JPEG for the widest compatibility.
- Set the quality slider for the slot: 80 percent for hero and content photos, 60 to 70 percent for thumbnails, 90 percent or more only when detail matters.
- Read the before and after sizes in the result panel, then check the preview against the original, paying attention to faces, text and gradients.
- If the preview shows banding or smearing, raise the quality a little and compare again. If the file is still too heavy for its slot, check whether the dimensions exceed what the page needs and resize first.
- Download it and put it on the page. Repeat for each image, so every result gets its own check.
Worked example: a 3 MB hero photo at 80 percent
A typical phone photo is 3 MB at 4032 x 3024 pixels. Used as a page hero straight off the phone, it carries the whole 3 MB into the page. Compressed at 80 percent quality and saved as JPEG, the same photo usually lands in the hundreds of kilobytes, with no visible difference at normal viewing sizes. Nothing changed except the encoding: same dimensions, same picture, kilobytes instead of megabytes.
Now scale that habit across a page. A hero plus four content photos at camera weight is a page carrying well over ten megabytes of photography. The same five images, each passed through the compressor at 80 percent, are five files in the hundreds of kilobytes. The exact saving depends on the images, since detailed photos compress less than simple graphics, which is why the tool shows true before and after numbers instead of promising a percentage.
Limitations
The compressor handles one image at a time, so a page of photos is a sequence of individual checks, not a batch job. It re-encodes JPG, PNG and WebP and offers JPEG or WebP output; it does not resize, crop or edit, and dimensions stay exactly as they were, so a wrong-sized image needs resizing as a separate step. Compression is lossy, meaning fine detail is traded for size permanently, so keep your original photos if you may need them for print or re-editing. It reports file sizes honestly; what those savings mean for a visitor depends on the rest of the page.
Common mistakes
- Uploading camera originals. A 3 MB photo in a slot a few hundred pixels wide is wasted weight. Compress first, every time.
- One setting for every slot. Thumbnails at 90 percent waste kilobytes nobody can see; a hero at 60 percent shows damage everybody can see. Match the setting to the slot.
- Skipping the preview check. The after-size can look great while a sky bands or text smears. The preview exists for exactly this reason.
- Compressing the compressed file. If a result is not right, go back to the original at a different setting. Re-encoding a lossy copy discards detail a second time.
- Defaulting screenshots to JPEG. Flat areas and sharp text often do better as WebP. Try both formats and compare the readouts.
FAQs
What quality setting should I use for website images? 80 percent is the sweet spot for photos on the web: much smaller files with no visible loss for most people. Drop to 60 to 70 percent for thumbnails, and stay at 90 percent or more when every detail matters.
Should I use WebP or JPEG on my website? Choose WebP for smaller files on the modern web where your site supports it, and JPEG for the widest compatibility. PNG screenshots with large flat areas often shrink more as WebP than as JPEG, so try both and keep the smaller.
Does the compressor change my image dimensions? No. Dimensions are not changed by this tool; it re-encodes the image at its existing pixel size. When you need different pixel sizes, resize the image first and then compress it.
Can I compress all the images for a page at once? This tool handles one image at a time so you can check each result. For a page with several photos, the flow takes only a few seconds per image, and each one gets its own preview check.
Is my image uploaded for compression? No. Your browser does the compression itself using its built-in image encoder. The image never leaves your device.
Conclusion
The routine is short: every hero image and content photo goes through the Image Compressor at the setting its slot deserves, WebP where the site supports it, preview checked, then onto the page at a fraction of its camera weight. When the squeeze is driven by a hard upload limit instead of a page, the companion guide on how to reduce an image size to 200 KB works the same slider against a fixed ceiling. More guides like this one live in the Image Tools guides archive.