HomeGuides › Exact file size

How to compress a photo to under 50 KB

Updated 2026 · 7 min read

You have filled in the whole form. You upload your photograph. The page refuses it: "File size must be less than 50 KB." Your phone photo is 4.2 MB.

This is the single most common reason people look for an image compressor, and almost every tool gets it wrong. They offer you a slider that says "reduce by 70%" — but 70% of 4.2 MB is still 1.2 MB. You need to hit a number, not a percentage.

Why percentage-based compression does not solve this

Saying "compress by 70%" is like saying "drive 70% of the way to town". It tells you nothing about whether you arrived. Popular online compressors are built around this idea because it is easy to implement and it sounds impressive in marketing. It is useless when a form has a hard ceiling.

What you actually need is a target size: you enter 50 KB, and the tool works out the highest image quality that still fits inside it. The technical way to do that is a binary search — try the middle quality, see whether the result is too big or too small, halve the range, repeat. About eight attempts lands within a few percent of the target, and it happens in well under a second.

Do this now: open the image compressor, tick "Compress to an exact file size", type 50, and add your photo. You will get back a file that fits, at the best quality that fits.

What actually determines file size

Three levers, in order of how much they matter:

LeverEffect on sizeCost
Pixel dimensionsHuge — halving width and height quarters the pixelsLoses real detail, but invisible if the image is only viewed small
Quality settingLarge — 90 to 60 roughly halves a photoCompression artefacts; barely visible on photos
FormatLarge — PNG to JPG often saves 70–90%No transparency in JPG

This is why shrinking dimensions is the first thing to try when you have a very large photo and a very small budget. A 4000 × 3000 phone photo shown in a 300 × 400 form field contains roughly 100 times more pixels than anyone will ever see. Cutting it to 800 × 600 loses nothing that the reviewer can perceive.

Realistic targets, and what to expect

Your originalTargetWhat usually works
3–12 MB phone photo200 KBQuality 70–80, keep full resolution
3–12 MB phone photo100 KBResize to ~1600 px wide, quality 70
3–12 MB phone photo50 KBResize to ~1000 px wide, quality 60–70
3–12 MB phone photo20 KBResize to ~600 px wide, quality 55–65 — passport-style crops only
1–3 MB PNG screenshot100 KBConvert to JPG first — this alone usually does it

These are starting points, not rules. A photo of a plain wall compresses far better than a photo of a forest, because detail is what costs bytes.

Step by step: hitting an exact size

1
Add the photoDrag it into the compressor. Nothing is uploaded — the work happens in your browser.
2
Set the targetTick the exact-size box and enter the number from the form (20, 50, 100, 200 KB).
3
Let it searchThe tool tries quality levels until it finds the highest one that fits under your limit.
4
Check and downloadCompare original and result side by side, then save. If it is still rejected, drop the target by 10 KB.

When the limit is truly tiny (under 20 KB)

Some government and examination portals ask for 10–20 KB. At that size you are not compressing a photo any more, you are making a thumbnail. Two things help:

Also check the format and dimensions

Plenty of rejections blamed on "size" are actually format or dimension problems. Before you spend time squeezing bytes, confirm:

Frequently asked questions

Does compressing reduce quality?

Yes, by definition — but the useful question is whether anyone can tell. Between quality 90 and 70 on a photograph, essentially nobody can. Below 60, artefacts start to appear in smooth areas like skies and skin.

Can I get an exact size like 48.3 KB?

You can get within a few percent. Image encoders are not perfectly predictable, so a tool that promises an exact byte count is either padding the file or lying.

Will this work on a phone?

Yes. The tools run in the mobile browser too. On iOS, HEIC photos may need converting to JPG first, since not every browser can decode them.

Is my photo uploaded anywhere?

No. Every SnapTools tool processes images locally using the browser's canvas, so the file never leaves your device. That matters when the photo is a passport scan or an ID document.