Compress Image to 20KB — Free

Target your portal's exact KB range — automatic quality, honest pass/fail verdict

100% private — files never leave your device

Government and exam portals (SSC, IBPS, RRB, NEET, UPSC, Teletalk) rarely want a file simply "under 20KB" — they specify a range, like a 20–50 KB photo or a 10–20 KB signature, at an exact pixel size. A file squeezed too small is rejected just like one that's too big. This tool targets that whole band: pick your portal's preset (or type your own size and KB range), click once, and it automatically searches JPEG quality to land inside the range — then tells you pass or fail. No slider to nudge, no upload, runs entirely in your browser.

compress_to_20kb.sh
$compress --input
🗜️
Drop an image here or browse files
JPG · PNG · WebP · GIF · BMP
output
$compress --verdict
🔒 Privacy first: All processing happens locally in your browser. Your images are never uploaded anywhere — not even temporarily.

Your Files Never Leave Your Browser

100% Client-Side Processing

Conversions run locally in your browser using the Canvas API. Your image data stays on your device and is never uploaded to any server.

No Account. No Tracking of File Contents.

We use Google Analytics and Google AdSense for aggregated traffic stats and contextual ads when consent allows it. Theme and language preferences stay in your browser. We never see, read, or store the images you convert.

Open About Our Limits

Browser-based conversion has trade-offs: large files (>50 MB) may hit memory limits; animated GIF output flattens to a single frame; EXIF metadata is stripped; ICC color profiles may differ across browsers.

> portal_spec_reference

Portal groupRequired W×H (px)Official KB rangeNotes
India Govt Photo (SSC · IBPS · RRB · NEET · NTS)200 × 23020–45 KBVerify against current notice
Bangladesh Teletalk Photo300 × 30030–80 KBExact pixels — off-size rejected
UPSC / Passport (square)350 × 35030–150 KBKeep 1:1 ratio
Standard Signature (SSC · IBPS)709 × 23610–20 KBSSC 6×2cm @ 300 DPI; IBPS validates by KB — verify current notice
Bangladesh Teletalk Signature300 × 8015–50 KBExact pixels — off-size rejected
Wide Signature / Declaration800 × 40050–90 KBVerify against current notice

These are sourced portal requirements, not measured output — specs change every exam cycle, so always confirm the exact dimensions and KB range against your portal's current notice. Portal validators read pixel dimensions and KB size; KB is decimal (1 KB = 1000 bytes), matching portal counters.

> measured_on_device_benchmark

A first-party benchmark drives this exact tool in a real headless Chromium browser against every preset and reads back the true output bytes. For each preset it checks four things: the file lands inside the official KB range, the output is at the exact pixel size, the JPEG is baseline (portal-safe, not progressive), and it carries no EXIF metadata. Latest run — 6 / 6 presets passed.

PresetRequired W×HMeasured sizeOfficial rangeBaseline · no-EXIFResult
India Govt Photo (SSC · IBPS · RRB · NEET · NTS)200 × 23032.6 KB20–45 KB✓ · ✓PASS
Bangladesh Teletalk Photo300 × 30053.6 KB30–80 KB✓ · ✓PASS
UPSC / Passport (square)350 × 35089.2 KB30–150 KB✓ · ✓PASS
Standard Signature (SSC · IBPS)709 × 23615.0 KB10–20 KB✓ · ✓PASS
Bangladesh Teletalk Signature300 × 8025.2 KB15–50 KB✓ · ✓PASS
Wide Signature / Declaration800 × 40069.0 KB50–90 KB✓ · ✓PASS

Sizes are byte-honest and decimal (1 KB = 1000 bytes), matching portal counters. Inputs are high-detail synthetic samples that deliberately stress the compressor — a real photo or signature of similar detail behaves the same. A much simpler or smaller source may instead land below the KB minimum, which the tool flags honestly as under-sized rather than passing it off as compliant. The benchmark runs the untouched src/js/compressor.js engine via scripts/compressor-proof.mjs; full per-preset output is committed at src/assets/benchmarks/compressor/results.json.

> step_by_step_guide

  1. Upload your photo or signature
    Drag and drop your image into the tool, or click to browse. It stays in your browser — nothing is uploaded. The original dimensions and file size are shown immediately.
  2. Pick a preset or enter your KB range
    Choose a portal preset (SSC, IBPS, Teletalk, UPSC and more) to load the required width, height and KB range, or switch to manual and type your portal's exact pixels plus the min and max KB from its notice.
  3. Click Compress to Range
    The tool builds the exact-size canvas and automatically searches JPEG quality to land inside your KB band. There is no slider to nudge and no compress-check-repeat loop — one click runs the whole search.
  4. Read the pass/fail verdict and download
    The result panel shows a green PASS when the file is inside the range at the exact size. If it came out under the minimum you get an honest amber warning; if it went over the ceiling, or could only fit the range by resizing below your pixel size, it reports a clear FAIL. When it passes, click Download.

> file_size_limits_by_portal_type

  • Indian exam portals (SSC, IBPS, RRB, NEET, UPSC): photos are commonly 20–50 KB at 200×230 to 350×350px, signatures 10–20 KB at sizes from 140×60 up to 709×236px (e.g. SSC's 6×2cm at 300 DPI). The exact size and range change each cycle — read the current notice.
  • Bangladesh Teletalk: validates exact pixels (300×300 photo, 300×80 signature) and rejects off-size files. Use the locked Teletalk presets so the dimensions can't drift.
  • University / college applications: commonly 50–200 KB for photos and 20–50 KB for signatures — check the specific institution's form.
  • What validators actually read: pixel dimensions and KB file size. Portals rarely check cm/inch or DPI, and cm↔pixel conversions differ between notices — so set the pixel size the notice states rather than converting from centimetres.

> frequently_asked_questions

How do I compress an image to under 20KB?
Enter your portal's size — for example 200×230 pixels — and its KB range, then click Compress to Range. The tool automatically searches JPEG quality to land inside the band and shows a pass/fail verdict. There is no quality slider to nudge and no compress-check-repeat loop; the whole search runs in one click.
Why does a smaller file sometimes get rejected too?
Most portals specify a range, not just a ceiling — an SSC signature must be 10–20 KB, an IBPS photo 20–50 KB. A file squeezed to 7 KB is under-sized and rejected the same as one that is too big. This tool targets the whole band and warns you honestly when the result falls below the minimum.
Why won't the Teletalk preset let me change the pixel size?
Bangladesh Teletalk validators hard-reject images that are off by even one pixel, so its photo (300×300) and signature (300×80) presets lock the dimensions. If the KB range can't be met at those exact pixels the tool reports failure honestly instead of quietly resizing — because a resized file would be rejected on upload.
Is a browser-compressed JPEG accepted by old government portals?
Yes. The Canvas encoder writes a baseline (non-progressive) JPEG and strips EXIF metadata — exactly what legacy PHP-GD and ASP.NET validators expect. Progressive JPEGs from Photoshop's Save for Web are a common rejection cause. Portals check pixel dimensions and KB size — when this tool reports PASS, the output matches both exactly.
Does 'KB' here mean the same KB the portal counts?
Yes. This tool measures and judges in decimal kilobytes, where 1 KB = 1000 bytes — the same count portal upload forms show. Tools that use binary KB (1024 bytes) can read 19.9 KB for a file the portal counts as 20.4 KB, pushing you over the limit without warning.
Is my photo uploaded anywhere when I use this tool?
No. Everything runs in your browser with the Canvas API — your image is never uploaded to any server. No account is needed and nothing about your file is tracked or stored. After the page loads you can even use it offline.