Compress an image to an exact size in KB
Does a form want a photo "under 100 KB"? Enter the maximum size and the tool finds the best quality that fits. It handles several photos at once and they never leave your device.
🔒 Your files never leave your device
How to use it
- Choose one or more images (JPG, PNG, WebP, GIF or BMP).
- Type the maximum size in KB or tap one of the common sizes.
- Pick the output format: JPG is the most widely accepted by forms; WebP gives better quality for the same size.
- Press "Compress" and download each image or all of them as a ZIP.
Example
Photo for an online application
A 3.4 MB, 4000 × 3000 phone photo must be under 100 KB. With a 100 KB target in JPG, the tool tries different quality levels and, if that is not enough, reduces the dimensions just as much as needed: the result is typically around 1600 × 1200 pixels and below 100 KB.
How it works
It first looks for the highest JPEG/WebP quality that meets the limit using a binary search (about 8 attempts per image). Only if even low quality does not fit are the dimensions reduced step by step, because a slightly smaller but sharp photo usually looks better than a heavily compressed one.
The tool uses 1 KB = 1024 bytes, like Windows and most forms. If a site uses 1 KB = 1000 bytes, the result still passes because it is slightly stricter.
Re-encoding removes EXIF metadata (including GPS location) and saves the photo already correctly rotated.
Limitations
- Very small targets (under 10 KB) require shrinking the image a lot; check it is still legible.
- Images with transparency lose it when saved as JPG (filled with white). Use WebP to keep it.
- Safari cannot create WebP files: on iPhone and Mac, JPG is used.
FAQ
How do I compress an image to under 50 KB?
Type 50 in the maximum size field (or tap "50 KB") and compress. If the photo is very large, the tool will also reduce its dimensions.
Why is my photo smaller than the size I asked for?
The limit is a maximum: the best quality that stays under it is chosen, which may be a few KB below.
Does it lose quality?
Somewhat, since it is lossy compression, but the highest possible quality for the requested size is used.
Are the photos uploaded?
No. Everything happens in your browser.