Compress Images for Web Pages
Images are usually the heaviest asset on a page and the most common reason a site feels slow. The fix is two steps, and doing them in the right order matters more than any single setting.
Resize first, compress second
A 4000-pixel photo displayed at 800 pixels still costs the visitor the entire file. Export at the size the page actually shows, then compress that version. Together the two steps typically remove the large majority of the weight.
Formats in practice
WebP for the modern web, JPG where maximum compatibility matters, and PNG only when transparency is required. Keeping the quality setting consistent across a page avoids a patchwork look where one image is soft and the next is sharp.
Frequently asked questions
- What quality setting should I start with?
- Around 80 is a good starting point. Compare the file size with how the image looks, and stay above roughly 60 for photographs, where artefacts begin to show.
- Do image sizes affect SEO?
- Page speed is a ranking factor and images are the usual cause of a slow page, so reducing their weight helps indirectly but measurably.
- How small should a page image be?
- Aim well under 200 KB for typical content images. A hero image can be larger when it is the focus of the page.