How to compress an image to a specific size
Choose the maximum size
Tap one of the presets or enter your own limit in kilobytes.
Add your images
Photos, scans or screenshots in JPG, PNG, HEIC, WebP or AVIF all work.
Download
Each result is guaranteed to be at or below your limit. Save them one by one or as a ZIP.
Safe for passport photos and documents
Size limits usually come with sensitive uploads – ID photos, scanned certificates, CVs. Sending those to an unknown compression website first is a needless risk. KeepPixels compresses them inside your browser, so they never leave your device.
How KeepPixels hits your limit
Most tools let you pick a compression level and hope for the best. KeepPixels works the other way round: you choose the size, and it searches for the highest quality that fits.
The method
- The image is encoded with MozJPEG, an encoder that packs more detail into each kilobyte than the one built into browsers.
- KeepPixels tries different quality settings and narrows them down until the file is just under your limit.
- If even a low quality isn’t enough, the image is scaled down a little and the search starts again.
The result keeps as much of your budget as possible – you won’t get a 12 KB smudge when 100 KB was allowed.
Getting the best result
- Crop first. Removing empty borders leaves more kilobytes for what matters.
- Use the original file, not a screenshot of it.
- Check the pixel size, too. Some portals ask for a minimum width or height as well as a maximum file size.
Need exactly 100 KB for a portal? The 100 KB compressor has that limit preset and tips for typical forms.
Learn more
Frequently asked questions
Will the file really be below the limit?
Yes. Every result is checked before you can download it and is never larger than the size you chose.
Does 100 KB mean 100,000 or 102,400 bytes?
We count 1 KB as 1,000 bytes, so a "100 KB" result is at most 100,000 bytes. That passes forms that count either way.
Why did the dimensions of my image change?
Only when the quality would otherwise have dropped below a level where blocks and smudges become visible. A slightly smaller, sharp image looks better than a full-size blurry one.
Why is the result always a JPG?
JPG gives by far the best quality per kilobyte for photos and scans, and practically every form accepts it. PNG or HEIC files are converted automatically.
What does the "quality" number next to the result mean?
It's the JPG quality we ended up using (40–95). Above 80 the difference from the original is hard to see.
Can I compress several images to the same limit?
Yes. Add as many as you like; each one is compressed to the size you chose.