Resize image to KB

Tell it the file size you need, such as 20 KB or 100 KB. It finds the highest quality that fits under that size, and lowers the pixel size only when quality alone cannot get there.

Hits the KB you typeExact pixels optionalNever uploaded
The file will come out at or just under this size.
Pixel size
Keeps your pixel size and lowers quality. If quality would drop below 50%, it reduces the pixel size instead, which looks better.
Best for photos and for government and job portals.
-
choose an image to start
Before-
After-
Pixel size before-
Pixel size after-
Quality used-
Advertisement

How to use the resize image to KB tool

  1. Choose your image. A phone photo, a scan or a screenshot all work.
  2. Tap a target size (20, 50, 100, 200 or 500 KB) or type your own, such as 30 or 150.
  3. Leave Pixel size on Automatic, or choose Exact width and height if the form also fixes the pixels. Keep aspect ratio is on by default so the picture is not stretched.
  4. Pick the format. JPEG is right for photos and for almost every upload form. Use PNG only for screenshots and logos.
  5. Check the before and after sizes, look at the preview, and press Download.

How it is calculated

File size depends on two things: how many pixels the image has, and how hard JPEG or WebP compresses them (the quality setting). The tool keeps as many pixels as it can and finds the highest quality that fits.

maximum bytes = target KB × 1,000

Using 1,000 bytes per KB keeps the file under the limit even on a site that counts a KB as 1,024 bytes. The sizes shown on screen are bytes ÷ 1,024, as phones and Windows show them.

  1. Already small enough? If your file is already under the target, in the same format, and you have not asked for a new pixel size, it is given back unchanged. Re-saving would only lose quality.
  2. Quality search. It saves at 92% quality. If that is over the target, it halves the range between 50% and 92% eight times and keeps the highest quality that fits.
  3. Pixel reduction. If even 50% quality is over the target, the picture has too many pixels for that size. File size grows roughly with pixel count, so the tool scales both sides by a square root and searches again:
new scale = old scale × √(target bytes ÷ file bytes at 50%) × 0.95

The 0.95 adds a small safety margin so the second try usually fits. Below 50% quality, JPEG starts to show blocky patches. A smaller picture at good quality looks better than a full-size one at 20% quality.

With Exact width and height, the pixel size is fixed, so only quality moves (from 2% to 95%). If the target still cannot be reached, the tool tells you the smallest size it managed. PNG has no quality setting, so a PNG only gets smaller by losing pixels.

Advertisement

Worked example

A 3000 × 4000 px phone photo, a 100 KB target, Automatic pixel size, JPEG. Suppose the full-size photo comes out at 1,000,000 bytes even at 50% quality. That is over 100,000 bytes, so the tool scales it down:

scale = 1 × √(100,000 ÷ 1,000,000) × 0.95 = 0.3162 × 0.95 = 0.3004
width = 3000 × 0.3004 = 901 px, height = 4000 × 0.3004 = 1202 px

At 901 × 1202 px it searches quality again and keeps the highest one under 100,000 bytes. Your own photo's numbers will differ, because detail, noise and colour change how well a picture compresses. The tool always shows the final pixel size and the quality it used.

For exact pixels: choose Exact width and height with Keep aspect ratio ticked, and type 900 as the width of the same 3000 × 4000 photo. The height fills in as 900 × 4000 ÷ 3000 = 1200 px.

File size limits on Indian forms

Most Indian application portals set a maximum size, and many also set a minimum. Every exam notice we checked in November 2026 asks for JPG or JPEG only: SSC, UPSC, IBPS and India Post GDS. So keep the format on JPEG for these. WebP is smaller, but a portal that expects JPG may reject it.

FormPhotoSignature
IBPS PO, Clerk20 to 50 KB, 200 × 230 px10 to 20 KB, 140 × 60 px
UPSC20 to 200 KB20 to 100 KB
India Post GDS30 to 100 KB20 to 100 KB
SSC CGL, CHSLTaken live in the form10 to 20 KB

This tool aims under a maximum. When a form also sets a minimum and exact pixels, use the exam photo and signature resizer instead. It has these presets built in and makes sure the file is not too small either.

This tool or the image compressor?

Both run in your browser and neither uploads anything. The image compressor gives you a quality slider and a maximum width, and you watch the size change. It suits website images, where you judge by eye. This tool works backwards from a number. You say "under 50 KB" and it finds the quality and pixel size for you. It suits forms, email limits and anything with a hard cap.

Tips for a better result

  • Start from the original photo, not one already sent through WhatsApp. Each re-save loses detail.
  • Crop away empty background before resizing. Fewer pixels of wall means more of the budget goes to the face or text.
  • For a scanned page that must fit a size, the image to PDF converter can also aim for a target size across several pages.

Common questions

How do I reduce a photo to 20 KB?

Choose the photo and tap the 20 KB button. The tool saves it as a JPG at the highest quality that stays under 20,000 bytes. A full-size phone photo cannot look good at 20 KB, so it also reduces the pixel size, often to a few hundred pixels wide. The result box shows the exact pixel size it chose.

Why is the result a little under my target, not exactly on it?

JPEG quality moves in steps, so the file size jumps rather than slides. The tool picks the highest quality whose file is at or under the target. That usually lands within a few percent of it, which is what upload forms with a maximum size need.

How is this different from the image compressor?

The image compressor lets you drag a quality slider and watch the size change. This tool works the other way round: you give the size and it finds the quality and pixel size for you. Use this one when a form says the file must be under a certain number of KB.

Can I make a PNG smaller to a set KB?

Only by reducing the pixel size, because PNG is lossless and has no quality setting. For photos, choose JPEG instead. For screenshots and logos, PNG at a smaller pixel size stays sharper than JPEG.

Does it count 1 KB as 1,000 or 1,024 bytes?

It uses 1,000 bytes per KB for the target, so a 50 KB target means at most 50,000 bytes. That keeps the file under the limit whichever way a website counts. The sizes shown on screen are divided by 1,024, the way Windows and most phones display them.

Is my photo sent to a server?

No. Everything runs in your browser using the canvas built into it. The photo never leaves your phone or computer.

Sources

Made in Surat by WiserFool, the studio of Khanjan Kavani, architect and contractor. Formulas are tested against published references before a tool goes live. Last reviewed 24 November 2026. How we build and check tools.
Advertisement