🖼️ Image Tools

Compress Image to Exact KB

Shrink JPG, PNG, or WebP photos to a precise target size — perfect for SSC, UPSC, IBPS, PAN, and other government form uploads that reject files over a strict KB limit.

🔒 100% private — images never leave your browser.

Compress to target size

Add one or more images, choose a target size, then compress. Multiple files are compressed to the same target.

Drag & drop images here

or click here to browse JPG, PNG, or WebP files from your device. Multiple files supported.

100% Local

Compression runs fully inside your browser using the Canvas API. Nothing is uploaded.

Won't exceed your target

Binary search finds the highest quality that still fits under your chosen KB limit.

Bulk friendly

Add several images and compress every one to the same target size in one go.

How the compression works

Your image is drawn onto an in-memory canvas. The tool then runs a binary search on JPEG quality (10%–100%) using canvas.toBlob to find the highest quality that stays at or under your target KB. If even the lowest quality is still too large, the image is progressively scaled down by 10% steps and retried until the target is met.

PNG & transparency

PNG images are converted to JPEG with a white background fill, since transparent PNGs generally can't be compressed small enough for strict government form limits.

Frequently asked questions

Does this work for SSC, UPSC, and other government exam form uploads?

Yes. Government portals like SSC, UPSC, IBPS, and Railway RRB commonly require photos or documents under a specific KB limit (such as 20KB, 50KB, or 100KB). This tool lets you pick that exact target and compresses your image to fit without exceeding it.

Is it safe to use this tool?

Yes. All compression happens locally in your browser using the Canvas API — your image is never uploaded to any server, so it stays completely private.

Does compressing reduce image quality?

Some quality reduction is unavoidable when shrinking a file to a very small size, since compression works by lowering JPEG quality and, if needed, image dimensions. The tool automatically finds the highest quality possible that still fits under your target size.

What happens if my image is already smaller than the target?

The tool detects this automatically and lets you download the original file directly, without any unnecessary re-compression.