Skip to content
Compressed in your browser · never uploaded

Compress to an exact KB

Set the number a form demands and get back the best-looking file that fits inside it.

Compress to an exact size

Drop an image here, or click to choose JPEG, PNG, WebP, HEIC or AVIF · processed in this browser, never uploaded
1 KB = 1024 bytes, which is how upload forms count
More options
Set this when a portal demands a range
Government portals almost always want JPEG
Optional cap applied before compressing
Show the search

Preloaded portal limits by country

Every portal below links to its own upload spec and compressor.

India

United States

Australia

United Kingdom

23 upload specifications read from official sources.

Common KB targets

What actually gets uploads rejected

Government and exam portals reject anything a kilobyte over their limit, and some reject anything under a floor as well.

File size is the obvious one, but it is rarely the only rule. Portals commonly check dimensions as well, and some check the aspect ratio: GATE requires the photo's width-to-height ratio to fall between 0.66 and 0.89, which a plain resizer will happily violate while hitting the KB target perfectly. RRB wants 24-bit colour depth and the candidate's name captioned at the bottom of the image. NEET wants 80% of the frame filled by the face, ears included, with no mask.

The other frequent failure is the floor. "Between 20 KB and 50 KB" trips people who compress hard and land at 12 KB. Compressing to the smallest possible file is the wrong instinct when a form specifies a range — you want to be just under the ceiling, which is what the search here aims for.

How can it hit an exact size when the quality slider is so unpredictable?

By searching instead of guessing. The relationship between the JPEG quality parameter and the resulting file size is monotonic — higher quality always means a bigger file — but it is wildly non-linear and different for every image. So the tool encodes your image repeatedly, narrowing the quality range by half each time, and keeps the largest result that still fits under your target. Eight passes resolve quality more finely than the encoder itself can act on.

Every pass re-encodes from the original decoded image rather than from the previous output. Compressing an already-compressed JPEG compounds the damage; going back to the source each time means the file you download has been through exactly one encode.

What happens when no quality setting is small enough?

Then quality is the wrong lever. A 4000 px wide photograph cannot become 20 KB at any quality without turning into mush. When the search runs out of room, the tool reduces the dimensions by 25% and searches again, repeating until it fits — and it tells you it had to, along with the final dimensions, so you are not surprised later.

Why does my file manager report a different size?

Because "KB" means two different things. This tool uses 1 KB = 1024 bytes, which is what upload validators almost always check against. macOS Finder and some Linux tools use 1 KB = 1000 bytes, which makes the same file look about 2.4% larger. If you are within a few KB of a hard limit, aim slightly under it.

Can I compress a PNG to a target size?

Not usefully. PNG is lossless, and the quality parameter has no effect on it at all — the only way to make a PNG smaller is to reduce its pixel dimensions. If you need a specific file size, choose JPEG. If your image has transparency, be aware that JPEG cannot store it; the transparent areas are filled with white before encoding, which is what every upload form expects anyway.

Does it strip EXIF and location data?

Yes, as a side effect of how it works. The image is decoded to pixels, drawn to a canvas and re-encoded, and that process does not carry metadata across. Your GPS coordinates, camera model and timestamps are not in the output file. Rotation is handled before the redraw, so photos do not come out sideways.

Is anything uploaded?

No. This site has no server-side code and no upload endpoint — it is static files behind a CDN. The compression runs in your browser. You can verify it by opening the network tab, or by disconnecting from the internet after the page has loaded and using the tool anyway.

Portals we have not published

These are held back because no official figure could be read, or because the official figures contradict each other. Guessing here would mean a rejected application:

  • IBPS — IBPS publishes scanning and uploading guidelines per recruitment cycle, but every located copy is a scanned image PDF rather than machine-readable text and could not be read. Figures around 200 × 230 px and 20–50 KB circulate on coaching and resizer sites; none trace to a readable official document, so nothing is published here. Read the guideline PDF linked from your own IBPS application page.
  • Passport Seva — There is no published KB or pixel limit because there is usually nothing to upload: the instruction booklet states a photograph is not required for applications submitted at a Passport Seva Kendra or Post Office PSK, where the photo is captured at the centre. A printed 4.5 × 3.5 cm photo applies only to the limited non-PSK route, and that is not a digital upload.
  • PAN Card — Protean's page states JPEG at 200 DPI with a 50 KB maximum, but gives photo dimensions as 5 cm × 2.5 cm, which contradicts the 3.5 × 2.5 cm size referenced elsewhere on the same domain for form-affixed photographs and looks like an error in the source. Because the dimension figure cannot be reconciled against a second official document, this row is held back rather than shipped with a number that may be wrong.
  • IRCC — IRCC's photograph specification page defines only printed requirements — a 35 × 45 mm frame with a 31–36 mm head — and says of digital photos merely that they must not be altered in any way. No KB, pixel or DPI figure for a digital upload is published, so none is invented here. For the Canadian passport digital spec, which is published, see the Canadian passport photo page.
  • CAT — The only official document currently on iimcat.ac.in is a 6-page 'CAT 2026 Information Bulletin' dated 26 July 2026, which lists the IIMs' programmes and general eligibility but does not contain a photograph or signature upload specification on its readable pages; the remaining pages of the rendered PDF could not be reliably extracted in this research session, so this is recorded as a gap rather than guessed at. CAT 2026 registration opens 3 August 2026 — only days after this bulletin — and the parallel CLAT 2027 notice, whose registration window opens the same day, states outright that admission-process specifics 'shall be notified in due course', suggesting the detailed photograph and signature specification may only surface once the online application form itself goes live. Candidates should check the upload screen on iimcat.ac.in directly once registration opens. No coaching or resizer-site figures (which circulate widely, e.g. around 5–80 KB) are reproduced here because none could be traced to an official IIM document.
  • CLAT — Held back: CLAT publishes no file size, pixel dimension or format limit at all — documents are embedded in a PDF rather than uploaded as images. With no target there is nothing for the compress tool to preload. CLAT is the odd one out among the portals covered here: the official UG and PG instructions both say only that a 'front facing passport size recent photograph with plain background' is required, and that 'all documents/certificates should be uploaded in pdf format only' — meaning the photograph is embedded inside a PDF rather than uploaded as a standalone JPEG, and no KB, pixel, DPI or aspect-ratio figure is given at all. The photograph and signature need not be attested. Figures are from the CLAT 2027 UG Instructions page (the current admission cycle; CLAT 2027's exam is 6 December 2026 and its registration opens 3 August 2026). The Consortium's site had already retired its CLAT 2026 UG instructions page (404) by the time of this research, since that admission cycle had concluded — a reminder that these pages disappear once a cycle closes, so always check the live current-cycle page.
  • CLAT — Held back: CLAT publishes no file size, pixel dimension or format limit at all — documents are embedded in a PDF rather than uploaded as images. With no target there is nothing for the compress tool to preload. As with the photograph, the official instructions ask only for the 'Signature of the candidate' among the documents to be uploaded, with every document — photograph, signature and certificates alike — submitted in PDF format only; no KB, pixel or DPI limit is stated for the signature. Same CLAT 2027 UG Instructions source and same caveat about the page disappearing once a cycle closes.
  • SBI PO — Held back on age. The only figures that could be read come from the 2015-16 recruitment advertisement; sbi.bank.in was in scheduled maintenance throughout the research window, so the current cycle could be confirmed to exist but not read. A decade-old advertisement is not evidence of today's limits, and this site does not publish a number it cannot stand behind. Read the upload instructions in your own notification.
  • SBI PO — Held back on age. The only figures that could be read come from the 2015-16 recruitment advertisement; sbi.bank.in was in scheduled maintenance throughout the research window, so the current cycle could be confirmed to exist but not read. A decade-old advertisement is not evidence of today's limits, and this site does not publish a number it cannot stand behind. Read the upload instructions in your own notification.
  • RBI Grade B — Exactly the same problem documented for the IBPS row on this site: RBI's Grade B online application is processed through IBPS's recruitment portal, and the notification/guideline document reachable there is an image-only, scanned PDF that could not be extracted as text. RBI's own opportunities.rbi.org.in site lists current vacancies but did not surface a separately hosted, text-readable version of the 2026 Grade B notification during this research. Figures like 200 × 230 px and 20–50 KB circulate on coaching and resizer sites (often copying the SBI/IBPS-style spec by assumption) but none trace to a readable official document, so nothing is published here. Candidates should read the scanned guideline PDF linked from their own RBI Grade B application on opportunities.rbi.org.in.