Every upload form has a number: under 20KB, under 50KB, 100KB max, between 20 and 50. Generic compressors give you a quality slider and leave the arithmetic to you — export, check the size, adjust, export again. This tool works the other way round: you type the KB number the form demands, and it finds the best-quality file that satisfies it.
It handles all three kinds of size rule you'll meet: at-or-under a ceiling (most portals), as close as possible to a figure, and at least a minimum — that last one matters more than people expect, because forms with lower bounds reject too-small files just as firmly as oversized ones.
or drop it anywhere in this box
JPG, PNG, WebP · processed locally on your device
Custom target, 2–10240 KB
Match the portal's rule
Converting PNG with transparency to JPG fills the background white.
One tap applies the exact dimensions, format, and file-size rule for the form. Verified presets are checked against the official source.
0 KB— KB
ORIGINAL—
RESULT—
Everything runs in your browser using the HTML5 Canvas — your photo is never uploaded to any server.
AD SLOT — BELOW TOOL
How exact-KB compression works
JPEG size isn't a linear function of its quality setting, so the tool runs a binary search: try a quality level, measure the bytes, halve the search range, repeat — up to nine passes, each visible on the gauge. If even minimum quality can't reach your target, dimensions step down 20% at a time until the file fits. The result is deterministic and repeatable, not a guess.
Common targets
Jump straight to a dedicated page for the most common limits: 20KB (strict government forms), 50KB (most job and admission portals), 100KB (profile photos and scans), 200KB (visa systems) — or the reverse problem, increasing a file to meet a minimum.
Frequently asked questions
What's the smallest size a photo can reach?
Depends on dimensions. As a rule of thumb: 300px portraits can reach ~10KB, 600px ~25–40KB, 1200px ~80–120KB before visible damage. The tool downscales automatically when your target demands it.
KB vs dimensions — what's the difference?
Dimensions are the pixel width and height; KB is storage size on disk. Forms often constrain both, so set dimensions first, then compress to the KB rule.
Is this really free with no catch?
Yes — no signup, no watermark, no upload. The site is ad-supported and the tool itself runs entirely on your device.