How to Optimize Images for Faster Websites
Shrink the pixel size first, then choose JPEG, WebP, or PNG, and only then lower quality. A practical order that does not wreck text or faces.
The biggest saving is deleting pixels you never show. Compression is the second step. Doing it backwards — crushing a 4000-pixel JPEG and still shipping all of those pixels — leaves the page heavy and the picture worse.
1. Resize to the slot
Decide the largest size the layout displays, including a sharper version for high-density screens. Export that many pixels and no more. A 1200-pixel-wide article image is enough for a large share of sites. Product photos can stay near 2000 pixels square when a zoom view needs the detail.
Do that in the resizer before you touch the quality slider.
2. Choose a format
- Photos of places, people, and products: WebP, or JPEG if you need older tooling. Start near 85–92 on the quality scale and look at the preview.
- Screenshots, diagrams, and logos: PNG, or WebP only after you check that type is still crisp.
- Transparency: PNG or WebP. JPEG has no transparency. CropKit fills those pixels with the background color you choose.
- AVIF can be smaller, but only export it when the browser offers it and the pages that will display it can show it.
3. Then lower quality, if you still need to
Drop quality in small steps. Stop when flat skies, red areas, or text start to block up. Text and logos fall apart sooner than a photograph of trees. If the picture contains both, export the photo and the logo separately instead of crushing one file until the logo breaks.
A quality number is not a file-size promise. Two photos at the same slider setting can differ by hundreds of kilobytes. Judge the preview, not the number.
What optimization does not include
Lazy-loading is an attribute on the HTML image, not a property of the file. A CDN, responsive srcset, and caching headers are hosting decisions. CropKit can give you the right file. It does not change your server.
Keep one master that you do not overwrite, and export web copies from it. If the only copy you have is a heavily compressed JPEG, no tool can restore the detail that save removed.