How to reduce image size for your website without losing quality
Images are usually the heaviest part of a web page. Making them smaller is the quickest way to speed up your site, and visitors won't notice any difference in quality.
Slow pages lose visitors, and search engines take speed into account. On most websites the biggest cause of slow loading is oversized images: photos straight from a camera or phone, often 4000 pixels wide and several megabytes, displayed in a space 800 pixels wide.
Step 1: resize to the size you actually display
This is the biggest win. If an image is shown at most 1200 pixels wide on your site, there is no reason to upload a 4000-pixel original. Resizing alone often cuts the file size by 80–90%.
A practical approach:
| --- | --- |
|---|---|
| Full-width hero banner | 1920–2400 px |
| Blog post image | 1200–1600 px |
| Product photo (with zoom) | 1600–2000 px |
| Thumbnail or card | 400–600 px |
| Logo | As small as it is displayed, ×2 for sharp screens |
The "×2" rule: high-resolution screens show more detail, so upload images about twice the size they appear on screen, but no larger. You can resize in batches with our image resizer.
Step 2: choose the right format
- Photos: WebP or JPG.
- Graphics, logos, screenshots: PNG or lossless WebP, or SVG for vector logos.
WebP is usually 25–35% smaller than JPG at similar quality, and all modern browsers support it. See our comparison of JPG, PNG and WebP.
Step 3: compress
Compression removes data that the eye does not notice. For JPG and lossy WebP, a quality between 75 and 85 gives files much smaller than the original with no visible difference for normal viewing. Our image compressor can also target a specific file size in KB.
Good targets for most sites:
- Hero images: under 200–300 KB.
- Blog and product images: under 150 KB.
- Thumbnails: under 50 KB.
These are guidelines, not hard limits; a detailed product photo may justify more.
Step 4: let the browser help
A few HTML attributes make a big difference:
- `loading="lazy"` on images below the fold, so they load only when the visitor scrolls near them. Do not lazy-load the main image at the top of the page.
- `width` and `height` attributes so the browser reserves space and the page does not jump while loading (this improves the Core Web Vitals metric called CLS).
- `srcset` and `sizes` to serve smaller files to phones and larger ones to desktop screens.
Many website builders and CMSs do some of this automatically, but they cannot fix an original that is far too large.
Step 5: strip unnecessary data
Photos from cameras and phones carry metadata (EXIF): camera model, settings and sometimes GPS location. Removing it saves a few kilobytes and protects your privacy. Most compressors, including ours, remove it when re-encoding.
A checklist before uploading
- Resize to at most twice the displayed width.
- Use WebP or JPG for photos, PNG/WebP/SVG for graphics.
- Compress at quality 75–85.
- Check the file size against your targets.
- Add width, height and lazy loading in your HTML.
Why do it in the browser?
Many online compressors upload your images to their servers, add daily limits or watermarks. Our tools process images on your own device, so there are no limits and your images stay private, which matters for client work and unreleased products.