How to Make Images Smaller for Your Website Without Losing Quality
A single photo straight from a phone can be 4 to 8 MB. Put ten of those on a page and visitors on mobile data wait, get bored and leave. Slow pages can also hurt how your site ranks in search.
The good news: most images can be made 70 to 90% smaller with no difference anyone will notice. You just need the right size, format and quality setting.
1. Resize first: this gives the biggest saving
Phone cameras take photos around 4000 pixels wide, but most websites never show an image wider than 1200 to 2000 pixels. Every extra pixel is wasted download.
- Full-width banners and hero images: about 1920 px wide.
- Images inside a blog post: 1200 to 1600 px wide.
- Thumbnails and product grids: 400 to 800 px wide.
- Logos: only as big as they're shown, ideally SVG if you have it.
Halving the width cuts the number of pixels by about three quarters, so resizing alone often takes a file from several MB to a few hundred KB.
2. Pick the right format
- WebP: usually the smallest for photos and graphics, and supported by all modern browsers. The best default for websites.
- JPG: works everywhere, good for photos. Use it if a platform doesn't accept WebP.
- PNG: for images that need a transparent background, like logos and icons. Files are larger, so don't use it for photos.
- SVG: for logos and simple icons drawn as shapes. Stays sharp at any size and is often tiny.
3. Choose the right quality setting
Quality around 70 to 80% is the sweet spot for most photos. Below about 60% you start to see blurry edges and blocky skies. Go higher for images with small text, like screenshots.
The quickest way to find the right setting is to compare: compress, zoom in on the result, and only go higher if you can actually see a problem.
4. Do it in one step, for free
Our free Image Compressor does all three at once:
- Choose one or more images.
- Set a maximum width, like 1280 px for blog images.
- Pick WebP, JPG or PNG and a quality level.
- Compress, check the "saved %" for each image, and download.
It runs in your browser, so your photos are never uploaded. It also strips hidden photo data like GPS location, which is a nice privacy bonus when you post photos online.
5. A few extra tips that add up
- Name files clearly: "blue-running-shoes.webp" helps search engines more than "IMG_4821.webp".
- Add alt text: a short description of each image helps screen reader users and search engines.
- Don't upload huge files and shrink them with code: the visitor still downloads the full file.
- Check your page speed: free tools like Google PageSpeed Insights show which images are slowing a page down.
Quick settings cheat sheet
- Blog photo: 1280 px wide, WebP, 75% quality.
- Homepage banner: 1920 px wide, WebP, 75 to 80%.
- Product photo: 1200 px wide, WebP or JPG, 80%.
- Logo with transparent background: SVG, or PNG at the size it's shown.
The bottom line
Resize to the size you actually show, use WebP, and keep quality around 75%. Your pages will load faster, and nobody will notice the difference in quality.
Got a heavy PDF too? See 6 ways to make a PDF smaller.