Compress an Image to 20KB

20KB is one of the tightest limits you'll meet, usually for a scanned signature or a small ID photo on an application form. At that size the background decides everything: in our tests, a signature on clean white paper kept three times as many pixels as the same signature on grey paper.

The quick way

  1. Crop tightly around the signature or face with the image cropper.
  2. Open the image compressor and add the cropped image.
  3. If the form gives a pixel size, type the width.
  4. Choose Target Size, JPG, type 19 and press Compress Image.
  5. Zoom in on the result: every stroke of the signature and every feature of the face should still be clear.

The target is 19 rather than 20 for the same reason as in our other size guides: some forms count a kilobyte as 1000 bytes, our tool as 1024, and a small margin keeps you under either way. The compression happens in your browser; nothing is uploaded.

A close-up portrait before and after compression to under 20 KB

If that's all you needed, you're done. If the result looks blurry, or comes out too small for a form with a minimum, read on: at 20 KB, how you prepare the image matters more than the settings.

Signatures: the background decides

We drew the same signature, a dark blue cursive stroke, on two backgrounds at 1600 × 700 pixels: pure white, and a light grey "paper" with grain and a slight shadow toward one corner, the way a phone photo of paper on a desk usually looks. Before any compression, saved as high-quality JPG, the white version was 36 KB. The grey version was 334 KB, more than nine times as big, even though the signature was identical.

Then we compressed both with a 20 KB target:

  • On white, the signature kept 1487 × 651 pixels, almost its full size.
  • On grey paper, it had to shrink to 814 × 356 pixels.

At a 10 KB target the gap stayed the same: 900 × 394 on white against 576 × 252 on grey. In other words, a clean white background lets about three times as many pixels fit in the same file size. Paper grain, shadows and uneven light are all detail the compressor has to store, and none of it is your signature.

How to get a clean signature image

  • Sign on plain white paper, not lined or squared paper, and not a page with text showing through from the back.
  • Use a dark pen with a medium tip. Black or dark blue. A very fine pen gives thin lines that break up when the image is shrunk; a slightly thicker line survives compression much better.
  • Use a scanner or a document scanning app rather than the normal camera. Scanning modes, such as Scan Documents in the iPhone Notes app or the scan feature of Google Drive on Android, flatten the page and turn the paper white. That alone can make the file several times smaller.
  • If you use the camera, photograph the paper flat, in daylight, with no shadow from your phone or hand, and fill the frame with the page.
  • Crop tightly, leaving only a small margin around the strokes.

Why the tight crop helps: we cropped the grey-paper signature to just the strokes (1130 × 430 pixels) and compressed again. At 20 KB the result was 758 × 288 pixels, slightly fewer pixels in total than the uncropped version, but the signature itself now kept 67 percent of its original scale instead of 51 percent. The bytes go to the strokes instead of empty paper, so the signature is larger and clearer in the final file.

When the form wants 10 to 20KB

Signature fields often come with a window, such as "10 KB to 20 KB". A clean signature on white can easily come out under the minimum, because it compresses so well. The fix is in Quality % mode: set the width the form asks for (or leave it at the cropped size), choose JPG, and raise the quality slider until the estimate sits inside the window. The estimate is the real encoded size, so what you see is what you'll download.

If even high quality doesn't reach the minimum, set a larger width, if the form allows it. Don't add noise or borders to bulk the file up; some systems check that the image looks like a signature, and a padded file doesn't help anyone.

Small ID photos at 20KB

Some forms want the photo itself at 20 KB, or in a 10 to 20 KB window. For a passport-style portrait, here's what we measured:

  • With no width set, a 20 KB target gave 838 × 1077 pixels, which is more than enough for an on-screen ID photo.
  • At a fixed 275 × 354 pixels, a common exam-form size, the photo was only 9.7 KB at 92 percent quality. To reach 20 KB it needed 98 percent quality (20.5 KB).
  • At 413 × 531, the 3.5 × 4.5 cm size at 300 dpi, 92 percent gave 17.5 KB and 94 percent 22.3 KB.

So with a small fixed pixel size, the question isn't how to get under 20 KB but how to avoid ending up far below a minimum. The same Quality % method as for signatures applies. Our 50KB guide has the full table of quality settings and sizes for these photos.

The usual photo rules still decide whether the application goes through: light plain background, face straight on, even light, recent photo. Cropping and compressing don't fix a photo that breaks those rules. The passport photo size guide explains the framing.

Why not PNG?

PNG is the natural format for a black-and-white signature, because it keeps edges perfectly sharp. But PNG can only get smaller by losing pixels, and at 20 KB that costs more than JPG's slight softening. Most forms ask for JPG anyway. Use PNG only when the form accepts it and the limit is generous enough that you don't have to shrink the image. For a signature with a transparent background, to place on a document, our guide to making a background transparent covers the workflow; that's a different job from uploading to a form.

Common mistakes at 20KB

  • Starting from a forwarded copy. A signature or photo sent through a messaging app has already been compressed once. Compressing it again stacks the damage. Start from the original photo or scan.
  • Photographing the signature on a screen or taking a screenshot of a PDF. Screens add moiré patterns and glare, and screenshots of documents carry grey anti-aliasing around every letter. Sign on paper and scan it.
  • Coloured or faint ink. A pale blue or red signature has less contrast with the paper, so it loses legibility first when the image shrinks. Black or dark blue survives best.
  • Leaving the whole page in the frame. A signature photographed on a full A4 sheet spends most of the 20 KB on empty paper. Crop first.
  • Using 100 percent quality to reach a minimum. As our photo tests showed, going from 98 to 100 percent made a small JPG more than two and a half times bigger (20.5 KB to 54.4 KB). Raise the quality one step at a time instead.

Check before you upload

At 20 KB it's worth one careful look:

  • Open the downloaded file and zoom to 100 percent. Are all strokes continuous, with no gaps or blocky smudges?
  • Is the file name sensible? Some portals reject names with spaces or special characters; something like signature.jpg is safest.
  • Is the format what the form asks for? A file named .jpg must actually be a JPG; our compressor's JPG output is real JPEG data.
  • Is it the right image? It's easy to upload the photo into the signature field when both are called something like "image-compressed.jpg". Rename them as you download.

Privacy

A signature is sensitive: it's the one thing on a form that's meant to prove it's you. The compressor never uploads it, keeps no copy, and the output file carries no hidden camera data. When you're done, delete stray copies from your Downloads folder and from shared computers.

Frequently asked questions

How do I get a signature under 20KB?

Sign on plain white paper with a dark pen, photograph or scan it in good light, crop tightly around the signature, then use Target Size in the image compressor with JPG and a target of 19.

Why does the paper background matter so much?

Grey, grainy or shaded paper is full of detail the compressor has to store. In our test the same signature was 36 KB on white and 334 KB on grey paper before compression, and at 20 KB the white one kept 1487 pixels of width against 814.

My file must be between 10 and 20KB but it comes out at 6KB. What now?

A clean signature compresses very well. Switch to Quality % mode and raise the quality until the estimate is inside the range, or set a larger width.

What size should a 20KB photo be?

If the form gives a pixel size, use it. Without one, Target Size picks it for you: our passport-style portrait came out at 838 x 1077 pixels at 20 KB, which is plenty for a form.

Is my signature uploaded anywhere?

No. The compressor works in your browser and nothing is sent to a server.

Should I use PNG for a signature?

Only if the form accepts PNG and has no tight size limit. At 20 KB a JPG keeps more pixels, and most forms ask for JPG anyway.

Related guides