When a page loads slowly or an upload hits a size limit, the usual first move is to drag the quality slider down. Other changes do more, though. The numbers below come from shrinking a smartphone photo (3000×4000, 2.6MB) with this site's converter. The test photos and the measuring method are described in How the measurements on this site were made.
Step 1: Resize to the size you need
The biggest saving comes from not serving an image larger than it appears on screen. Smartphone photos can be 3000 to 4000 pixels wide, while a blog's text column is usually around 800. Every pixel nobody sees is still paid for in file size.
| Setting | Size | File size |
|---|---|---|
| The original file | 3000×4000 | 2.6MB |
| JPG, quality 80, original size | 3000×4000 | 1.4MB |
| JPG, quality 80, width 1280px | 1280×1707 | 345KB |
Dropping only the quality to 80 at the original size takes 2.6MB down to 1.4MB. Keeping that quality and cutting the width to 1280 pixels gives 345KB, about 75% smaller. Unless you need a double-size version for high-density (Retina) screens, match the size the image is displayed at. On this site, enter a width in px under Size in the options and the aspect ratio is preserved.
Step 2: Pick a format that suits the image
Once the size is settled, look at the format. At the same width (1280px) and quality 80, JPG was 345KB and WebP was 223KB, so WebP was about 35% smaller. With another photo saved in several formats, the PNG came out more than seven times the size of the JPG at quality 90 (the table is in PNG vs JPG), so if your site's photos are PNG, changing the format alone is the easiest win. Logos and screenshots are different. With few colors and some text, PNG is often smaller or about the same, and JPG blurs the lettering. A rule that holds up well: JPG or WebP for photos, PNG or WebP for transparency and simple graphics. WebP vs JPG covers the difference between those two in more detail.
Step 3: Adjust quality last
If the file is still too big after resizing and choosing a format, that's when quality comes in.
| JPG quality | File size (chicken photo, 960×1280) |
|---|---|
| 95 | 497KB |
| 90 | 343KB |
| 80 | 226KB |
| 60 | 146KB |
Going from 95 to 80 cuts the file by more than half (497KB to 226KB). In an enlarged comparison of a different photo (the dog), JPG 80 was hard to tell from the source by eye; see the enlarged image in WebP vs JPG. An image full of text looked different: at quality 60 the letter edges smeared (see PNG vs JPG). These figures come from single photos and will differ for others, so for anything important, check the size and the actual quality on the result screen.
Step 4: Remove information you don't need
Camera photos carry EXIF data such as the device, the time and the location. It adds little to the file size, but it can be sensitive. Results from this site don't include it by default. To see what an original carries, use the EXIF viewer and remover.
When there's a fixed size limit
If the destination sets a limit such as "200 KB or less", the compress to a target size tool is faster than repeating the steps above by hand. Pick the target and it lowers quality first, then shrinks the dimensions if that isn't enough, until the result fits.
The order at a glance
- Resize to the displayed size. This has the biggest effect.
- Save photos as JPG or WebP. A PNG photo shrinks a lot from the format change alone.
- Start quality at 80 to 85 and lower it if needed.
- Check the size and actual quality on the result screen.
You can add many files at once, convert them with the same settings and download them as a ZIP.
Convert PNG to JPG