Image · nothing uploaded

Compress an image to a target size

Set the limit, add the image, and the tool finds the best quality and size that fits: it lowers quality first and shrinks dimensions only if it has to. Free with no watermark, ten images at a time; the batch licence (A$9 once) takes 500.

1 Your images

or drag them here, or paste with Ctrl+V. JPEG, PNG, WebP, AVIF, HEIC, GIF (first frame) and BMP; TIFF in Safari only. Nothing is uploaded.

    2 Options

    3 Run

    Batch licence: 500 images at a time, saved settings, folder drop

    How it works

    1. Add your images and enter the target in KB (1 MB = 1,024 KB). Optionally set a maximum width and height.
    2. Click Compress. For each image the tool encodes at different qualities, keeping the highest one that fits. If none does, it shrinks the image by 15% and tries again.
    3. The result shows the final dimensions, quality and size, and whether it is under the target.

    Size falls as quality falls, but not in a straight line, and every photo behaves differently: a photo of a sky compresses far more than one of gravel. That is why the tool measures rather than guesses. Each trial is a real encode, so the size you see is the size you get.

    Why portals have KB limits

    Government, exam and job portals were often built when bandwidth and storage were expensive, and many still check every upload against a fixed limit. Small files also load quickly for the assessor on any connection. The limits are often tight, 50, 100 or 200 KB, because the portal only needs a recognisable photo or a legible document, not a print-quality file.

    Common limits

    For passport and visa photos with exact pixel sizes as well as KB limits, use the photo maker, whose presets match each portal's dimensions; its KB tool is tuned for those. Platform presets here cover ImmiAccount, SEEK, LinkedIn, Etsy, eBay and Shopify.

    Hitting a limit without ruining the photo

    Documents and scans

    For scanned documents, legibility of the smallest text is what matters. Greyscale scans are much smaller than colour ones; if the portal accepts PDF, a compressed PDF may be better than a JPEG of each page.

    Several images

    Every image in the batch gets the same target. Each is searched separately, so a simple photo may end up at high quality and a detailed one at lower quality, both under the limit. Download all as a ZIP when done.

    How long it takes

    Each step in the search is a real encode, so a large photo takes a second or two, longer for AVIF and on phones. The search is capped so it never runs away: about eight quality steps at each size and at most a dozen size steps. Batches are processed one image at a time with a progress bar, and Cancel stops immediately.

    Troubleshooting

    Quality versus dimensions

    Two things set a JPEG's size: how many pixels it has and how hard each block of pixels is compressed. Lowering quality keeps every pixel but blurs fine detail and adds blocky artefacts; reducing dimensions keeps each pixel crisp but shows less detail overall. For on-screen checks, which is what most portals do, a slightly smaller, clean image looks better than a full-size, heavily compressed one. That is why the search stops lowering quality at a floor and shrinks the image instead. If you would rather keep the dimensions and accept artefacts, set the maximum width and height to the original size and lower the highest quality to try.

    Private by design

    The image never leaves your device. It is decoded in your browser, processed in a background worker by open-source codecs compiled to WebAssembly (MozJPEG, libwebp, libavif and OxiPNG, via the jsquash project, plus pica for resizing) and handed back as a download. There is no upload, no account and no server copy to delete. You can confirm it in your browser's developer tools: the Network tab shows the page's own files and the codec files loading, and nothing carrying your image. After the first visit the tools work offline.

    Frequently asked questions

    How does it decide what to change?

    It binary-searches the JPEG (or WebP or AVIF) quality to find the highest quality under your target. If even the lowest acceptable quality is too big, it reduces the width and height by 15% and searches again, until it fits.

    Will it always reach the target?

    Almost always. Very small targets (under about 10 KB for a photo) may need dimensions so small the image is no longer useful; the result then says it could not reach the target.

    Why JPG by default?

    Upload portals with size limits almost always accept JPEG and often nothing else. Choose WebP or AVIF for smaller files where they are accepted.

    Can I also set a maximum width or height?

    Yes. Some portals limit dimensions as well as size; set them and the search stays inside them.

    Does 'KB' mean 1,000 or 1,024 bytes?

    This tool uses 1 KB = 1,024 bytes, which is what most upload forms check. Aim a little under the limit if unsure.

    Are my images uploaded?

    No. The search runs in your browser.

    Related