Compress Image

Shrink a JPG or PNG to an exact KB target — 20 KB, 50 KB, 100 KB — for any government upload form.

Free, no sign-up, no watermark — and this tool runs entirely in your browser, so your file never leaves your device.
Choose a photo
or drag it here, or paste with Ctrl+V — JPG, PNG, WEBP
Target size
Useful when a form also caps the dimensions.

Compress an Image to an Exact File Size — Free, No Watermark

Most portals set a hard KB ceiling for a photo upload, not just a soft "keep it small" suggestion — miss it by even a few KB and the upload is refused outright. A phone photo comes out anywhere from 1 MB to 8 MB by default, nowhere close to the 20 KB, 50 KB or 100 KB windows most Indian government portals, exam forms and application systems actually ask for. Doing this by hand with an editor's "Save As" quality slider means guessing a percentage, checking the resulting file size, and trying again — often three or four times before it lands inside the limit.

This tool skips the guessing: pick, or type, the exact KB you need, and it searches through JPEG quality levels on its own until it finds the highest one that still lands under your target — so the photo stays as clear as it can be at that size rather than being crushed further than necessary. It works the same for a 20 KB passport photo, a 100 KB scanned document, or a 500 KB attachment limit — one tool, any target, and it runs entirely in your browser.

Common Upload Limits This Tool Is Built For

Where it's needed Typical limit Note
Passport / ID-style photo uploads 20-100 KB Exact figure varies by portal — check the form itself
Scanned signature 10-50 KB Often checks both a minimum and a maximum
Exam admit-card / application photo 20-50 KB The range SSC, railway and banking exam portals commonly use
Aadhaar / PAN-linked document uploads 100-200 KB Some accept larger PDFs for full multi-page documents
Email attachment / quick WhatsApp send 200-500 KB Sends faster and opens instantly on a slow connection
Website or online listing photo 100-300 KB Keeps a page loading quickly on mobile data

This table is for orientation only — the form or portal in front of you always has the final word on the exact number.

How It Finds the Exact Size — Instead of Guessing

Rather than applying one fixed quality percentage and hoping it lands close enough, this tool tries a quality level, checks the actual byte size of the result, and narrows in — a little higher if there is still room under your target, a little lower if it overshot — repeating that a handful of times until it settles on the highest quality that still fits under your chosen number. That is the same idea a careful person would use with a manual "Save As" slider, just done automatically and far faster, and it never crosses a quality floor low enough to make the photo look genuinely broken.

If quality alone cannot reach a very tight target — a high-resolution photo squeezed down to 20 KB, for instance — set a maximum width too. Shrinking the pixel dimensions first gives the quality search far more room to work with, and is usually gentler on the final look than forcing quality down to its floor on the full-size image.

Tips for the Cleanest Result at a Small Size

  • Start from the best original you have — a sharp, well-lit source photo still looks clean after heavy compression; a blurry or noisy one falls apart much faster.
  • Avoid compressing an already-compressed JPEG a second or third time — each pass adds a little more loss on top of the last. Go back to the original photo if you have it, rather than re-compressing a copy someone already shrank.
  • Use JPG for photographs — it is built for smooth photographic detail and will always compress a photo smaller than PNG at the same visual quality.
  • Use PNG only for flat-colour graphics — a screenshot, a logo or a scanned text page with sharp edges can look better as PNG, though the file will usually be larger.
  • Set a maximum width when the form caps both the file size and the pixel dimensions — this tool applies both together in one pass.

JPG vs PNG vs WEBP — Which Should You Pick

JPG is the right default for almost every photograph going to a government form, an exam portal or a bank KYC upload — it is universally accepted and compresses photographic detail efficiently. PNG is lossless and keeps sharp edges and transparency perfectly, which makes it the better choice for a logo, a screenshot with text, or a graphic with flat colour blocks — but it produces a noticeably larger file at the same target quality, so it is a poor fit when a strict KB ceiling is the whole point. WEBP compresses smaller than either at a similar visual quality and is supported by every modern browser, but a portal built years ago may not recognise it — check that the form explicitly accepts WEBP before relying on it, and fall back to JPG if you are not sure.

Your Photo Never Leaves Your Device

The whole compression process — trying quality levels, measuring the result, resizing if a maximum width is set — runs as JavaScript inside your own browser tab, using the HTML5 Canvas every modern browser already has built in. Nothing is uploaded to reach that result, there is no account to create, and the file only leaves your device once: the moment you press Download, straight into your own downloads folder. Close the tab and nothing of your photo remains anywhere but your own device.

Compress-to-Target vs. a Generic "Save As" Slider

A photo editor's export dialog gives you a quality percentage, not a file size — you pick a number, save, check the result, and adjust again if it missed. That trial-and-error loop is exactly what this tool replaces: tell it the KB you actually need, and it runs that same search automatically, landing on the highest quality that fits in a few seconds instead of a few manual attempts. It is also free of the software itself — no Photoshop licence, no app install, just a page that works the same on a phone as it does on a desktop.

How to use it

  1. Choose the photo — or drag it onto the box, or paste it with Ctrl+V.
  2. Pick the size the form is asking for: 20 KB, 50 KB, 100 KB, or type your own.
  3. Press Compress. The tool searches for the highest quality that still fits under your limit.
  4. Check the preview, then download. The original on your device is never touched.

Questions about this tool

Why does my photo need to be under 50 KB?

Most government portals cap the upload size so their servers are not flooded. The limit is usually printed next to the upload button — 20 KB and 50 KB are the common ones for photographs, 100 KB to 200 KB for signatures and documents.

Will the photo look bad?

It searches quality settings first and only shrinks the pixel dimensions if quality alone cannot get under your limit. For a passport photograph at 50 KB the difference is rarely visible on paper.

Is my photo uploaded anywhere?

No. The compression runs inside your browser using your own device. Nothing is sent to us, so there is no copy of your photograph on any server.

Which formats can I use?

JPG, PNG, WEBP and most other formats your browser can open. The output is JPG by default because it compresses photographs far better than PNG.

How does it find the exact size instead of just guessing?

It tries a JPEG quality level, checks the resulting file size, and narrows in — higher quality if there is still room under your target, lower if it overshot — repeating a handful of times until it lands on the highest quality that still fits. That is faster and more accurate than moving a "Save As" slider by hand and checking the file size after each try.

What does "Maximum width" do, and when should I use it?

It caps the pixel width before compression starts. Leave it blank for most uses — quality alone usually reaches a 20-200 KB target without needing to shrink the picture. Set it only when a form specifies both a maximum file size and a maximum pixel width or height, since quality alone cannot satisfy a pixel-dimension limit.

My compressed photo is still bigger than my target — why?

The tool has a quality floor (25%) below which a photo starts looking genuinely broken rather than just soft, and it will not cross that floor even to hit your number. If it stops short of your target, that usually means the target itself is very tight for that photo's content and resolution — try setting a maximum width too, which gives it more room to work with.

Can I compress a screenshot or a scanned document the same way?

Yes — screenshots and scans compress the same way photographs do. A screenshot with a lot of flat colour and text often compresses further than a photograph at the same visual quality, since JPEG compresses smooth areas more efficiently than fine photographic detail.

More image tools

Join WhatsApp Channel