Compress an image to an exact size in KB
Many online forms (job applications, exams, scholarships, government services) ask for a photo or signature “under 50 KB” or “between 20 and 50 KB”. Pick the size, add your images, and the tool finds the best quality that fits that size — or the smallest change that reaches it if the image is too small. You see the real file size, in KB and in bytes, before you download. Everything happens on your device: your images never leave your device.
Works anywhere in the world, wherever you are.
or drag them here. JPG, PNG or WebP.
Up to 30 images of up to 25 MB and 50 megapixels each.
Counted as 1 KB = 1,000 bytes, the stricter count: it passes even if the form uses 1,024.
For forms that ask for a range, for example “between 20 and 50 KB”.
Quality is lowered first with every pixel kept. Only if that is not enough is the picture made smaller: a slightly smaller sharp photo looks better than a big blocky one.
Final size
—
Choose one or more images.
- Target
- at most 50 KB
- Within the target
- —
- Format
- JPG
Your images never leave your device: they are processed in your browser, never uploaded to any server and never stored. Close the page and they are gone.
Does the form also ask for exact pixels or an aspect ratio? Use Upload Fixer.
Related tools
Upload Fixer
Everyday
Fit a photo or PDF to a portal's size, format and dimension rules.
OpenCompress Images
Everyday
Cut the file size of your photos at the same dimensions, no upload.
OpenResize Images
Everyday
Change the pixel width and height of your photos, no upload.
OpenCompress PDF to KB (100, 200, 500 KB, 1 MB)
Devices & media
Get a PDF under the exact size a portal asks for, with no upload and no surprises.
OpenHEIC to JPG Converter
Everyday
Turn iPhone HEIC photos into JPG or PNG, without uploading.
OpenAbout this calculator
How it reaches the exact size
To get under a maximum it uses the same method as the site's Upload Fixer: the full image is tried at good quality first; if it is too heavy, the JPG or WebP quality is lowered with every pixel kept, using a binary search that stops just under the limit. Only if even the lowest quality we use (35 out of 100) is not enough, and you allow it, is the picture made smaller: a slightly smaller sharp photo looks better than a big blocky one.
Every attempt is a real file encoded by your browser, and the size you see is that file's size. Nothing is estimated: if it says 49.8 KB, the file is 49,800 bytes.
You can process several images at once (up to 30) and download them one by one or as a ZIP. If an image already meets the target and is already in the requested format, the original is handed back untouched, because compressing it again could only make it worse.
Increasing an image's size in KB (no tricks)
Some portals also ask for a minimum, such as “at least 20 KB”, and reject a scanned signature that weighs 8 KB. In “Increase to a minimum” mode the image is made heavier with real bytes only: the quality goes up first (to 100) and then, if that is not enough and you allow it, the picture is enlarged as little as needed, up to 4× or 6,000 pixels on the long side.
The file is never padded with junk data or fake metadata to inflate it. Enlarging adds no detail the photo did not have: it only makes it bigger, and the tool tells you so. If a very plain image (a signature on white) still cannot reach the minimum, you get an explanation instead of a file that fails.
For a range, type the second limit in the optional field: the tool looks for a file that lands between the two.
KB, KiB and why we aim lower
Some systems count 1 KB as 1,000 bytes and others as 1,024. This tool uses 1,000, the stricter count: a file under 50,000 bytes passes a “50 KB” limit either way. That is why the result also shows the exact byte count.
For a minimum it works the other way round: if a portal wants “at least 20 KB” counting 1,024 bytes per KB, type 20.5 KB to be safe (20 × 1,024 = 20,480 bytes).
Tips for document photos and signatures
JPG is the format nearly every form accepts. WebP weighs less at the same quality, but use it only if the site takes it.
If the form also asks for exact pixel dimensions (for example 200 × 230) or an aspect ratio, use the Upload Fixer, which crops and resizes before fitting the size.
A photo with a plain background and good light reaches small sizes without looking bad; the noise of a dark photo takes up many bytes. iPhone HEIC photos need to be turned into JPG first with the site's HEIC converter.
Important limitations
- JPG, PNG or WebP images up to 25 MB and 50 megapixels; up to 30 at a time. Output is JPG or WebP; transparent areas turn white in JPG.
- Targets from 2 KB to 50 MB. When shrinking, the long side does not go under 160 pixels; when enlarging, not past 4× or 6,000 pixels.
- Saving again strips EXIF data (date, camera and location) and applies the phone's rotation first. Some older browsers cannot create WebP.
- It does not know each portal's rules: check the official site for the size, format and dimensions they ask for.
Frequently asked questions
This calculation runs in your browser and is never sent to a server. Your last values may be saved on your device only, for convenience. Results are estimates and are not financial, tax, accounting or legal advice.