How to Reduce Image Size for Websites
Images are often the heaviest part of a web page, and the largest image near the top is frequently the element Google measures for Largest Contentful Paint (LCP), one of its Core Web Vitals. Smaller images load faster on slow connections and use less of your visitors’ data.
1. Size images for the slot
Do not upload a 4000 px photo for a column that is 800 px wide. Export about twice the displayed width for sharp high-density screens, for example 1600 px for an 800 px slot, using the Image Resizer.
2. Pick the format
- WebP for most images. Google reports lossless WebP files 26% smaller than PNG, and lossy WebP 25–34% smaller than comparable JPEG at the same SSIM quality. Convert with PNG to WebP or JPG to WebP.
- JPEG when a platform or email client might not accept WebP.
- PNG only for graphics that need exact pixels, such as some logos and diagrams.
3. Compress
For photos, a JPEG or WebP quality around 75–85 is a common starting point. Compare the result with the original at the size it will be shown, not zoomed in. The Image Compressor shows the before and after size as you move the slider.
4. Help the browser in your HTML
- Add width and height attributes so the page does not jump while images load.
- Add loading="lazy" to images further down the page, but not to the main image at the top, or it will appear later.
- Use srcset to offer a smaller file to phones and a larger one to wide screens.
5. Strip metadata
Camera photos carry EXIF data such as camera model, time and sometimes GPS location. It adds bytes and can reveal where a photo was taken. Remove Image Metadata strips it in your browser.
Frequently Asked Questions
Should I lazy-load the main image at the top?
No. Lazy-loading the main image delays it, which usually makes Largest Contentful Paint worse. Lazy-load images further down instead.
Do all browsers support WebP?
All current versions of the major browsers do, including Chrome, Edge, Firefox and Safari. Some email clients, upload forms and older apps still do not, so keep a JPEG or PNG copy for those.
Is my image uploaded when I use these tools?
No. Resizing, converting and compressing all happen in your browser.