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 Image
100% free · your files never leave your device

Why 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?
Yes. Pick a preset or type any target. The tool reduces quality and, if needed, dimensions until the file is under that size while staying as clear as possible.
Will my photo still be accepted by exam or visa forms?
If the form only enforces a file-size limit, a correctly sized JPG usually passes. If it also requires exact pixels (for example 140×60 or 35×45mm), resize to those dimensions first, then compress to the KB limit.
Why is the output JPG instead of PNG?
Photos and scans reach small KB targets much more reliably as JPEG. PNG stays large for photographic content, so forms that demand 20–100KB almost always expect JPG.
Is my image uploaded to your servers?
No. Compression runs entirely in your browser. Your file never leaves your device.
What if the image looks soft at a very small target?
Crop or resize to fewer pixels first, then compress. A smaller canvas can hit 20KB with less quality loss than crushing a huge photo.

Looking for something else? Browse all free online tools.

WowShortcuts
Your files never leave your browser