How to Reduce Image File Size Without Losing Quality
Complete guide to reducing image file size for the web — format choice, JPEG quality settings, WebP conversion, metadata stripping, and a practical 5-step workflow.
PixConvert Team
How to Reduce Image File Size Without Losing Quality
Images are a big part of what a web page downloads. In HTTP Archive's 2025 Web Almanac, the median mobile home page loaded 911 KB of images out of 2,559 KB in total. Large images slow pages down, hurt Core Web Vitals and use up bandwidth. You can usually make them much smaller with no change you can see, by picking the right size, format and quality setting.
Why File Size Matters Beyond Speed
Core Web Vitals and SEO
Largest Contentful Paint (LCP) measures when the biggest thing on the screen finishes loading. Google counts 2.5 seconds or less as good and anything over 4 seconds as poor. The 2025 Web Almanac found that the LCP element is an image on 76% of mobile pages, so a heavy hero image often decides the score.
Mobile connections
On a 4 Mbps connection, a 2 MB hero image takes 4 seconds just to download, and a 3 MB product gallery takes 6.
Storage and bandwidth costs
A site serving 1 million image views a day at an average of 500 KB sends 500 GB a day. Cut the average to 150 KB and it sends 150 GB, saving 350 GB every day.
Step 1: Resize to the Size You Display
Compression lowers the amount of data per pixel, while resizing lowers the number of pixels. Resize first: if you resize after compressing, the image gets compressed twice, which can add artifacts.
If your site shows an image at most 800 px wide, a 4000 px version wastes bytes no matter how well it's compressed. Going from 4000 to 800 px wide cuts the pixel count 25 times. For high-density screens, you can go up to twice the display size.
Common sizes for the web:
- Hero banner: up to 1920 px wide (1440 px is enough for many sites)
- Image inside a blog post: 800 to 1200 px wide
- Product thumbnail: 400 to 600 px
- Social share image: at least 1200 x 630 px, the size Meta recommends for link previews
- Profile picture or avatar: 256 px is usually plenty
Set exact pixel sizes with the image resizer.
Step 2: Choose the Right Format
For photos:
- JPG is the baseline.
- In Google's tests, lossy WebP files were 25 to 34% smaller than JPGs of the same quality.
- AVIF is usually smaller still, but it takes longer to save. Our WebP vs AVIF comparison covers the trade-off.
For graphics, logos and screenshots:
- PNG is the lossless baseline.
- In Google's tests, lossless WebP files were 26% smaller than PNGs.
- Avoid JPG here. It blurs sharp edges, and for flat graphics the file is often bigger than a PNG anyway.
If your site still serves only JPG photos, converting them with the JPG to WebP converter is one of the easiest savings you can make. For graphics, turn on the Lossless switch in the PNG to WebP converter: every pixel is kept, and the file still comes out smaller than the PNG.
Step 3: Set the Right Quality Level
JPEG quality runs from 1 to 100, and many apps save near the top of the scale: GIMP, for example, defaults to 90.
The top of the scale costs the most. We saved one 5376 x 3072 photo-style test image at different quality settings with ImageMagick, the engine PixConvert runs:
| Quality | File size |
|---|---|
| 95 | 2.42 MB |
| 90 | 1.39 MB |
| 85 | 833 KB |
| 80 | 688 KB |
| 75 | 590 KB |
| 60 | 443 KB |
| 50 | 390 KB |
Going from 95 to 85 cut the file by two thirds. Going all the way from 75 down to 50 saved only 200 KB, less than the single step from 90 to 85 (586 KB), and the low settings are where artifacts start to show around sharp edges and in smooth areas like sky. For most web photos, a setting between 75 and 85 is a good place to start. Real camera photos have more fine detail and grain than this test image, so their files will be bigger at every setting.
The image compressor starts at 75, and you can drag the slider or type a target size such as 200 KB. It runs in your browser, so large files compress without an upload.
Step 4: Strip EXIF Metadata
Photos from cameras and phones carry EXIF metadata: the camera model, shooting settings, often GPS coordinates, and a small preview thumbnail. In a JPEG, the EXIF block can take up to 64 KB.
A product photo or blog image doesn't need any of it, and the GPS coordinates can show where the photo was taken. Removing the metadata makes the file smaller without changing anything on screen.
In the image compressor, Strip metadata is on by default. It removes EXIF, GPS and XMP data but keeps the color profile, so colors don't change.
Step 5: Check the Result
Open a few results at 100% zoom before you replace your originals. If you can't see a difference, you're done. If you can, raise the quality a few points and try again. Lossy WebP and AVIF throw away detail the same way JPG does, just more efficiently, so check those too.
When Not to Compress
Some files should keep their full quality:
- Originals and source files. Keep your RAW files and full-size PNG or TIFF masters as they are, and store web copies separately.
- Print files. Print shops often ask for 300 DPI and sometimes for CMYK. Web compression on a print file can show up as blocky patches on paper.
- Medical and legal images. Some fields have rules against lossy compression. Check them before you compress scans or X-rays.
- Files that get bigger. Now and then a JPG comes out larger than a PNG, for example a small icon with few colors. Try both and keep the smaller one.
Start with the free image compressor for photos, and use PNG to WebP or JPG to WebP to change formats. There's no limit on how many files you add.