KBCompress.com

About KBCompress

KBCompress was built for one reason: government exam portals in India reject photos that are even slightly over the KB limit, and there was no simple, trustworthy tool to fix this problem without uploading your photo to a random server.

Every year, crores of students apply for UPSC, SSC, IBPS, RRB, NEET, and state PSC exams. Most of them are stopped at the photo upload step by errors like "file size exceeds limit." The portals give no instructions on how to fix it. Students end up using sketchy online tools that upload their passport photos to unknown servers.

KBCompress solves this with a different approach: all compression happens inside your browser using the HTML5 Canvas API. When you upload an image, it is decoded in memory, drawn to an off-screen canvas, and re-encoded as a JPEG using a binary search algorithm to hit your exact target file size. Nothing is sent over the network.

How the Compression Works

The tool uses a binary search on JPEG quality (a value from 0.0 to 1.0). It starts with quality at 0.5, checks the resulting file size, and adjusts up or down. After roughly 6–7 iterations, it converges on the highest quality setting that keeps the file at or below your target KB, within ±2KB. This is more precise than setting a low quality and hoping for the best.

Privacy-First by Design

Passport photos contain biometric information. We built this tool so that information never leaves your device. There is no backend server. There is no upload. The only external services involved are Google Analytics (for anonymous visitor counts) and Google AdSense (for advertising). Neither of these receive your images.

Free, Forever

KBCompress is free and will stay free. The tool costs almost nothing to run. It's just static HTML and JavaScript served over a CDN. Revenue from the AdSense ads covers hosting.

Questions or feedback? Reach out via the contact page.