How to Compress an Image to 50KB

A one-click tool gets you under 50KB. But 50KB means two different numbers depending on who counts, and a form that counts the smaller one can still reject the file.

Flat vector illustration in midnight navy of a desk at night: hands holding a phone that shows a small portrait photo, an open laptop displaying a form with a photo box and an orange upload button, a glowing orange desk lamp, a coffee mug, a printed sheet and a pen, with a navy city skyline in the window, a bookshelf on the left and a wall calendar on the right.

To compress an image to 50KB, open Compress Image to 50KB, drop in your JPG, PNG, or WebP, and download the result. There is nothing to set: the target is built into the page, and the file you get back is at most 51,170 bytes. If your image is already under that, it comes back untouched.

That exact number matters more than it looks, because "50KB" is not one size. A form that counts a kilobyte as 1,024 bytes will accept 51,170 bytes. A form that counts it as 1,000 bytes won't, and the fix for that case takes one extra step.

Which 50KB does your form mean?

A kilobyte is counted two ways. Computers traditionally use 1,024 bytes, which makes 50KB equal to 51,200 bytes. The metric definition is 1,000 bytes, which makes it 50,000. The 50KB tool aims for 0.0488MB in the 1,024-byte sense, which works out to 51,170 bytes: just under 51,200, and 1,170 bytes over 50,000.

Where the 50KB tool's output lands against the two meanings of 50KB A number line of file sizes in bytes. A marker at 50,000 bytes shows the metric meaning of 50KB, and a marker at 51,200 bytes shows the 1,024-byte meaning. The 50KB tool's ceiling of 51,170 bytes sits just under 51,200 but above 50,000, in a band where a strict metric form would reject it. Typing 0.047 into Compress Image sets a ceiling of 49,283 bytes, which is under both. 50,000 metric 50KB 51,200 1,024-byte 50KB 50KB tool: up to 51,170 49,283 0.047 target bytes
The shaded band is the gap between the two meanings. A file inside it passes a 1,024-byte check and fails a 1,000-byte one.

Your own computer won't settle the question either. Windows File Explorer counts in 1,024s, so a 51,170-byte file shows as about 50 KB. macOS Finder counts in 1,000s, as Apple's support article on how macOS reports storage capacity explains, so the same file shows as 51 KB.

If a form rejects the file with a size error, or its instructions say "50,000 bytes", compress with a little room to spare:

  1. Open Compress Image and drop your file in.
  2. Type 0.047 into the "Target max size in MB" field. The arrows only step to 0.1, but a typed value is used as-is. That sets a ceiling of 49,283 bytes.
  3. Download and upload. In our test, a 2000×1500 photo came back at 48,607 bytes, under both meanings of 50KB.

Photos: send a JPG, not a PNG

The tool keeps your format. A JPG comes back as a JPG and a PNG as a PNG, and for photos that choice changes the result a lot. JPG reaches 50KB by lowering quality, then shrinks the pixel dimensions only if it has to. PNG is lossless, so the tool first cuts its colour depth and then shrinks dimensions until the file fits.

We ran the same kind of noisy, detailed test image through both. The 2000×1500 JPG came back at 800×600. The 1600×1200 PNG came back at 225×169, barely thumbnail size. If your photo is a PNG, run it through PNG to JPG first, then compress the JPG.

Signatures: PNG is fine

A scanned signature is the opposite case. It is mostly flat white with a few dark strokes, which PNG stores very efficiently, and cutting its colour depth barely changes how it looks. In our test, an 1800×700 PNG signature came back as a 1132×440 PNG at 45,127 bytes, still crisp. Keep a signature as PNG unless the form asks for JPG.

Resize to the form's dimensions first

Many forms that set a 50KB cap also state pixel dimensions for the photo or signature. If yours does, use Resize Image to set those dimensions before compressing. The compressor then spends its budget on quality at the right size instead of shrinking a large photo to whatever fits. Our guide to compressing to an exact size explains the quality-then-dimensions search in detail, and if your limit is tighter or looser, see the 20KB or 100KB guides.

Nothing is uploaded

Compression runs in your browser through the Canvas API. The photo or signature is re-encoded on your device and only leaves it when you upload it to the form yourself.

FAQ

My file shows as 51 KB on a Mac. Is it over the limit?
Only if the form counts a kilobyte as 1,000 bytes. Finder uses 1,000; a form that counts in 1,024s sees the file as under 50KB. If the form rejects it, recompress with 0.047 in Compress Image.

Why did my photo get so much smaller in pixels?
50KB can't hold a large photo at full resolution, so once lowering quality to the tool's floor still isn't enough, it scales the image down until it fits. Resizing to the form's dimensions first gives you control over that. If the photo was a PNG, convert it to JPG first; it keeps far more resolution.

What if the form also has a minimum size?
The tool only enforces the maximum. It won't pad a file up to a minimum, and a file already under 50KB is returned unchanged, so check the form's full requirements before you upload.

Can I compress several files at once?
Yes. Drop them in together; each is compressed separately to the same target and the results download as one zip.

← Back to all guides