"Photo must be less than 50 KB." "Signature: maximum 20 KB." Anyone who has filled in a government form, a university application or a job portal has hit one of these limits — usually while holding a 4 MB phone photo that is eighty times too big.
The trick is knowing that file size is not one dial. It is two, and pulling the right one first is the difference between a readable photo and a blurry mess.
The two things that control file size
- Dimensions — how many pixels the image has. A 4000 × 3000 photo carries twelve million pixels. If the form displays it in a small box, most of them are wasted weight.
- Compression quality — how hard the JPG encoder squeezes what remains. Push this too far and you get blocky squares and smeared text.
The order matters. Cut the dimensions to something sensible first, then compress. A 4000-pixel-wide photo forced to 50 KB by quality alone will look terrible; the same photo resized to 800 pixels wide first will hit 50 KB and still look fine.
How to compress an image to an exact size
- Open the Compress Image tool.
- Upload the JPG or PNG.
- Enter the target size in KB the form asks for.
- Optionally set a maximum width or height. This is the step most people skip, and it is the one that preserves quality.
- Download and check the result before you upload it anywhere.
Compress a photo to an exact KB target — free and instant.
Open the Compress Image toolSensible dimensions for common targets
These are starting points, not rules. Always follow the specific limits your form states.
| Target size | Try resizing to | Typical use |
|---|---|---|
| 10–20 KB | about 300 px on the long side | Signatures, thumbnails |
| 20–50 KB | about 600 px on the long side | Passport photos on application forms |
| 50–100 KB | about 1000 px on the long side | Document photos, ID uploads |
| 100–300 KB | about 1600 px on the long side | Scanned pages that must stay readable |
JPG or PNG?
Choosing the wrong format can double your file size before you compress anything.
- JPG for photographs and anything with smooth colour gradients — faces, scenery, product shots. It compresses these extremely well.
- PNG for flat graphics, screenshots, logos, and anything that needs transparency. It keeps hard edges crisp.
Saving a photograph as PNG typically produces a file several times larger than the JPG for no visible benefit. Saving a screenshot of text as JPG makes the text fuzzy. If a form accepts JPG and you are uploading a photo, use JPG.
When compression starts to hurt
Look for these before you submit:
- Square blocks in flat areas like a plain background or a sky.
- A halo or shimmer around dark text on a light page.
- Colour banding where a smooth gradient turns into stripes.
If you see them, the target is too aggressive for those dimensions. Resize smaller and compress less hard — that combination almost always looks better at the same file size.
Frequently asked questions
Will compressing reduce the resolution?
Only if you ask it to. Setting a target KB alone adjusts the compression quality; setting a maximum width or height also reduces the pixel dimensions. For a big photo going to a small target, doing both gives the best-looking result.
Can I get exactly 50 KB?
The tool aims for your target and lands at or just under it. JPG compression is not perfectly predictable, so it works towards the number rather than hitting it to the byte — which is what upload limits actually require.
Can I compress a scanned document?
Yes, but be careful: text suffers from heavy compression sooner than faces do. Keep the dimensions generous and the compression light. If the scan is a PDF rather than an image, use Compress PDF instead.
Does compressing lose quality permanently?
Yes. JPG compression is lossy and discards detail for good, so always keep your original file and compress a copy.
My photo is under the KB limit but the form still rejects it.
Check the other limits — many forms also specify minimum and maximum pixel dimensions, and an accepted file format. Use Resize / Convert Image to meet those.
Related tools
- Resize / Convert Image — set exact pixel dimensions and convert between JPG and PNG.
- AI Background Remover — clean white background for application photos.
- Compress PDF — the same job for PDF uploads.
- Auto Crop Scanner — crop away background so every remaining pixel counts.