🧰 Free tools
Home › Blog › Photo sizes

How to Compress a Photo to an Exact Size (30KB, 50KB, 200KB) for Online Applications

Your form does not want a “small” photo. It wants a photo under an exact number of kilobytes — and it will reject you at 31KB without blinking. Here is how exact-size compression works and how to hit the number first time.

By the FormFit Team · Published 14 October 2026 · Updated 14 October 2026 · 5 min read

Why forms demand an exact size at all

Application portals store millions of photos and documents, so their rules are written by the database, not by a person. A typical instruction says “photo must be under 30KB” or “between 20KB and 50KB”. The upload box checks the file’s actual size on disk — not how the photo looks, not its dimensions — and rejects anything outside the rule instantly. That is why an ordinary “compress image” tool often still fails you: it makes the photo smaller, but not exactly what the form asked for.

File size is measured in kilobytes (KB). A photo straight from a modern phone is usually several thousand KB (a few megabytes), so reaching 30KB means keeping roughly one hundredth of the original data. That sounds brutal, but ID and application photos are displayed tiny — a well-made 30KB photo still looks perfectly clear at the size the portal prints it.

“Under 30KB” is not the same as “20–50KB”

Read your form’s rule carefully, because there are two kinds:

If your form gives a range, your compressor must aim inside it — ideally just under the top of the range, which keeps the most quality the rule allows. This is the detail most generic tools miss, and the reason a photo can be rejected even after you “compressed” it.

Step by step: hitting the exact size

  1. Start from the original photo. Never compress a photo that was already compressed by a messaging app — it has lost detail already and will look worse.
  2. Set the target. In the exact-KB compressor, type the ceiling from your form (30, 50, 200…). For a range rule, tick range mode and set the minimum as well.
  3. Compress and check the result line. The tool re-encodes the photo at carefully tested quality levels until the file lands on your target, then tells you the exact KB it reached.
  4. Download and verify the file size yourself (see below) before you upload it anywhere.

Resize first, or compress first?

Many forms specify both dimensions and size — for example “200×230 px, 20–50KB”. In that case, order matters: resize to the exact pixels first with the resize tool, then compress the resized photo to the KB target. Compressing first and resizing after can push the file size back up or change it unpredictably. If the form only gives a KB rule, skip resizing entirely — fewer steps, better quality.

Why quality drops — and how to protect it

Compression works by keeping less information. At very small targets, two things suffer first: smooth gradients (skies, plain backgrounds) can band into visible steps, and fine detail (hair, fabric texture) softens. You can protect quality more than you’d expect:

Check the file size before you submit

Never trust that a download “should” be right — check it the way the portal will. On a phone, open the file’s details or properties in your gallery or file manager and look at the size in KB. On a computer, right-click the file and open Properties (Windows) or Get Info (Mac). If the portal measures in KB and your file reads “0.05 MB”, that is 50KB — know which side of the rule it falls on, and remember some systems count 1MB as 1,000KB and others as 1,024KB, so leave a small margin under any ceiling.

Still being rejected? The usual culprits

If the size is right but the form still refuses the photo, check the other rules hiding in the instructions: the dimensions may also be fixed (200×230 px is common), the format may be restricted to JPG, or the portal may want a plain background and a recent photo. And if your documents — CNIC, degrees, certificates — need to become a single PDF under a limit like 500KB, that is a separate job: the images-to-PDF tool builds it and shrinks it to fit. Get the file right once, and the form stops being the hard part of the application.

Compress your photo to an exact KB size

Set any target — 30KB, 50KB, 200KB — or a range like 20–50KB, and download a photo that lands precisely on it. Free, in your browser, nothing uploaded.

Open the free tool →

Keep reading

Documents

PDF to Word Conversion: How It Works and How to Keep Your Formatting

A converted Word file that looks “almost right, but the headings moved and the table exploded” is not a broken…

Read the guide →
ID photos

Passport Photo Size and Rules: A Practical Guide (PK, AU, UK, US)

“Passport size photo” is not one size. It is a family of sizes that differ by country and by document — and th…

Read the guide →
All guides

Browse the FormFit Blog

Every guide in one place — file sizes, documents, ID photos, study skills and AI prompts.

See all guides →