Technical Adda

Private: nothing you enter is stored or sent

Image Compressor

Shrink JPG, PNG and WebP files in your browser to an exact KB limit or a quality you pick, and download many at once as a ZIP.

Image Compressor Files never leave your device

How the compressor makes files smaller

The tool redraws each image on a canvas in your browser and saves it again with a lossy encoder. Lossy means the encoder throws away fine detail your eye is unlikely to miss. You either tell it how much to keep with the Quality slider, or give it a size limit and let it work out the quality.

Four settings decide the result:

  • Target size in KB: optional, minimum 5. Type 50 and every file comes out at or under 50 KB, at the highest quality that fits. The quality slider hides while a target is set.
  • Quality: 10% to 95%, starting at 70%. Each step down saves bytes and costs some detail.
  • Output: “Best for each file” keeps a JPG as JPG and saves PNG and WebP files as WebP, or as JPG in Safari, which can’t save WebP. You can force JPG or WebP for every file instead.
  • Max width: optional. If a photo is wider than the number you type, it is scaled down with its height in proportion. Narrower photos are left at their size.

Why does a PNG become WebP? PNG is a lossless format, so a quality slider has nothing to work with. WebP can be lossy and still keep transparent areas, which JPG cannot. If you need JPG instead, pick JPG under Output and transparent areas are filled with white.

One side effect worth knowing: the saved file carries no camera data. Date, phone model and GPS location stored in the original photo are not copied across, which is good for privacy before you share a picture.

How to use the image compressor

  1. Drop your JPG, PNG or WebP files into the box above, or click browse. You can add as many as you like.
  2. Have a size limit? Type it in Target size in KB, such as 50. No limit? Leave it empty and move the Quality slider instead. Start at 70% and lower it only if the file is still too big.
  3. Choose the Output: Best for each file, JPG or WebP. Pick JPG for any government or exam form.
  4. Optional: type a Max width in px, such as 1600 for a website or 1280 for email.
  5. Each result shows its pixel size, the new file size and how much smaller it got. Change a setting and the files are compressed again on their own.
  6. Click Download, or Download all (ZIP) when you have two or more files.

How to compress an image to 50 KB or 20 KB

Type the limit in Target size in KB and set Output to JPG. The compressor first checks the file at 5% quality to make sure it can fit at all. It then tries quality levels between 5% and 100% seven times, halving the gap each time, and keeps the highest one that stays at or under your number. You get the sharpest file that fits, not one that just happens to be small.

We gave it a 307 KB, 1920 × 1920 photo and a 50 KB target. The result was 49.4 KB, 84% smaller, with no settings touched apart from the target.

Three things are good to know:

  • The pixel size shrinks only as a last resort. If even 5% quality is too big, the width and height drop by 20% at a time until the file fits, and the result says “Dimensions reduced to reach the target size.”
  • Every file gets the same cap. Drop 30 photos, type 100, and all 30 come out at or under 100 KB in one ZIP.
  • It caps, it doesn’t pad. The target is a maximum. A file already well under it can even grow a little, since it is saved again at high quality. Check the saving shown under each result.

The tool counts 1 KB as 1,024 bytes. Some portals count 1 KB as 1,000 bytes, so type 48 for a 50 KB cap or 19 for a 20 KB cap and the file passes either way.

When to resize first

A smaller image at good quality looks cleaner than a large one squeezed hard. When we asked for 20 KB on a full 3840 × 2525 photo, the only way to get there was to shrink it to 1258 × 827 and drop quality below 10%, which looks blocky. When we first cut the photo to the 200 × 230 pixels many forms ask for, a 50 KB target came out at 33.9 KB with quality above 99%.

So if the form gives exact pixels as well as KB, use the image resizer. It takes the same Target size in KB plus an exact width and height. If the form gives only a KB limit, set a Max width here, such as 1200, along with the target.

The opposite problem catches people too. That same 200 × 230 photo was only 8.1 KB at 70% quality and 14.4 KB at 90%, both below a 20 KB minimum. A portal that sets a 20 to 50 KB range can reject a file that is too small, so check the KB number under your result before you upload.

Typical sizes in bank recruitment notices

These are the specs in the Reserve Bank of India’s recruitment guidelines on the IBPS application portal (January 2026), as of October 2026. Many IBPS-run forms use the same numbers, but always follow the notice for your own exam.

Document Preferred pixels File size
Photograph 200 × 230 20 KB to 50 KB
Signature 140 × 60 10 KB to 20 KB
Left thumb impression Not stated 20 KB to 50 KB
Hand-written declaration Not stated 50 KB to 100 KB

The same guidelines ask for JPG or JPEG files only, so never upload a WebP. (IBPS portal, RBI recruitment guidelines (opens in new tab))

Steps for a 200 × 230 photo under 50 KB

  1. Open Crop Image and drag a box around your head and shoulders. The box shows its size in pixels. Aim for about 87 wide for every 100 tall, such as 870 × 1000. Save it as JPG.
  2. Open the image resizer, set Aspect ratio to Free, then type 200 for width and 230 for height.
  3. Type a target a little under the limit, such as 48 for a 50 KB cap or 19 for a 20 KB cap.
  4. Check that the result is above the minimum too, then download.

The hand-written declaration has no pixel size in the guidelines, so it can go straight into this compressor: Output JPG, target 98.

What one 4.4 MB photo turned into

We ran a 3840 × 2525 pixel JPG of the Taj Mahal (4.42 MB, from Wikimedia Commons, similar to a 10 MP phone photo) through the same encoding steps this tool uses, in Chrome 155 on a Mac, in October 2026.

Settings Output size in pixels File size Smaller by
Quality 95%, JPG 3840 × 2525 2.63 MB 41%
Quality 90%, JPG 3840 × 2525 1.77 MB 60%
Quality 70%, JPG (default) 3840 × 2525 860.7 KB 81%
Quality 50%, JPG 3840 × 2525 577.6 KB 87%
Quality 70%, WebP 3840 × 2525 439.6 KB 90%
Quality 70%, JPG, max width 1600 1600 × 1052 163.1 KB 96%
Quality 70%, WebP, max width 1600 1600 × 1052 105.6 KB 98%

Two lessons from this table. First, going from 95% to 70% saves far more than going from 70% to 50%, and for most photos the 70% file is hard to tell apart from the original on a phone screen. Second, cutting the width does more than any quality setting. Most people never view a photo wider than their screen, so a 3840 px image for a website or WhatsApp status is wasted bytes.

Your numbers will differ. A busy photo with leaves and crowds compresses less than a clear sky, and Chrome, Firefox and Safari use different encoders.

JPG, WebP or PNG: which output to choose

Pick JPG when the file goes to a government portal, a bank, an older app or someone who might open it on an old computer. Pick WebP when it goes on a website and you want the smallest file. Keep PNG only for logos and screenshots that must stay pixel-perfect, and use a different tool for that, because this one always saves lossy files.

Format Best for Transparency Opens everywhere?
JPG Photos, forms, email, printing shops No (filled with white here) Yes
WebP Websites, blogs, online stores Yes All current browsers; some older apps and portals reject it
PNG Logos, icons, text-heavy screenshots Yes Yes, but files are large

A screenshot test shows the gap. A 1920 × 1080 PNG screenshot of a Wikipedia page (442.5 KB) became 152.3 KB as WebP at 70%, which is 66% smaller. As JPG at 70% it was 226.3 KB. When we saved the same screenshot as PNG through the browser it grew to 567.4 KB, which is why this tool doesn’t offer PNG as an output.

On an iPhone, iPad or Safari on a Mac, leave Output on Best for each file or pick JPG. Safari can’t create WebP files from a web page, so Best for each file saves JPG there. If you force WebP in Safari, you get a PNG named .png, with a note under the result explaining why.

Limitations

  • No lossless mode: every file is saved lossy as JPG or WebP. For a PNG that must stay exact, keep the original.
  • Files can get bigger: an image that was already compressed hard may grow when saved at a higher quality. The result then shows a plus sign instead of a saving. Lower the quality, set a KB target or keep the original.
  • No exact pixel size: Max width only caps the width. For exact width and height plus a KB limit, use the image resizer.
  • Formats: JPG, PNG and WebP only. Convert iPhone photos with HEIC to JPG first. GIF animations are not supported.
  • Safari and WebP: Safari can’t save WebP, so forcing WebP there gives a PNG. The tool names the file .png and tells you.
  • Very large images: a phone or old laptop may run out of memory on huge panoramas. Set a max width or use a desktop browser.

Key facts

FAQ

Image Compressor FAQs

How do I compress an image to 50 KB or 20 KB?

Type 48 or 19 in Target size in KB and pick JPG under Output. The compressor finds the highest quality that fits under that number, and shrinks the pixel size only if even 5% quality is too big. In our test, a 307 KB photo came out at 49.4 KB with a 50 KB target. For exact pixels as well, use the image resizer.

Does compressing an image reduce its quality?

Yes, a little, because lossy compression removes fine detail. At 70% to 80% quality most people can’t see the difference on a phone or laptop screen. Below about 40% you start to see blocky patches around edges and in skies. Reducing the width with Max width usually saves more bytes than lowering the quality, with less visible loss.

Are my photos uploaded to a server?

No. The compression runs inside your browser using its built-in image encoder, so your photos never leave your phone or computer. That makes it a sensible choice for ID scans, signatures and family photos. Nothing is saved on our side, and closing the tab clears the files from the page.

Why did my PNG turn into a WebP file?

PNG is lossless, so it can’t be compressed with a quality setting. With Output set to Best for each file, the tool saves PNG and WebP files as WebP, which is lossy and keeps transparent areas. Safari can’t save WebP, so there you get JPG instead. If you need a JPG everywhere, choose JPG under Output. Transparent parts are then filled with white.

Why is my compressed image bigger than the original?

This happens when the original was already compressed hard, such as a photo saved by WhatsApp, and you save it again at a higher quality. The encoder then stores more data than the original had. The result shows a plus sign when this happens. Lower the quality slider, type a KB target below the original size, or just keep the original file.

What quality setting should I use?

Use 70% for most photos, which is the default. Go up to 80% to 90% for photos you will print or zoom into, and down to 50% for thumbnails or quick sharing. In our test of a 4.42 MB photo, 90% gave 1.77 MB, 70% gave 860.7 KB and 50% gave 577.6 KB. With a size limit, skip the slider and type a KB target.

Can I compress many images at once?

Yes. Drop as many JPG, PNG and WebP files as you like into the box. Every file uses the same KB target or quality, output and max width, and each shows its own new size and saving. Click Download all (ZIP) to save them together in one file. Very large batches may be slow on older phones because all the work happens on your device.

Which image format do exam and job forms accept?

Indian recruitment and exam portals commonly ask for JPG or JPEG. RBI’s 2026 recruitment guidelines on the IBPS portal, for example, accept only JPG or JPEG for the photo, signature, thumb impression and declaration. Don’t upload WebP or PNG unless the notice allows it. Set Output to JPG here before you type the KB target.