How to compress a photo to a fixed size
- Add your photo.
- Tap a target like 20 KB or 50 KB, or type your own number.
- Press Compress photo, check the preview, then download.
The tool tries many quality levels and keeps the best-looking one that is still under your limit. If the photo is very large, it also reduces the pixel size slightly so it can fit.
Tips for online forms
- If a form says “between 10 KB and 50 KB”, choose a target near the top, like 45 KB, for the best quality.
- To change the size in cm or pixels too, use our Photo Resizer — it also has a max KB option.
- JPG works almost everywhere. Choose WebP only if the website accepts it.
Questions people ask
How do I compress a photo to 20 KB?
Add your photo, tap 20 KB, then press Compress photo. Download the result — it will be 20 KB or a little under.
Will my photo lose quality?
Some quality is lost when you make a file much smaller, but the tool always picks the best quality that fits your limit.
Is it safe for ID photos and documents?
Yes. Your photo is processed inside your browser and is never uploaded.
Why is my PNG turned into JPG?
JPG files are much smaller for photos, which is what you need to hit a KB target. A white background replaces any transparency.