Compress Image to an Exact Size
Shrink a photo to exactly 20KB, 50KB, 100KB or any target so form uploads stop rejecting it. Free, private, and works in your browser.
Drop your image here
JPG, PNG or WebP — compressed to your exact KB target
Choose ImageWhy forms reject images that look fine
Most government portals, exam sites, visa apps and job boards do not care how sharp your photo looks — they care about a hard file-size cap. A 2MB phone photo will fail even when the face is clear. This tool is built for that exact problem: enter the size the form asks for, and get a JPG that fits under it.
Unlike a generic “compress image” slider, target-size compression keeps lowering quality (and optionally dimensions) until the file is under your limit while staying as clear as possible. That is what “file too large” errors usually need.
How exact-size compression works here
Upload a JPG, PNG or WebP. Choose a preset such as 20KB, 50KB or 100KB, or type any target. The tool binary-searches JPEG quality and, if needed, scales the image down until the download is under that size.
Everything runs on your device. The original file is never uploaded, never stored, and never watermarked. Download the result and try the form again.
Before and after — what to expect
A typical phone photo at 1–4MB often lands under 50KB or 100KB with readable faces and documents. Extremely tight caps like 10–20KB may look softer; starting from a smaller crop or lower resolution usually helps more than forcing quality alone.
Output is JPG because it reaches small targets far more reliably than PNG for photos and scans.
Key features
Exact KB targets
Presets for 20KB, 50KB and 100KB, plus any custom limit the portal requires.
Keeps maximum clarity
Stops at the highest quality that still fits under your size cap.
Private by design
Processing stays in the browser — nothing is sent to a server.
Form-upload ready
Built for exam, visa, job and government photo requirements.
Supported formats and limits
- JPG / JPEG
- PNG
- WebP
- Output: JPG under your target KB
Common upload errors this fixes
- “File too large”
- “Image must be below 50KB / 100KB”
- “Maximum file size exceeded”
- “Please upload a smaller image”
- “File size should not exceed 20KB”
Your privacy is built in
Compress Image to an Exact Size runs locally in your browser — your file never leaves your device and is never uploaded to a server. No account, no watermark, and completely free.
Frequently asked questions
Can I compress an image to exactly 20KB, 50KB or 100KB?
Will my photo still be accepted by exam or visa forms?
Why is the output JPG instead of PNG?
Is my image uploaded to your servers?
What if the image looks soft at a very small target?
Related tools
Looking for something else? Browse all free online tools.