Compress an Image to an Exact KB Size

Pick the size your form or upload asks for — 20 KB, 50 KB, 100 KB or a custom number — and the image is compressed in your browser until it fits.

Compress an Image to an Exact KB Size

Drop your image here

Or choose a file from your device

JPG, PNG, WebP, AVIF or HEIC · up to 20 images · max 40 MB each

On a phone? Tap “Choose image” to pick from your gallery.

    No image added yet.

    Three steps — nothing to install

    1. Add your image

      Drop a JPG, PNG, WebP or AVIF file, or pick one from your device. Up to 20 images at a time, 40 MB each.

    2. Choose the target size

      Most forms ask for 20–50 KB, 100 KB or 200 KB. Pick a preset, or type the exact number the portal requires.

    3. Compress and download

      Press Compress. If quality alone is not enough, the pixel size is reduced too, and the final KB is shown before you download.

    Why an exact KB size matters

    Most upload forms check the file size before they check anything else. A photo that is 180 KB is rejected by a portal that wants 20–50 KB, even when the picture itself is perfectly fine. The error is usually vague — “invalid file size”, “upload failed”, “file too large” — and the applicant is left guessing.

    Typical limits you will meet: government exam forms at 20–50 KB for a photo and 10–20 KB for a signature, passport and visa portals at 100–240 KB, job boards around 200 KB, and university portals anywhere between 50 KB and 1 MB. That is why this tool takes a number instead of a quality slider.

    How the compressor hits the number

    The image is decoded at full resolution, then re-encoded as JPEG while the encoder quality is searched between 0.35 and 0.95 until the result sits just under your target. Most photos reach 100 KB without any visible change.

    If even the lowest sensible quality is too large, the tool reduces the pixel dimensions in small steps and tries again — a 4000 px phone photo compressed to 20 KB needs fewer pixels, not just more compression. It never enlarges an image, and it never writes a file larger than the target you asked for.

    Because the output is a fresh JPEG, EXIF metadata is dropped along the way. That includes GPS coordinates, which is usually what you want before sending a photo to a stranger.

    Does compressing to 100 KB ruin the photo?

    For a normal photograph at 800–1600 px, 100 KB is comfortable: the difference is hard to see at 100% zoom and invisible in a form thumbnail. At 20–50 KB you will notice softness in fine detail, which is the trade every portal forces on you.

    Screenshots and images with text suffer more than photos, because JPEG blurs sharp edges. If your portal accepts PNG, use a larger target instead of forcing a screenshot into 20 KB. If it only accepts JPEG, crop to the part that matters first — fewer pixels compress better than the same picture squeezed harder.

    What happens to your file

    Nothing leaves this tab. The file is read with the browser's own file API, decoded in memory and encoded again on a canvas. There is no upload endpoint on this site, no temporary server copy and no account.

    When you clear the list or close the tab, the decoded image data is released by the browser. The page even keeps working if you lose your connection after it has loaded.

    Frequently asked questions

    Why is my image still bigger than the target?Usually the target is smaller than the picture can physically hold at a usable size. The compressor reduces dimensions as well as quality, but it will not go below 200 px on the long edge, because the result would be unusable. If you need 10 KB from a 12-megapixel photo, crop it first.
    Does compressing change the image dimensions?Only when it has to. If the target can be met by lowering JPEG quality alone, the pixel size stays exactly as it was. When downscaling is needed, the aspect ratio is preserved and the final size is shown next to the original.
    Is my photo uploaded to a server?No. The whole process runs in your browser, so the file never leaves your device. There is no upload step, no storage bucket and no third-party processing service behind this page.
    Which formats can I compress?JPG, PNG, WebP, AVIF, GIF and iPhone HEIC. The output is always a JPEG, which is what nearly every form accepts. HEIC is decoded in the browser with the same engine the HEIC to JPG converter uses, so an iPhone photo can be dropped in directly.
    Is there a daily limit or a watermark?No. There is no account, no task counter and no watermark. The only limits are per-file size (40 MB) and 20 images per batch, which exist to keep the browser responsive.
    Does it work on a phone?Yes. Open the page in Safari, Chrome or any current mobile browser, tap Choose image and pick from your gallery. The compressor runs on the phone itself, so no data plan is used for the file.