FLXCode Compress Image to 20 KB

FLXCode apps

Appearance

Compress Image to 20 KB

Get a picture under 20 KB, or inside a range such as 10 to 20 KB, and set its exact pixel size if the form asks. The file stays on this device.

or drop it here, or paste with Ctrl+V

JPG, PNG, WebP or HEIC, up to 50 megapixels. Nothing is uploaded. The saved file is a JPG without location or camera data.

Your picture never leaves this device. There is no upload, no account and no watermark. How we count What this tool keeps and sends.

Problem or idea? Email us

How to use it

  1. Choose a picture, or drop it on the box.
  2. The largest size is 20 KB. Type a smallest size if the form has one, and a width and height in pixels if it asks for them. Or pick a portal from the list.
  3. Press Make the file. You see the bytes in KB and in kB, the pixels, and a preview. Then download.

Worked example: what a limit means in bytes

A portal that says "KB" can mean 1,024 bytes or 1,000 bytes, and the form does not tell you. The tool shows both, and aims 2% under your largest size.

LimitIf KB is 1,024 bytesIf kB is 1,000 bytesAim (2% under, KB)
20 KB20,480 bytes20,000 bytes20,070 bytes
50 KB51,200 bytes50,000 bytes50,176 bytes
100 KB102,400 bytes100,000 bytes100,352 bytes
200 KB204,800 bytes200,000 bytes200,704 bytes

A file of 20,300 bytes is under 20 KB counted with 1,024 and over 20 kB counted with 1,000. That is the reason for the margin.

Worked example: how the search lands under 20 KB

The tool starts at a picture size that suits the limit, then searches the quality. Three starting pictures: The sizes in this table come from a model of JPEG size (about 0.02 plus 0.5 times quality cubed bytes per pixel), not from real files, so real photos land near these numbers and not on them.

PictureLimitPixels afterJPEG qualityEncodes
4,000 × 3,000 (12.0 MP)20 KB401 × 3010.668
1,200 × 500 (0.6 MP)20 KB538 × 2240.668
800 × 800 (0.6 MP)20 KB347 × 3470.668

A long search is nine encodes per size it tries. A big photo reaches 20 KB in one size, so it is nine to a few more encodes in total, a second or two on a laptop.

Portal presets and where they come from

The presets in the tool use sizes quoted from recent IBPS and UPSC notices. Each preset names the notice type under the box. A portal can change its rules from one notice to the next, so read the notice you apply under.

PresetFile sizePixelsSource
IBPS photo, 200 × 230 px, 20 to 50 KB20 to 50 KB200 × 230 pxIBPS scanning guidelines in recent recruitment notices
IBPS signature, 140 × 60 px, 10 to 20 KB10 to 20 KB140 × 60 pxIBPS scanning guidelines in recent recruitment notices
UPSC photo, 20 to 200 KB20 to 200 KBnot givenUPSC photo and signature upload instructions
UPSC signature, 20 to 100 KB20 to 100 KBnot givenUPSC photo and signature upload instructions

There is no rule that every Indian government form wants 20 KB or 50 KB. Each portal and each upload box has its own limit, and some notices differ from the same body's earlier ones. The presets cover only IBPS and UPSC photo and signature boxes.

Numbers this uses

  • Limit on this page: 20 KB, which is 20,480 bytes, or 20,000 bytes if the portal means kB.
  • Quality is searched between 0.4 and 0.95. Under 0.4 the picture is made smaller and the search starts again. Both numbers are this page's own choice.
  • A file fits when its byte count is at or under the largest size, and at or over the smallest size if you set one.
  • Preset sizes are quoted from recent IBPS and UPSC notices. Always check the notice you apply under.
  • The saved file is a JPG. A transparent PNG gets a white background.

How the file gets under the limit

The tool opens the picture, turns it upright and cuts or fits it to the pixel size if you typed one. It saves a JPEG at high quality and reads the byte count. If that is over the limit, it halves the quality gap again and again and keeps the highest quality that fits, which takes about 9 encodes.

When the lowest quality is still too big, the picture itself is made smaller, unless you fixed the pixels. In that case the tool tells you the limit can't be met. When the file lands under your smallest size, a few empty comment bytes are added inside the JPEG, which no viewer shows.

What this can and can't do

  • A detailed photo has a floor. A signature at 140 × 60 px fits easily, but a face at 600 × 800 px may not fit in 20 KB at all. The tool then says so and shows the smallest size it made.
  • It does not check faces, backgrounds, ink colour or anything else a portal may check. White background and face size rules are yours to meet.
  • Scans of paper need a white background and dark ink. Grey paper makes a bigger file.
  • Very low quality shows blocks around text. Look at the preview before you upload.

What happens to your file

The file is read by your browser and processed in this tab. The page sends no request with your file, its name, its size or its pixel size. After you pick a file the only requests are anonymous usage counts with words like "target" and "under", never a name or a number from your file.

Counts of events such as "download" are kept without cookies (details). The PDF code is pdf-lib, MIT licence: open source used on this site.

Nearby tools

FAQ

How do I make a signature 10 to 20 KB at 140 × 60 pixels?

Pick "IBPS signature" in the form list. It sets 10 to 20 KB and 140 × 60 px. If your scan has a different shape, choose how to handle it: crop to fill, or fit inside with white borders. Write on white paper with dark ink first, because a grey background makes the file bigger.

What if my file is smaller than the minimum?

Some forms want at least 10 or 20 KB. Type the smallest size in its box. If the picture comes out below it at the best quality, the tool adds empty comment bytes inside the JPEG until it reaches your minimum. The picture itself does not change.

Does "photo resize 20 KB" mean something different?

It is the same job. A form wants a photo that is both small in bytes and, often, a set size in pixels. This page does both: type the width and height, and it gives you that exact size under the byte limit.

Why is my file still over 20 KB on the portal?

The portal may count a KB as 1,000 bytes, or add a few bytes of its own. Pick the other unit in the Unit box, or raise the safe margin to 5%. Also check that the portal wants a JPG, because that is all this page saves.

What is the safe margin?

It is how far under your largest size the tool aims. At 2%, a 50 KB limit becomes 50,176 bytes minus 2%, about 49,172 bytes. Portals count KB in different ways and add small differences of their own, so a file that lands exactly on the limit can still be refused.

Why does the result look soft?

At 20 KB a photo has few bytes for detail, so the tool lowers quality or pixels. A face at 200 × 230 px usually works. A big busy picture does not. Crop closer to the face, or ask whether the form allows a larger file.

More from FLXCode

  • Compress ImageCompress JPG, PNG and WebP by quality or target KB, with a side-by-side preview. Nothing is uploaded.
  • Resize Image to 50 KBResize a photo or signature to under 50 KB and the pixel size a form asks for. Nothing is uploaded.
  • Image ResizerResize photos by pixels, percent or preset for Instagram and email. Batch and zip. Nothing is uploaded.
  • Compress JPEG to 100 KBMake a JPEG at most 100 KB with the best quality that fits. Runs in your browser, nothing is uploaded.

Share Compress Image to 20 KB