Skip to content
Esc

Compress a photo to 20–50 KB

Files never leave your device

Drop a photo and get a JPG that is at least 20 KB and at most 50 KB. If the file is over the cap it is compressed at the highest quality that fits; if it is under the floor, hidden padding is added so a form with a minimum does not reject it. Nothing is uploaded.

Range
1 KB is
Format
Date, camera, location. Uses a little of the budget.

20–50 KB is 20,480–50,000 bytes (Safe for both readings: the floor uses 1 KB = 1,024 bytes and the cap uses 1 KB = 1,000 bytes). A file over the cap is compressed; a file under the floor is padded without changing the picture. WebP under the minimum is saved as JPG first, because WebP cannot be padded.

How to use it

  1. The range starts at 20–50 KB. Switch to 10–20, 20–100 or 50–100 KB, or type your own minimum and maximum.
  2. Leave “Safe for both” unless the form defines a kilobyte. That setting uses 1,024 bytes for the floor and 1,000 bytes for the cap, so the file clears both readings. Set Max width if the form also names a pixel width.
  3. Drop one or more images, or try a large or a small sample. Each result shows the exact byte count both ways. Download them one by one or as a zip.

Details

Default range
20–50 KB. Safe mode is 20,480–50,000 bytes: at least 20 × 1,024 and at most 50 × 1,000. Switch to 1,000 or 1,024 only if the form says so.
Over the cap
The photo is compressed to the highest JPG (or WebP) quality that fits, the same method as Compress image. If quality alone is not enough, the image is scaled down and the new size is shown.
Under the floor
JPG and PNG are padded with a standard comment or text chunk, so the picture and its dimensions stay the same. WebP under the minimum is saved as JPG first, because WebP cannot be padded.
Already in range
A file that already sits inside the window, in the chosen format, is left as it is.
Pixel size
Unchanged unless the cap requires a shrink, or you set Max width. The result line shows the final width and height.
Output
JPG by default, or WebP. HEIC, PNG, AVIF and GIF are accepted as input.

Questions

Are my files uploaded?

No. The page loads its code once, then reads and processes your files inside the browser tab. Nothing is sent to a server; you can confirm it in your browser's network panel while a file converts.

Why is 20–50 KB not 20,000–50,000 bytes?

It can be, if you pick 1 KB = 1,000 bytes. Forms disagree about a kilobyte. Safe for both (the default) uses the stricter reading on each side: the file is at least 20 × 1,024 = 20,480 bytes, and at most 50 × 1,000 = 50,000 bytes, so it passes either definition. A 20–20 KB range cannot be met that way, because 20,480 is already over 20,000; widen the range or pick one definition.

How is this different from Compress to 20 KB, Compress to 50 KB, or Increase image size in KB?

The 20 KB and 50 KB pages are ceilings only: they will not pad a file up to a minimum, and they say so. Increase image size in KB only makes a file bigger, to one exact size, and will not compress a file that is already over the target. This page does both in one step, and it keeps the file inside a window rather than at a single number.

Will a padded file be accepted?

Most portals check the file type, the byte size and sometimes the pixel size. The padding is a standard JPG comment or PNG text chunk, and the picture still opens everywhere. A few systems re-encode uploads or strip comments; if yours then shows a smaller size, the file may fall below the minimum. In that case start from a less-compressed original, or raise the minimum only if your form allows it.

My form uses a different range, or also names a width such as 200 × 230 pixels.

Type the minimum and maximum from your form. Set Max width to the required width. This page does not crop to an exact aspect ratio, so crop first if the ratio differs. Always re-read the official instructions for your form; ranges change between years and boards.

Can I do several photos at once?

Yes. Drop them together; each is fitted to the same range, and Download all saves a zip.