How to use Image compressor
- 1. Add your photos. Drag and drop JPG, JPEG, PNG, or WebP images, or tap to pick them from your phone or PC. Add one photo or a whole batch at once. The files stay on your device — nothing is uploaded.
- 2. Choose the size you need. Tap 20 KB, 50 KB, 100 KB, 200 KB, or 500 KB, or type any custom size like 30 KB, 40 KB, 1 MB, or 2 MB. Prefer no limit? Switch to Quality mode and drag the slider instead. For forms, pick a Document preset such as passport photo or signature to set the exact width, height, and KB limit in one tap.
- 3. Let the compressor hit the size. The image compressor tries the highest quality that fits under your limit first, and only reduces width and height when the format really cannot go smaller. The result is the sharpest photo that actually fits the size you asked for.
- 4. Download. Download a single compressed image directly, or a batch as a ZIP. Drag the before/after slider on any photo to check that it still looks good. No sign up, no watermark, no daily limit.
About this tool
This is a free online image compressor that reduces a photo to an exact size in KB or MB — compress image to 20 KB, 50 KB, 100 KB, 200 KB, 500 KB, 1 MB, or any number you type — without losing visible quality. It is built for the everyday problem: a website says 'photo must be less than 100 KB' or 'signature less than 20 KB' and your phone camera gives you a 4 MB file. Drop the picture, pick the limit, download. It works with JPG, JPEG, PNG, and WebP, on Android, iPhone, Windows, and Mac, with no app to download and no account. And because everything runs in your browser, your passport photo, marksheet, Aadhaar, PAN card, or ID scan is never uploaded to any server.
Compress image to 20 KB, 50 KB, 100 KB, 200 KB, 500 KB, or 1 MB
Most image compressor websites only give you a quality slider, so you keep guessing until the file is small enough. This one works the other way round: you tell it the size and it finds the quality. Type or tap the limit — 20 KB for a signature, 50 KB for an exam photo, 100 KB for most government portals, 200 KB or 500 KB for a job application or CMS upload, 1 MB or 2 MB for email attachments and websites — and the compressor searches for the best quality that fits under that number. If quality alone cannot get a huge photo down to 20 KB, it gently reduces the width and height and tries again, so the picture stays as sharp as the size allows. For quick access, the pages Compress image to 100 KB, Compress image to 50 KB, and Compress image to 20 KB open this tool with the limit already set.
Compress image online without losing quality
'Without losing quality' really means without losing quality you can see. JPEG and WebP compression throws away detail the eye cannot notice at normal viewing size — that is why an 80% quality JPEG looks identical to the original but is often 5 to 10 times smaller. This compressor always starts at the highest quality that fits your target, never at a fixed low number, and it never makes a file bigger than the original. Use the drag-to-compare slider on every result to see the before and after with your own eyes. If you need lossless output, choose PNG and the compressor reduces size by dimensions only.
Compress JPG, JPEG, PNG, and WebP
Compress JPG / JPEG: photos from any phone or camera — quality is tuned automatically to reach your KB limit. Compress PNG: PNG is lossless and has no quality dial, so screenshots and graphics barely shrink as PNG; leave the format on Auto and opaque PNGs are re-encoded as JPEG at a fraction of the size, while transparent PNGs become WebP with transparency kept. Compress WebP: usually 25–35% smaller than JPEG at the same look, and supported by every modern browser and phone. You can force any output format when a portal only accepts .jpg. HEIC photos from iPhone: convert them to JPG first with the image converter, then compress.
Photo compressor for passport photos, signatures, and government forms
The most common reason people search 'image compressor to 50kb' or 'compress image to 20kb' is an online form: SSC, UPSC, NEET, JEE, railway, bank, and university applications, passport and visa portals, PAN and Aadhaar updates, job sites, and school admissions. These portals check both the file size in KB and the exact width and height in pixels. The Document preset menu handles both in one tap: passport photo 413 × 531 px under 50 KB, exam form photo 200 × 230 px under 50 KB, exam signature 140 × 60 px under 20 KB, and PAN card photo 213 × 213 px under 30 KB. Your photo is centre-cropped to the exact pixels and compressed just under the limit, saved as JPG — the format almost every portal demands.
Image compressor with width and height (pixels, cm, and inches)
Portals sometimes state dimensions in cm or inches rather than pixels, for example a 3.5 × 4.5 cm passport photo. Convert with the usual print rule of 300 pixels per inch (about 118 pixels per cm): 3.5 × 4.5 cm becomes 413 × 531 px, which is exactly the passport preset here. 2 × 2 inches is 600 × 600 px. Set a custom longest edge under More options, or pick a preset, and the compressor resizes and shrinks the file in one step. For free-form resizing to any width and height, use the image resize tool, then bring the result back here to hit the KB limit.
Compress images for email, WhatsApp, and websites
Email providers cap attachments at around 20–25 MB in total, so ten phone photos will not fit unless you compress them. Set 500 KB or 1 MB, drop all the photos at once, and download the ZIP — the whole set will be a few MB. For websites and blogs, 100–200 KB per image at WebP keeps pages fast and helps your own Google rankings, since page speed is a ranking signal. For WhatsApp or social media, 200–500 KB looks perfect on any phone screen.
Batch image compressor — many photos at once, one ZIP
Drop 10, 50, or 100 images and every one of them is compressed to the same target, with a live total of MB saved. Each row also has its own size dropdown, so a 50 KB photo and a 20 KB signature can come out of one session. Download all packs everything into a ZIP. There is no per-file fee, no daily limit, and no queue, because the work happens on your own device rather than a shared server.
No download, no app, no sign up — works on phone and PC
Searches for 'image compressor free download' or 'image compressor for PC' usually end in a bloated installer with ads. You do not need one. This page is the software: it runs in Chrome, Edge, Safari, and Firefox on Windows, Mac, Linux, Android, and iPhone. Once the page has loaded it even works offline, since compression happens locally. No account, no email, no watermark on the output, and nothing to install.
Why this beats server-based compressors like iLovePDF, TinyPNG, or Compressor.io
Popular tools such as iLovePDF's image compressor, TinyPNG, or Compress JPEG send your photo to their server, compress it there, and send it back — with file limits, daily quotas, and your ID photo sitting on someone else's machine. Most also cannot target an exact KB size; they pick a quality level and you hope. This compressor works to your number, keeps every byte in your browser, and has no quota. You can confirm that yourself: open the browser's Network tab while compressing and you will see no upload.
How the exact-size compression works
JPEG and WebP have a quality dial from 0 to 100, and file size responds to it unevenly. The compressor does a binary search on that dial — about eight quick tries — to find the highest quality that lands under your target at full resolution. If even the lowest quality is still too big, which happens when a 4000 px photo must fit in 20 KB, it scales the dimensions down step by step and searches again. PNG has no quality dial, so PNG output is shrunk by dimensions only. Photo metadata such as GPS location is removed by default, which makes the file smaller and protects your privacy; you can keep it with the 'Keep photo metadata' option.
Tips for the smallest file with the best look
Crop before compressing: removing empty background is free size. Use WebP when the destination allows it. Set the target just under the portal's limit, not far under, so you keep the most quality that passes. For documents and signatures, a plain white background compresses far better than a textured one. And if the result says 'smallest possible', the target is not reachable at that resolution — lower the longest edge or raise the limit slightly.
Privacy: your photos never leave your browser
This tool mostly sees passport photos, ID cards, marksheets, signatures, and medical or bank documents — exactly the images that should not sit on a random server. Decoding, quality search, resizing, re-encoding, and ZIP packaging all run as JavaScript in your browser tab. There is no upload, no storage, no account, and no tracking of what you compress. Close the tab and it is gone.
Code examples
Typical result
photo.jpg · 3.8 MB → 97 KB (−97%) · 1512×2016 · quality 82%Common form limits (pixels and KB)
Passport photo 413×531 px ≤ 50 KB (3.5×4.5 cm at 300 DPI)
Exam form photo 200×230 px ≤ 50 KB
Exam signature 140×60 px ≤ 20 KB
PAN card photo 213×213 px ≤ 30 KB
US visa photo 600×600 px ≤ 240 KB (2×2 in at 300 DPI)cm to pixels at 300 DPI
pixels = cm × 118.11
3.5 cm → 413 px · 4.5 cm → 531 px · 2 in (5.08 cm) → 600 px