Compress Image to 20KB Online

Free, fast, and completely private. Drop in any JPG, PNG, WebP, or AVIF photo and compress it to exactly 20KB right in your browser — no uploads, no servers, no watermark.

Processing image...

Compressing your image...

Drop your image here, or click to browse Fast, private, and completely free Supports JPG, PNG, WebP, AVIF, GIF, and BMP. All processing happens in your browser. Max file size: 50MB.
Original --
Compressed --
Reduction --
Target --
Original
Dimensions --
Size --
Compressed
Dimensions --
Format --

Why Compress to 20KB: Government Forms & Exam Applications

A 20KB target is the strictest tier on the web, and it exists almost entirely because of government and exam portals. SSC, UPSC, state PSC boards, passport seva, and countless recruitment portals cap photo and signature uploads at 20KB or even less. Our binary-search engine pushes quality down carefully in small steps so your photo or scanned signature still looks sharp enough to pass manual verification, instead of the blotchy, over-compressed mess you get from a single fixed-quality slider.

Real-World Use Cases for 20KB

  • Scanned signature for SSC exams (CGL, CHSL, GD, Selection Post) — officially specified as 10–20KB, JPG, roughly 6cm × 2cm (236×79px).
  • Scanned signature for IBPS PO/Clerk and most public-sector bank recruitment forms — 10–20KB, JPEG, 140×60px, never in capital letters.
  • Lower boundary of the UPSC photograph upload window (20–200KB) — 20KB is the smallest file the portal will accept for your photo.

Official Portal & Exam Size Guidelines

Published specifications from recruitment and government portals whose accepted range includes 20KB. Always confirm against your specific exam's current notification before submitting.

Portal / ExamDocumentAccepted SizeFormatDimensions
SSC (CGL / CHSL / GD / Selection Post)Signature10–20 KBJPG/JPEG236×79px (6×2cm)
IBPS (PO / Clerk / RRB)Signature10–20 KBJPEG140×60px
UPSC Civil ServicesPhotograph (lower limit)20–200 KBJPG—
Most State PSC boardsSignature10–20 KBJPG/JPEG6×2cm

Compress to a Specific Size

Choose your exact target file size and compress images with precision. Our intelligent algorithm optimizes quality and dimensions automatically.

How It Works

Four simple steps to compress your images without compromising privacy. All processing happens locally in your browser.

1. Upload Your Image

Drag and drop any JPG, PNG, WebP, AVIF, GIF, or BMP file into the drop zone, or click to browse your files. Supports images up to 50MB with full EXIF orientation support.

2. Choose Target Size

Select your desired output size from 20KB to 500KB. Our intelligent binary search algorithm automatically adjusts quality and dimensions to reach your target precisely.

3. Compress

Click the Compress button. Our binary search quality optimization finds the best quality setting for your target size in milliseconds, right in your browser. No uploads required.

4. Download

Preview the before and after results, then download your compressed image instantly. Compare file sizes, dimensions, compression percentage, and output format at a glance.

Supported Image Formats

Our compressor works with all major image formats and intelligently selects the best output format for your needs.

JPG / JPEG

The most common photo format. Excellent compression for photographs with rich colors. Our tool optimizes quality settings to reach your target size while preserving visual fidelity.

PNG

Lossless format with full transparency support. Ideal for screenshots, graphics, logos, and images with text. We preserve transparency when compressing PNG files automatically.

WebP

Modern format from Google offering superior compression. WebP typically produces files 25-35% smaller than JPEG at equivalent quality. We auto-convert when your browser supports it.

AVIF

The next-generation format with the best compression ratios. AVIF can reduce file sizes by 50% compared to JPEG. Automatically used for very small target sizes when your browser supports it.

Your Privacy Matters

Unlike most online image compressors, we never upload your images to a server. All compression happens locally in your browser.

Every image you compress using Compress To KB is processed entirely within your web browser using JavaScript and the HTML5 Canvas API. This means your images are never sent over the internet, never stored on any remote server, and cannot be accessed by us or any third party. Compressed images exist only in your browser's memory and are discarded when you close the page.

This makes Compress To KB ideal for compressing sensitive photos, confidential documents, or any image you prefer to keep private. Your data stays on your device, exactly where it belongs. Once the page is loaded, you can even compress images without an internet connection.

Related Guides

Go deeper on formats, privacy and web performance in our blog.

Frequently Asked Questions About the 20KB Tool

Yes. SSC (CGL, CHSL, GD and Selection Post notifications) and IBPS (PO, Clerk, RRB) both publish 10–20KB as the accepted signature file size, in JPG/JPEG format. 20KB sits right at the upper edge of that window, so it is the safest choice if you want maximum clarity without breaching the limit.

Most SSC and IBPS application portals hard-block uploads above 20KB with a JavaScript file-size check, so the form simply won't accept it. Use our tool to bring it down to exactly 20KB or slightly under, rather than guessing with a generic compressor.

No. Photo and signature fields have separate dimension requirements (a signature is a wide, short rectangle; a photo is a portrait). Compress each scan separately using the correct crop, and use our 20KB tool for the signature box specifically.

At very small sizes, JPG compression can lighten faint pencil or grey-ink strokes. Re-scan your signature with a black or dark-blue ink pen on plain white paper before compressing — this preserves contrast far better than trying to fix a faint scan after the fact.

Our tool treats 1KB as 1,024 bytes (the binary definition computers actually use), so choosing 20KB targets a file of at most 20,480 bytes. A small number of strict portals count 1KB as exactly 1,000 bytes instead; in that rare case, aim slightly under 20KB to be safe.

At 20KB, expect quality that is soft and noticeably lower-detail. Our tool always reduces quality gradually first and only shrinks pixel dimensions if quality reduction alone can't reach 20KB, which keeps the result looking as sharp as possible for this target.

For a 20KB target, our tool almost always needs its pixel dimensions reduced as well as quality, since 20KB leaves very little room for a full-size photo. You generally don't need to resize manually first — the binary-search engine tries quality reduction before touching dimensions, since that usually preserves more visible detail than shrinking the image outright.

You can upload JPG, PNG, WebP, AVIF, GIF, or BMP and compress to 20KB. For output, choose Auto (the tool picks the best format for a 20KB target) or force JPG, PNG, WebP, or AVIF specifically using the Output Format dropdown.

No. Compressing to 20KB happens entirely inside your browser using the HTML5 Canvas API — nothing is ever sent to a server. That matters especially for a signature or small ID photo, which you may not want leaving your device at all.

Not currently — this 20KB tool processes one image at a time so it can fully dedicate its binary-search process to hitting your target precisely. Run it again immediately for additional images; there's no limit on repeat uses.

Not directly — this 20KB tool accepts JPG, PNG, WebP, AVIF, GIF, and BMP, but not Apple's HEIC format. Most iPhones convert HEIC to JPG automatically during a browser upload; if yours doesn't, switch to Settings → Camera → Formats → "Most Compatible" first.

Popular Compression Targets

Quick links to our most-used target-size compressors.

Compress to 50KB

The most common target for passport photos, signatures, and ID uploads across web forms.

Compress to 75KB

A comfortable size for resume photos and small profile pictures that still need to look sharp.

Compress to 100KB

Great for web forms, forum avatars, and directory listings with everyday upload limits.