Compress an Image to an Exact KB (Passport & Visa Forms)

WhatsApp
Telegram
Facebook
Twitter
LinkedIn

Most image compressors give you a quality slider and hope for the best. That is fine for shrinking a photo — but when a passport, visa or exam portal says your file must be under 250KB, or between 10KB and 250KB, hope is not a strategy. You need the file to land on an exact number. This guide shows the limits the main portals actually enforce, the one unit trap that causes rejections, and how to hit an exact KB target in your browser — free, no signup.

Quick Jump Navigation (Table of Contents)

The limits portals actually enforce

PortalPhoto sizeFile sizeFormat
UK passportAt least 600 × 750 px50KB – 10MBColour, unaltered
UK visa / permissionAt least 600 × 750 px50KB – 6MBJPG / JPEG, portrait
India Passport SevaExactly 630 × 810 px10 – 250KBJPEG only

Two things in that table catch people out. First, the UK rules are a range, not just a ceiling: a UK passport photo must be at least 50KB as well as under 10MB, and GOV.UK’s photo rules say not to crop a self-taken photo — the service crops it for you. So for a UK passport the exact-KB job is about the 50KB floor and the 10MB ceiling, not cropping. Second, India’s rule is exact on both axes: the pixel size is not a minimum, it is exactly 630 × 810 — a single pixel off is rejected by the portal’s automated validator — and there is a 10KB floor, so over-compressing fails just as surely as under-compressing. You also get only 12 upload attempts per application, photo and signature combined, so build the file correctly before you touch the portal. The old 2 × 2 inch / 20–100KB spec was superseded in September 2025 — do not use it.

The 1KB trap: aim 5% under the limit

Portals count a kilobyte as 1,000 bytes. Many tools and operating systems count it as 1,024. That 2.4% gap is enough to push a file that reads “249KB” on your computer over a 250KB limit on the portal. The safe habit is to aim about 5% under the limit: for a 250KB ceiling, target 237KB; for 100KB, target 95KB; for 50KB, target 47KB. A file a few KB under the limit is accepted. A file one byte over it is rejected.

How to compress to an exact KB

Open the free Image Compressor and upload your JPG, PNG or WebP. It runs in your browser — no signup, nothing uploaded to a server. Then set the exact target size in KB — 237KB for a 250KB limit, for example — and download the compressed file. Check the file size on your computer before you upload it to the portal.

If the portal also demands exact pixels — India’s 630 × 810, for instance — resize first, then compress. Use the Image Resizer to set the exact pixel dimensions, then compress the resized file into the KB range. Resize first, compress second: compressing first and resizing after changes the file size again, and you will be back to guessing.

India Passport Seva: the strictest case

India’s Passport Seva is the hardest portal to satisfy, because it pins down both the pixels and the file size. The current GPSP 2.0 rules require a JPEG, exactly 630 × 810 pixels, and a file between 10KB and 250KB. The photo must be on a plain white background, with the face taking 80–85% of the height, and no glasses. Two things trip people up: the pixel size is exact, and the 10KB floor means over-compressing fails just as surely as under-compressing. And with only 12 upload attempts per application, photo and signature combined, there is no room to iterate inside the portal. Build the file correctly first — resize to exactly 630 × 810, compress into 10–250KB, check the size on your computer — and only then upload it.

Frequently asked questions

What if my photo is under the portal’s minimum KB?

Raise the target size — a file under the floor is rejected just like one over the ceiling. If your photo is far under the floor, start from the original, higher-quality file rather than re-compressing one that is already small.

Does compressing to an exact KB hurt quality?

It depends how far you have to go. Shrinking a 2MB photo to 237KB is a big cut and will soften fine detail; shrinking a 400KB photo to 237KB is barely visible. Start from the highest-quality original you have, and check the result at full size before uploading.

Can I compress a PNG to an exact KB?

Yes — the tool handles JPG, PNG and WebP. But PNG files are usually much larger than JPGs for photos, so if the portal accepts JPEG, a JPG will reach a small target far more easily than a PNG.

Why does my file read a different size on the portal than on my computer?

That is the 1,000 vs 1,024 bytes trap: your computer and the portal can disagree on what a kilobyte is by about 2.4%. Aim about 5% under the limit and the difference stops mattering.

Sources

  • GOV.UK — Photos for passports (UK passport and visa photo rules, checked directly)
  • Passport Seva GPSP 2.0 photo rules (India) — as published in the portal’s instructions and reported by multiple sources; the portal itself requires sign-in to view
Trustpilot

Run 450+ client-side PDF, image, developer & calculator utilities in your browser (Zero Cloud Upload):

Open Free Image Tools →