🖼️ Image Tools · No Upload

Compress Image Online to Exact KB — 20KB, 50KB, 100KB, 200KB & 500KB

Compress image online to 50kb, compress image to 100kb, or hit any exact KB target. Perfect for SSC, UPSC, IBPS, PAN, and other government form uploads that reject files over a strict size limit.

🔒 Private — no upload ✓ Exact KB target ✓ Batch friendly ✓ Resize option ✓ Free forever

Compress to target size

Add one or more images, choose a target size, then compress. Quick presets range from compress image 20kb up to compress image 200kb and beyond, and multiple files are compressed to the same target, so you can compress image to 50kb for a whole batch at once.

Drag & drop images here

or click here to browse JPG, PNG, WebP, or HEIC files from your device (paste with Ctrl+V too). Multiple files supported.

Set a minimum only if your form asks for a range, like 20–50 KB. Some portals reject a file for being too small as well as too large.

⚙️ Advanced settings — resize before compress

Resizing first (e.g. to standard passport-photo dimensions) often reaches a target KB at noticeably higher visual quality than compression alone.

100% local

Runs fully inside your browser using the Canvas API. Nothing is uploaded, ever.

Won't exceed target

Binary search finds the highest quality that still fits under your chosen KB limit.

Bulk + ZIP

Compress several images to the same target, then download them all as one ZIP.

Free, no signup

No account, no watermark, no daily limits — unlimited compressions.

Mobile ready

Works from your phone's gallery — compress before uploading to any form.

Nothing stored

Close the tab and every image is cleared from memory — no server copies exist.

Compress Image to Any Target Size — 10KB to 2MB

This isn't a fixed list — pick any KB or MB number and compress image online to match it exactly. Whether you need to compress image to 20kb online for an SSC or Railway RRB form, compress image to 50kb for an IBPS application, compress image to 100kb online for a UPSC upload, compress image to 200kb for a scanned certificate, or compress image to 500kb for a larger document — just type the number and click Compress. Other sizes people commonly search for include compress image 20kb, compress image 200kb, and compress image 40kb, plus in-between targets like compress image to 30kb, compress image to 15kb, compress image to 10kb, compress image to 40kb, compress image to 80kb, compress image to 150kb, and compress image to 300kb — right up to larger scans with compress image to 1mb or compress image to 2mb.

Common government form sizes

  • 10–20 KB — signature uploads, SSC & Railway RRB photo fields
  • 30–50 KB — IBPS, bank exam, and most passport-style photo uploads
  • 80–150 KB — UPSC, university admission, and scanned mark sheets
  • 200–500 KB — Aadhaar, PAN, and visa document scans
  • 1–2 MB — high-resolution certificate or ID scans

Why an exact KB target matters

Most portals reject a file even 1 KB over their stated limit. Instead of guessing a "quality %" like generic compressors, this tool runs a binary search until the output lands at or just under your exact target — so a file you compress image to 100kb for stays at 100 KB or less, never over.

How the compression works

Your image is drawn onto an in-memory canvas. The tool then runs a binary search on JPEG quality (10%–100%) using canvas.toBlob to find the highest quality that stays at or under your target KB. If even the lowest quality is still too large, the image is progressively scaled down by 10% steps and retried until the target is met.

PNG & transparency

PNG images are converted to JPEG with a white background fill, since transparent PNGs generally can't be compressed small enough for strict government form limits.

Lossy vs Lossless Compression — Which One Do You Need?

Lossless compression (like PNG) shrinks a file without discarding any pixel data — great for logos and screenshots with sharp edges and text, but it rarely gets a photo anywhere near 20–100 KB. Lossy compression (like JPEG) discards visual detail a human eye barely notices, and can shrink a photo by 90%+ while staying visually clean. Because government forms and exam portals almost always specify a strict KB ceiling, this tool always outputs lossy JPEG — it's the only realistic way to compress image to 20kb online for a real photograph without it looking blocky or unusable.

Compress Images for WhatsApp & Social Media

WhatsApp already re-compresses photos on send, but pre-compressing large camera photos (often 3–8 MB) down to 300 KB–1 MB first keeps your original framing and color more intact than letting WhatsApp's own aggressive algorithm decide. For Instagram, Facebook, and LinkedIn, targeting 200 KB–1 MB keeps upload times fast on mobile data without visible quality loss on a phone screen.

Compress Images for Email & Websites

Most email providers cap attachments around 25 MB total, but large images still slow down mobile inboxes — compress image to 200kb–500kb per photo for smooth email attachments. For website images, compress image to 100kb online for hero banners and 20–50 KB for thumbnails; this directly improves page load speed and Core Web Vitals (LCP) scores.

Expert Tips for Best Results

  • Start from the highest-resolution original you have — compressing an already-compressed JPEG twice compounds quality loss.
  • For passport/signature photos, resize to the exact pixel dimensions your form asks for before compressing — it reaches your KB target at noticeably better quality than compression alone.
  • If a form gives a size range (e.g. "20–50 KB"), target the middle of the range, not the minimum — extra headroom protects against re-compression by the portal itself.
  • Keep a copy of the original — once quality is discarded via lossy compression, it can't be recovered.

Common Mistakes to Avoid

  • Using a screenshot of a photo instead of the original file — screenshots are already re-compressed and re-scaled, so results are worse.
  • Ignoring the form's minimum size — some portals reject a file that's too small as well as too large.
  • Ignoring the width/height requirement — a form asking for "200×230 px, under 50 KB" needs both conditions met, not just the KB target.
  • Re-uploading a PDF screenshot as a "photo" — convert with PDF to Images first if your source is a PDF page.

Frequently asked questions

Does this work for SSC, UPSC, and other government exam form uploads?

Yes. Government portals like SSC, UPSC, IBPS, and Railway RRB commonly require photos or documents under a specific KB limit (such as 20KB, 50KB, or 100KB). This tool lets you pick that exact target and compresses your image to fit without exceeding it.

Is it safe to use this tool?

Yes. All compression happens locally in your browser using the Canvas API — your image is never uploaded to any server, so it stays completely private.

Does compressing reduce image quality?

Some quality reduction is unavoidable when shrinking a file to a very small size, since compression works by lowering JPEG quality and, if needed, image dimensions. The tool automatically finds the highest quality possible that still fits under your target size.

What happens if my image is already smaller than the target?

The tool detects this automatically and lets you download the original file directly, without any unnecessary re-compression.

How do I compress image to 20kb online?

Upload your photo, click the 20 KB preset (or type 20 into the target size field), then click Compress images. The tool finds the highest quality JPEG that stays at or under 20 KB, entirely online in your browser.

Can I compress image to 500kb or larger sizes like 1MB and 2MB?

Yes. Presets go up to 500 KB, 1 MB, and 2 MB, and you can also type any custom KB number into the target size field — there's no fixed upper limit for compress image to 500kb, compress image to 1mb, or compress image to 2mb targets.

What is the best size to compress image to 100kb or 200kb for exams?

Most exam portals like UPSC and SSC specify an exact KB range in their photo/signature upload instructions. Compress image to 100kb or compress image to 200kb only if that's what your specific form requests — otherwise use the smaller size it asks for, since smaller isn't always accepted if the form has a minimum too.

Should I compress image to 100kb or 200kb for exam forms?

Most exam portals like UPSC and SSC specify an exact KB range in their photo/signature upload instructions. Compress image to 100kb or compress image to 200kb only if that's what your specific form requests — check the exact limit first, since some portals also enforce a minimum size.