Compress Image to 20KB (Resize Photo Under 20KB)

Compress image to 20KB, counted as 20,000 bytes. The photo stays on your device.

Choose photos or drop them here. Up to 20.

Size, format, and KB counting

Your files never leave your device. Compression runs entirely inside your browser using your phone or computer's own processor. Nothing is uploaded to a server, nothing is stored, and the page keeps working even if you go offline after it loads. Re-encoding a photo builds a new file from pixels, so camera metadata such as GPS is removed. Read the privacy policy.

Why compress image to 20KB is harder than 50 or 100 KB

A phone photo is often twelve million pixels, about 4000 by 3000. JPEG quality only changes how roughly those pixels are stored. It does not reduce the number of pixels. At a roomier budget there is still space for a large frame. At 20KB the budget is 20,000 bytes. Spread across a 12 megapixel frame that is a fraction of a bit per pixel, which is not enough to keep a face recognisable. Quality can fall only so far. Past that point the file stays too big until pixels are removed.

This compressor tries a high quality first. If the file is over the ceiling it tries a lower one, then keeps the highest quality that fits. Only when the lowest quality is still too big does it shrink the width and height and try again. The short side never goes below 64 pixels. If that smallest frame is still over 20,000 bytes, the card tells you to raise the target. You do not pick the quality number. The card reports the quality it used.

Leave dimensions on “keep original” and the tool chooses the frame. If the form prints a maximum edge, or an exact width and height, open the size settings and type those numbers. An exact frame is not shrunk further, so a pixel size the form asked for stays put. If that frame cannot fit, the card says so instead of quietly changing it.

The table is one sample picture drawn for this page: a gradient, a speckled texture, and a simple standing figure. It is not a photograph of a real person. Each row is that same picture saved at a fixed pixel size under a 20,000 byte ceiling. Larger frames need a lower JPEG quality, and some cannot fit at all. A flat screenshot will compress further than this sample. A detailed face may compress less. Read the rows as a pixel budget, not as a promise about your own file.

Same sample picture at several pixel sizes under a 20KB ceiling
Pixel sizeJPEG qualityBytes≤ 20,000
1600 × 120030%36,423No
1200 × 90030%25,270No
800 × 60048%19,365Yes
640 × 48068%19,919Yes
480 × 36082%19,384Yes
320 × 24093%19,723Yes

These numbers were produced by this site in Node, using its JPEG encoder. A browser encoder can differ slightly. Treat the table as an estimate.

Strict mode on this page is 20 × 1,000 = 20,000 bytes. The other count is 20 × 1,024 = 20,480 bytes. A file at or under 20,000 bytes passes both. Turn on “Count 1024 bytes as 1 KB” only when the form says it uses that count. The card always prints the raw byte count. The converter page for how many bytes is 20KB shows that split for other limits too.

Photos of a face at 20KB

A face goes soft before a wall does. Eyes, hair, and the jaw are fine detail, and fine detail is what a small JPEG drops first. Two habits make a photo 20KB file easier to recognise. Crop away the empty background before you compress, and start from a plain wall with no filter, no beauty mode, and no extra sharpening. A filter spends bytes on texture you do not need.

The checkbox “Head-and-shoulders crop first” does not look for a face. This page has no face detection. The crop is a fixed top-centred 3:4 rectangle: the largest portrait block of that shape that fits inside the picture, centred from left to right, and flush with the top edge. A person standing in a normal photo is often in that upper middle. If they are off to one side, or low in the frame, the crop will miss them. The result card shows the cropped preview next to the compressed file. Look at that preview. Turn the option off if the head is cut or the subject sits too low.

A passport photo 20KB job is still just the byte limit plus any pixel size printed on the form. This page does not store portal rules. It will not name a background colour, a head height, or a list of banned accessories. Type the pixel size if the form prints one. If it only prints 20KB, leave the dimensions on automatic and read the pixels on the card. Soft, even light and a plain wall help, because the encoder then spends the 20,000 bytes on the person.

To reduce photo size to 20KB without a smear, give the face most of the frame. A full-body picture at this budget becomes a blur with a tiny head. The head-and-shoulders crop does the opposite: fewer pixels of background, more of the person, and the same byte ceiling.

If the form says 10–20 KB

Some forms reject a file that is too small as well as one that is too big. A blank upload is often only a few kilobytes, so the check asks for a floor. Open “Size, format, and KB counting”, tick “Keep it above a minimum”, and set that minimum to 10 when the form says 10–20 KB. Leave the target at 20. Strict mode then looks for a file from 10,000 bytes through 20,000 bytes.

The tool raises JPEG quality first. If the picture is still under the minimum, it may enlarge the frame, up to twice the original edges, and then it stops. It does not pad the file with junk bytes to fake a larger size. If the highest quality is still under the minimum, the card says so. A very simple graphic can hit that wall. A real photograph usually will not.

You can drop up to 20 photos. They are compressed one after another so a phone is less likely to run out of memory. Each card has its own download. When two or more finish, Download all (ZIP) packs them. A 21st file is refused. Nothing in the batch is uploaded.

That same 10–20 KB window is also used for a signature. This page is for a photograph. If the upload is a signature rather than a photo, resize a signature to 10–20 KB on the signature page, which can trim the paper and clean a gray background.

JPG, PNG or WebP at 20KB

JPEG is the format most photo fields accept, and it is the one to use when you need to compress jpg to 20KB. JPEG discards detail on purpose. That is how a photo becomes small. PNG does the opposite: it keeps pixels exact, so a camera PNG of a face almost never fits in 20KB. A PNG screenshot of a simple screen can already be small. A photograph saved as PNG will not be. This tool fills transparent PNG pixels with white, then saves JPG or WebP. For a jpg to 20KB file, leave the format on JPG.

WebP can look similar at a smaller size, but many forms still reject it. Choose WebP only when the form names it. If the browser cannot write WebP, the page says so and you switch back to JPG. The download name is plain, such as photo-20kb.jpg, so a form that dislikes spaces has one less reason to refuse the file.

To reduce image size to 20KB, start with JPG, crop the head and shoulders if the preview looks right, set 20, and read the byte count on the card. The checkmark means the file is at or under the ceiling you set. It does not mean every form will accept the picture. A form can still refuse the format, the pixels, or the file name.

After the page has loaded you can go offline and still compress. On iPhone or iPad, if the download does nothing, long-press the compressed preview and save the image. The card shows that hint on those devices.

Need 50 KB or 100 KB instead? Use the compressor for any other KB size. Stay here to compress image to 20KB, because that budget is the one that forces a smaller frame.

Frequently asked questions

Is 20KB 20,000 or 20,480 bytes?

20KB is 20,000 bytes in the strict count this page uses, and 20,480 bytes when a form counts 1,024 bytes per KB.

A file at or under 20,000 bytes passes both checks. Turn on “Count 1024 bytes as 1 KB” only when the form says it uses that count. The card prints the raw bytes either way.

Why is my 20KB photo blurry?

A 20KB photo is blurry because 20,000 bytes cannot hold a sharp multi-megapixel face, so the tool lowers quality and then removes pixels.

The face goes soft before the background does. Crop to the head and shoulders, use a plain background, and skip filters. If the form allows more than 20KB, a larger target keeps more detail.

Can I compress to exactly 20KB?

No, the tool does not chase exactly 20,000 bytes; it keeps the highest quality that still lands at or under that ceiling.

A result of 19,400 bytes is a pass when the ceiling is 20KB. The file is not padded to hit the number exactly.

Does the photo get uploaded?

No, the photo is compressed in your browser and the download stays on your device.

You can load the page, turn the network off, and still finish a photo that is already open. The new file is built from pixels, so camera location data is not copied into it.

What pixel size should a 20KB photo be?

Use the pixel size the form prints. If it prints none, let the tool shrink the frame until the file is at or under 20,000 bytes.

The example table shows how quality falls as the frame gets larger on one sample picture. Your photo will not match those rows exactly. The result card shows the original pixels, the pixels you got, and whether the bytes fit.

Will the form accept it?

This page can only guarantee the byte count, and it does not store portal rules, so the form’s own instructions decide everything else.

A form can still refuse the file for the format, the pixel size, the file name, or a minimum size. Read the checkmark on the card, then read the form.

More free tools