Skip to content
KBSize

Compress an image to an exact size

Type the size the form is asking for and get a file just under it. Works on JPG, PNG, WebP and HEIC, and the picture never leaves your computer.

Choose an image and it will be compressed here, in this browser. Nothing is uploaded.

Your image is never uploaded. Compression runs in this browser using the canvas API, and there is no server to send it to. This tool is provided free and without warranty — open the result before you submit it anywhere.

Why "under 50 KB" is so hard to hit

Image editors offer a quality slider, not a size box, and the relationship between the two is different for every picture. A flat blue sky at 90% quality can be smaller than a detailed street scene at 40%, so guessing at the slider means exporting, checking, and going back — often a dozen times.

This tool does that loop for you. It encodes the image, measures the result, adjusts, and repeats until it lands just under your target — usually within a handful of attempts, all in your browser.

When quality alone cannot get there

If a photo is enormous — a 12-megapixel phone picture squeezed into 20 KB — no quality setting will reach the target, because there are simply too many pixels to describe. The tool will say so, and offer to reduce the dimensions as well, which is the only thing that actually works.

Reducing dimensions is usually the better trade anyway. A 600-pixel-wide image at decent quality looks far better than a 4000-pixel-wide one crushed until it fits.

Your image is never uploaded

Everything happens in the page using the browser’s own canvas. There is no upload, no server-side processing and no storage — there is no endpoint for your photo to be sent to. That matters when the picture is a passport page or a signature, which on a site like this it very often is.

Every common size limit

Each of these opens the same tool with the target already filled in, so if a form told you a number you can go straight to it. The last column is the rough frame a detailed photograph fits into at that size — a flatter image will do considerably better.

TargetUsually asked for byPhoto fits about
10 KB Thumbnails and signature boxes on older exam portals 200 × 150
15 KB Signature uploads on government and university forms 250 × 190
20 KB Signatures, and ID photos on strict exam registrations 290 × 220
25 KB Passport-style photos on public-sector application forms 320 × 240
30 KB Passport photos and small document scans 350 × 260
50 KB The most common limit of all: ID photos and single-page scans 450 × 340
100 KB Job portal photos, CV attachments, multi-page scans 640 × 480
150 KB Profile pictures and moderately detailed scans 790 × 590
200 KB Marketplace listing photos and general web images 910 × 680
300 KB Product photography and full-width page images 1,110 × 830
500 KB High-quality web images and email attachments 1,440 × 1,080
1000 KB The one-megabyte ceiling most upload forms settle on 2,030 × 1,520

Common questions

How do I compress an image to exactly 50 KB?

Choose the file, type 50 in the target box, and the tool searches for the highest quality that stays under 50 KB. If the image is too large in pixel terms to fit, it will offer to reduce the dimensions too.

Is my photo uploaded to a server?

No. The compression runs in your browser using the canvas API. The image never leaves your device and nothing is stored.

Will compressing to a small size ruin the picture?

It depends on how far you are asking it to go. Reducing the dimensions as well as the quality almost always looks better than quality alone, which is why the tool offers it when a target is hard to reach.

Can I compress a PNG?

Yes, but the result is a JPG. PNG is lossless, so it has no quality dial to trade against file size — hitting an exact target requires a lossy format.

What is the smallest size an image can be compressed to?

There is no hard floor, but below roughly 10 KB a photograph has to become very small in pixel terms — around 200 by 150 — before it fits. Line art and signatures go far lower because they contain much less detail to store.

Other size targets