Compress Images to 20KB Online — Free, Instant & Private

Hit the exact 20KB limit required by SSC, UPSC, IBPS, NEET, and hundreds of government portals — without shrinking your photo dimensions or blurring faces.

The 20KB file-size ceiling is one of the most rigid upload constraints on the Indian internet. Government recruitment portals for SSC CGL, UPSC Civil Services, IBPS PO, SBI Clerk, RRB NTPC, and state PSC exams routinely demand passport-size photographs between 10KB and 20KB, and scanned signatures between 4KB and 20KB — with zero tolerance for oversized files. A single byte over the limit and the form rejects your submission outright. Generic image-resizing tools either shrink your photo to an illegible thumbnail to meet the size target, or they undershoot the limit and leave unused capacity that can degrade perceived quality. Our tool takes a fundamentally different approach: it compresses the image data itself, not the pixel canvas, so your face stays sharp and your photo's dimensions remain exactly as uploaded.

What separates a precision 20KB compressor from a generic quality-slider tool is the algorithm underneath. Browsers expose the Canvas API's `toBlob()` and `toDataURL()` methods with a floating-point quality parameter ranging from 0.0 to 1.0. Naively trying a fixed quality level (say, 0.7) produces wildly inconsistent results — a flat-colour graphic might compress to 8KB while a high-detail photograph stays at 45KB. The only reliable method is iterative binary search: start at quality 0.5, measure the output, then halve the search space — going up if the file is too small, going down if it is too large — and repeat until the output lands at 20KB or just below. Our engine runs up to 15 such iterations entirely inside your browser tab, converging on the tightest possible quality without ever sending a single pixel to a remote server.

Privacy is not a secondary feature here — it is the architectural foundation. Every byte of computation happens locally in your browser using the Web Workers API and the HTML5 Canvas. Your image is never transmitted over a network connection, never written to a cloud storage bucket, and never seen by any server. This means you can safely process Aadhaar-linked documents, passport photographs, medical images for NEET applications, or any other sensitive file with complete confidence. There is no account registration, no watermark, no expiry timer, and no artificial limit on the number of files you can compress in a single session.

How to Compress an Image to 20KB in Three Steps

  1. 1

    Upload Your Photo or Signature

    Click 'Upload Image' or drag and drop your JPG, JPEG, PNG, or WebP file directly onto the tool. You can add multiple images at once for batch compression — ideal when you need to compress both a passport photo and a scanned signature for the same exam form.

  2. 2

    Compress to Exactly 20KB

    Click 'Compress to 20KB'. Our 15-step binary search algorithm iterates through quality levels in your browser, narrowing in on the precise setting that brings your image to 20KB or just under — without reducing pixel dimensions or introducing visible face blur.

  3. 3

    Download Your Compressed Image

    Once compression is complete, click 'Download' to save your optimised file. The displayed file size confirms it meets the 20KB portal requirement. For batch jobs, use 'Download ZIP' to grab all compressed images in one click.

Why the 20KB Limit Exists — and Why Generic Tools Fail It

India's government e-governance infrastructure was architected in an era of constrained bandwidth and limited server-side storage budgets. The National Informatics Centre (NIC), which builds and maintains portals for UPSC, SSC, Railways, IBPS, and dozens of state boards, historically capped uploaded image sizes at 20KB to ensure low-bandwidth users in rural areas could complete form submissions within a reasonable timeout. This constraint has persisted even as internet speeds have improved, because changing file-size validation rules retroactively risks breaking existing workflows and database schemas across hundreds of active portals. As a result, the 20KB limit is not an arbitrary choice — it is a deeply entrenched technical requirement that millions of applicants must satisfy every year.

The failure mode of generic image compressors is consistent and frustrating: they either reduce the image resolution (shrinking a 200×230 pixel passport photo down to 60×70 pixels, making it too small for official use) or they apply a uniform quality reduction that either overshoots or undershoots the target. Several popular tools also impose server upload requirements, meaning your sensitive personal documents are transmitted to and processed on a third-party server — an unacceptable privacy exposure for government ID photographs. Some tools add watermarks to free-tier output or limit batch processing to three files, which is impractical when you are preparing for multiple exam applications simultaneously.

Our compressor addresses each of these failure modes explicitly. The binary search algorithm operates on JPEG quality parameters that affect the Discrete Cosine Transform (DCT) quantization tables inside the image file — reducing redundant frequency coefficients without altering the pixel grid itself. Your photo stays at 200×230 pixels (or whatever dimensions you uploaded) while the encoded file weight drops to under 20KB. The tool processes files in parallel using Web Workers so batch jobs complete quickly, and there is no session limit, no watermark, and no server involvement of any kind. If your image is already under 20KB, the tool detects this immediately and skips unnecessary processing.

Government Portals & Exam Forms That Require Images Under 20KB

  • SSC CGL & CHSL Applications — Staff Selection Commission portals require passport-size photos between 20KB and 50KB for some rounds, but many state SSC portals enforce a strict 20KB maximum for scanned signatures and photographs on the One-Time Registration form.
  • UPSC Civil Services Prelims & Mains — The UPSC Online Application Portal mandates that the candidate's photograph be in JPG format with a size between 3KB and 40KB, while scanned signatures must be between 1KB and 30KB. Compressing to 20KB keeps you well within both limits simultaneously.
  • IBPS PO, Clerk, SO & RRB Exams — Institute of Banking Personnel Selection forms require photos not exceeding 50KB and signatures not exceeding 20KB. The signature limit is a classic 20KB requirement that trips up many applicants who scan at high DPI.
  • SBI PO & SBI Clerk Recruitment — State Bank of India online application forms for Probationary Officer and Clerical Cadre positions specify photograph size limits of 20KB–50KB; a 20KB target satisfies the lower bound and guarantees acceptance across all their sub-portals.
  • RRB NTPC, Group D & ALP Applications — Railway Recruitment Boards impose some of the strictest image constraints in Indian public-sector recruitment, often capping photographs at exactly 20KB and signatures at 10KB–20KB.
  • NEET UG & PG Admissions — The National Medical Commission's NMC/NTA online application for NEET requires passport photos in JPG format not exceeding 100KB, but many state medical counselling portals (such as MCC and state DME portals) impose 20KB limits on the documents uploaded during choice-filling and certificate verification rounds.
  • JEE Main & GATE Online Applications — NTA's JEE Main application portal requires photographs between 10KB and 200KB, but GATE (IIT-administered) and many state technical university portals cap document images at 20KB during registration.
  • CUET & Central University Admissions — The Common University Entrance Test application portal operated by NTA requires photos not exceeding 300KB at the NTA level, but individual central and state university portals linked through CUET often impose 20KB caps on locally uploaded documents.
  • PAN Card Application via NSDL/UTIITSL — The NSDL e-TIN and UTIITSL online PAN portals require passport-size photographs and signature scans in JPEG format, with file size limits that commonly sit at 20KB for the digitally uploaded documents during fresh application and correction requests.
  • Aadhaar Update & Enrollment Portals — UIDAI's self-service update portal (myaadhaar.uidai.gov.in) requires supporting document scans in PDF or JPEG format. While the portal allows up to 1MB for some document types, many certified enrollment centres and CSC operators submit images compressed to 20KB to comply with UIDAI's internal backend ingestion limits.
  • Indian e-Visa & Passport Applications — The Ministry of Home Affairs e-Visa portal and the Passport Seva Kendra online appointment system both accept photographs in JPEG format, with e-Visa requiring photos between 10KB and 300KB. Compressing to 20KB ensures compatibility with the strictest interpretation of these requirements and works for re-uploads on older government systems.
  • TNPSC, KPSC, MPSC & State PSC Exams — Tamil Nadu Public Service Commission, Karnataka PSC, Maharashtra PSC, and nearly every other state public service commission uses standardised NIC-built portals that enforce 20KB photograph and signature limits, making this tool essential for applicants across all major Indian states.

Key Features of Our 20KB Image Compressor

15-Step Binary Search Precision

Unlike tools that try a handful of fixed quality presets, our engine performs up to 15 iterative binary search steps — converging on the highest possible JPEG quality level that keeps your file at or below 20KB. This means you get maximum visual fidelity within the exact file-size constraint, every time.

Zero Server Upload — 100% Browser-Side Processing

Your images never leave your device. All compression logic runs in your browser tab using the HTML5 Canvas API and Web Workers. This is not just a marketing claim — there are no API calls, no cloud functions, and no telemetry. You can verify this in your browser's network inspector: it will show zero outbound image requests.

Preserves Original Pixel Dimensions

We compress the image data, not the canvas. Your 200×230 pixel passport photograph stays 200×230 pixels after compression — the JPEG quantization tables are tightened, not the pixel grid. This is critical for government portals that validate both file size AND minimum pixel dimensions.

Batch Compression with ZIP Download

Upload your passport photo, signature scan, and supporting document images in one go. Our tool compresses all files in parallel and lets you download everything as a single ZIP archive — dramatically reducing the time spent preparing multi-document application packages for SSC, UPSC, IBPS, and state PSC forms.

Supports JPG, JPEG, PNG & WebP Input

Whether your image is a PNG screenshot of a scanned document, a WebP exported from a photo editor, or an existing JPEG that needs further reduction, our tool accepts all major raster image formats and outputs an optimised JPEG — the format accepted by virtually every Indian government portal.

Instant Smart Detection — Skips Already-Optimised Images

If you upload a file that is already under 20KB, the tool detects this in milliseconds and marks it as 'Already optimised — under 20KB' without running unnecessary compression cycles. This is especially useful during batch processing when some files may already be within the required limit.

How the 20KB Compression Engine Works Under the Hood

JPEG compression is fundamentally a lossy process governed by quantization tables applied to 8×8 pixel blocks after a Discrete Cosine Transform (DCT). The DCT decomposes each block into frequency components — low-frequency components represent broad gradients like smooth skin tones, while high-frequency components represent fine detail and sharp edges. The quantization step divides each DCT coefficient by a value from the quantization table and rounds to the nearest integer. Higher quantization divisors mean more rounding, which means more information loss — but also smaller encoded file size. The Canvas API's `toBlob(callback, 'image/jpeg', quality)` method encapsulates this entire pipeline, exposing a single `quality` float between 0 and 1 that scales the quantization table entries. Our binary search operates on this parameter, finding the minimum quality loss needed to land the output at exactly 20KB.

The binary search algorithm initialises with a low bound of 0.01 and a high bound of 0.99. At each step, it computes the midpoint quality value, encodes the image at that quality using the Canvas API, measures the resulting Blob size in bytes, and updates the bounds: if the encoded size exceeds 20,480 bytes (20KB), the high bound is set to the midpoint; if it is below, the low bound is set to the midpoint. After 15 iterations, the search space has been narrowed to a range of approximately (0.99 − 0.01) / 2¹⁵ ≈ 0.00003 quality units — a precision that is imperceptible to the human eye but sufficient to consistently hit the 20KB target. The final encoding uses the low-bound quality value to guarantee the output never exceeds 20KB, while maximising visual quality within that constraint. The entire process runs in a Web Worker thread, keeping the browser's main UI thread responsive throughout batch jobs.

The Web Workers API is essential for batch processing performance. Each uploaded image is assigned to an independent worker, and the workers run concurrently up to the hardware concurrency limit reported by `navigator.hardwareConcurrency`. On a modern device with 8 logical cores, up to 8 images are compressed simultaneously, meaning a batch of 8 exam application documents compresses in roughly the same wall-clock time as a single file. Memory management is handled carefully: once a compressed Blob is transferred back to the main thread and handed to the download handler, the worker's image buffer is released. This prevents the progressive memory growth that plagues naive browser-side image tools and ensures you can process dozens of files in a single session without the browser tab becoming sluggish or crashing. No image data persists in memory or on disk after you navigate away from the page.

Frequently Asked Questions About 20KB Image Compression

Will compressing my photo to 20KB make it look blurry?
Not in most cases. Our binary search algorithm finds the highest JPEG quality level that keeps your file at or below 20KB. For a typical passport-size photograph at 200×230 pixels, the required quality level is usually above 0.60, which produces output that looks nearly identical to the original on screen and in print. Visible quality degradation only occurs when the source image is very high resolution (e.g., a 4000×3000 pixel photo) and needs to be squeezed into 20KB — in those cases, we recommend resizing the image to the correct pixel dimensions (200×230 for most government forms) before compressing, which dramatically reduces how much quality reduction is needed.
Does this tool change the pixel dimensions of my image?
No. Our tool never alters the width or height of your image. It adjusts JPEG compression quality only — the DCT quantization parameters inside the file — while keeping the pixel canvas exactly as you uploaded it. This is critical for government portals that validate minimum dimensions alongside file size. If you need to resize your image to specific pixel dimensions (such as 200×230 pixels for an SSC photo), use a separate resizing tool first, then compress here.
Is my image uploaded to any server?
Absolutely not. Every step of the compression process — file reading, Canvas encoding, binary search iteration, and output Blob generation — happens inside your browser tab on your own device. You can confirm this by opening your browser's DevTools Network panel while compressing: you will see zero outbound requests carrying your image data. This architecture makes the tool safe for sensitive documents including Aadhaar-linked photographs, PAN card images, medical documents, and government ID scans.
What image formats does this tool accept as input?
The tool accepts JPG, JPEG, PNG, and WebP files as input. All formats are decoded by the browser's native image decoder, drawn onto an HTML5 Canvas, and then re-encoded as JPEG — which is the format required by virtually all Indian government and exam portals. PNG inputs with transparency are composited on a white background before JPEG encoding, since JPEG does not support an alpha channel.
Why do SSC, UPSC, and IBPS portals require photos under 20KB?
India's major government recruitment portals were built on NIC (National Informatics Centre) infrastructure designed for low-bandwidth environments. The 20KB ceiling ensures that applicants on slow mobile connections in rural areas can upload documents without timeouts, and that backend databases do not balloon in size when millions of applicants submit forms simultaneously. This constraint has remained in place even as average internet speeds have improved, because changing validation rules retroactively risks breaking compatibility with older sub-systems and creating inconsistencies across state and central government portals.
My photo is 150KB. Can this tool really compress it to 20KB?
Yes, for the vast majority of exam-form photograph use cases. A typical 150KB passport photo is a JPEG that was saved at high quality — meaning its quantization tables have minimal rounding. Our binary search will reduce the quality parameter until the output reaches 20KB, which usually means increasing the quantization divisors to remove high-frequency detail that is invisible in a thumbnail-sized passport photo. The key factor is source image resolution: if your 150KB photo is already at the correct 200×230 pixel dimension, the compression ratio needed is modest and the output quality is very good. If it is a 2MB, 3000×3600 pixel studio photograph, you should resize it to 200×230 pixels first.
Can I compress multiple images at once — for example, a photo and a signature?
Yes. The tool supports batch compression. You can upload your passport photograph, scanned signature, and any other required document images in a single session. All files are processed in parallel using Web Workers, and you can download the entire batch as a ZIP archive. This is especially useful when filling out SSC, IBPS, or state PSC forms that require both a photo and a signature to be uploaded as separate files, each under 20KB.
What should the pixel dimensions of my photo be for government exams?
Pixel dimensions vary by portal, but the most common specifications in Indian government recruitment are: 200×230 pixels for a passport-size photograph (used by UPSC, SSC, and most NIC portals), 140×60 pixels for a signature scan (used by IBPS and many banking exams), and 3.5 cm × 4.5 cm at 100–200 DPI for scanned passport photos (which translates to roughly 138×177 to 276×354 pixels). Always check the specific instructions on your exam notification or portal FAQ — our tool preserves whatever dimensions your file has, so resize to the correct dimensions before compressing here.
The portal says 'image size should be between 10KB and 20KB.' How do I hit that range?
Our tool targets the upper bound — it compresses to as close to 20KB as possible without exceeding it. Because we use a 15-step binary search, the output typically lands between 19KB and 20KB for images that were originally larger than 20KB. This places you squarely within the 10KB–20KB range specified by most portals. If your source image is already smaller than 10KB (for example, a very small or low-resolution file), our tool will detect it as already optimised and you may need to increase the image's pixel dimensions or use a higher-resolution source scan.
Does the tool work on mobile phones and tablets?
Yes. The tool runs entirely in the browser and is optimised for mobile devices including Android smartphones and iPhones. You can upload an image from your phone's gallery or camera roll directly, compress it to 20KB, and download the result — all without installing any app. On mobile devices, the Web Worker threads are limited by available RAM and CPU cores, so very large batch jobs may take slightly longer than on a desktop, but single-image compression is consistently fast.

Related Image Compression Tools