Compress an Image to an Exact KB Size (20KB, 50KB, 100KB)

By Ditecho Print Hub · 30 Aug 2026

Government and job portals cap uploads in kilobytes. Here is how to compress a JPG or PNG down to an exact target size without making it unreadable.

"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

  1. Open the Compress Image tool.
  2. Upload the JPG or PNG.
  3. Enter the target size in KB the form asks for.
  4. Optionally set a maximum width or height. This is the step most people skip, and it is the one that preserves quality.
  5. 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 tool

Sensible dimensions for common targets

These are starting points, not rules. Always follow the specific limits your form states.

Target sizeTry resizing toTypical use
10–20 KBabout 300 px on the long sideSignatures, thumbnails
20–50 KBabout 600 px on the long sidePassport photos on application forms
50–100 KBabout 1000 px on the long sideDocument photos, ID uploads
100–300 KBabout 1600 px on the long sideScanned 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


More guides