What this tool does
Many application forms, job portals and government websites reject photos above a fixed size, often 20 KB, 50 KB, 100 KB or 200 KB. This tool re-encodes your image as JPG or WebP and tries quality levels until it finds the highest quality setting it can find whose file is at or under your target (the search is accurate to about one quality step). If even the lowest sensible quality is too big, it can shrink the width and height step by step until the file fits.
The result card shows the exact number of bytes. The green "Meets target" label only appears when the file really is at or below the limit. If the target can't be reached, you get a clear message and the smallest version we managed, labelled as not meeting the target.
When it's useful
- Passport-style or ID photos for online applications with strict size caps.
- Signature scans that must be under 20 KB or 50 KB.
- Email attachments, forum avatars and marketplace listings with upload limits.
- Making a large phone photo small enough to send over a slow connection.
How to use it
- Choose or drop one image (JPG, PNG, WebP, GIF, BMP or AVIF).
- Enter the target size, or tap a common value like 50 KB.
- Pick JPG unless the website asks for WebP.
- Press Compress to target and check the byte count on the result.
- Download the file and upload it where you need it.
KB vs KiB: which one does the website mean?
Some systems count 1 KB as 1,000 bytes, others as 1,024 bytes. A file that is "100 KB" under one rule can be over the limit under the other. The default here is 1 KB = 1,000 bytes, which is the stricter reading, so the file fits either way.
| Target | 1 KB = 1,000 bytes | 1 KB = 1,024 bytes |
|---|---|---|
| 20 KB | 20,000 bytes | 20,480 bytes |
| 50 KB | 50,000 bytes | 51,200 bytes |
| 100 KB | 100,000 bytes | 102,400 bytes |
| 200 KB | 200,000 bytes | 204,800 bytes |
Practical examples
- A 4 MB phone photo to 100 KB: usually needs both lower quality and smaller dimensions. Expect a result around 1,200–1,600 px wide, which still looks fine on screen.
- A signature scan to 20 KB: scans with lots of white space compress very well; quality often stays high.
- A 300 KB image to 250 KB: a small reduction; the dimensions are normally kept.
Supported formats and limits
- Input: JPG, PNG, WebP, GIF (first frame only), BMP and AVIF where your browser can read it. HEIC iPhone photos aren't supported by browsers; set your camera to "Most Compatible" or export as JPG first.
- Output: JPG or WebP. PNG is lossless, so its size can't be steered to a target.
- Transparent areas become a solid colour in JPG (white by default).
- Very small targets for very detailed photos may need large reductions in dimensions. If you turn off resizing, some targets simply can't be reached, and the tool will say so.
- Maximum file size is 50 MB. On iPhone and Safari, images above about 16.7 megapixels are first scaled to fit the browser's canvas limit, and you'll see the new dimensions.
- Metadata such as camera details and GPS location is removed from the output. The photo is turned upright using its orientation tag first.