How to Compress an Image to a Specific KB Size
Upload forms love to set an oddly specific limit: “photo must be under 100 KB,” “signature under 20 KB,” “document photo between 50 and 200 KB.” Get it wrong and the form rejects it. This guide shows how to hit an exact file-size target without making the image unusable — and what to do when the limit is really tight.
Why forms demand a KB limit
Government portals, exam and job applications, and older upload systems cap file size to save storage and bandwidth. The limit is about kilobytes (KB), not the image’s pixel dimensions — though the two are linked. Understanding that link is the key to hitting the target cleanly.
Two levers that control file size
- Dimensions (pixels). A 4000-pixel-wide photo is huge. Most forms only display the image small, so you can shrink the pixels a lot before anyone notices.
- Compression (quality). JPEG compression trades a little image quality for a lot of file size. Gentle compression is invisible; heavy compression looks blocky.
The trick to hitting a tight KB target is to pull both levers a little rather than maxing out one — reduce the dimensions to something sensible and apply moderate compression.
Hit an exact KB target in your browser
Our free Compress Image to KB tool lets you set a target size and does the math for you. It runs in your browser, so your ID scan or personal photo is never uploaded.
- Open Compress Image to KB and add your image.
- Enter your target size (e.g. 100 KB) — or the range the form allows.
- The tool compresses to land under your limit and shows the result.
- Check it looks acceptable, then download.
Tips for tight limits
- Match the dimensions to the display size first. For a document or passport photo, the form usually needs only a few hundred pixels. Use Resize Image to bring the dimensions down before compressing — it does most of the work.
- Aim just under the limit, not way under. A 95 KB file for a 100 KB limit looks better than a 40 KB one. Don’t over-compress if you don’t have to.
- Use JPEG for photos. JPEG hits small sizes far better than PNG for photographs. Only keep PNG if you need transparency or the image is a sharp-edged graphic.
- Crop out empty space. Fewer pixels of background means a smaller file for the same subject detail.
Common problems and fixes
“It’s under the limit but looks terrible.” You compressed too hard on an image that’s still too big in dimensions. Shrink the pixel dimensions first, then compress gently — you’ll hit the same KB target at much better quality.
“The form says my photo is too small in dimensions.” Some forms require both a maximum file size and a minimum width/height. Set the dimensions to their minimum first, then compress to fit the KB limit.
“PNG won’t get small enough.” Photographs in PNG are always large. Convert to JPEG unless you genuinely need transparency — the size drops dramatically.
The short version
To hit a KB limit cleanly, reduce the pixel dimensions to what the form actually needs, then apply moderate JPEG compression to land just under the target. Pulling both levers a little beats crushing the quality with compression alone.
Ready? Compress an image to KB now — free, no signup, nothing leaves your browser.