Quick Answer
To reduce image file size, choose an efficient format (WebP or AVIF instead of PNG), compress with a suitable quality setting (80-85 for JPG), and resize the image to the size it is actually displayed at. Together, these steps can cut file sizes by 90% or more.
Step 1: Choose the Most Efficient Format
The format affects file size more than any other choice. For photographs, WebP and AVIF produce the smallest files. For graphics with text and sharp edges, optimized PNG or WebP in lossless mode works best. If you're not sure, our format advisor suggests a format based on your image and how you plan to use it.
Step 2: Compress with the Right Quality Setting
For lossy formats (JPG, WebP, AVIF), the quality slider trades size against quality:
- Quality 90-95: minimal quality loss and a moderate size reduction
- Quality 80-85: a good balance with a large size reduction (recommended)
- Quality 60-75: the smallest files, with quality loss you can see up close
For photographs, quality 80-85 usually works best. For graphics with text, use lossless compression or a higher quality setting. When a form or site caps the file size, compress image to size finds the highest quality that fits 100 KB, 50 KB or any limit you set. The guide to lossy vs lossless compression explains what each setting keeps and discards.
Step 3: Resize to Display Dimensions
Serving images larger than they appear on screen wastes bandwidth. Check how large each image is actually displayed and resize it to match. Most website images only need to be 800-1600 pixels wide, and social media images need 1080 pixels on the longest side.
Step 4: Strip Metadata (Optional)
Image metadata (EXIF data, camera info, GPS coordinates) can add 10-100 KB per file. If you don't need it, strip it. Removing location data also protects your privacy.
File Size Comparison by Format
| Original | JPG (Q85) | WebP (Q85) | AVIF (Q85) |
|---|---|---|---|
| 5 MB PNG photo | 400 KB | 280 KB | 200 KB |
| 3 MB JPG photo | 300 KB | 210 KB | 150 KB |
| 2 MB PNG graphic | 800 KB | 600 KB | 450 KB |
Try It Now
Compress and optimize your images in your browser, with no software to install and no uploads to a server.