Image Compressor to Exact KB — Free Online Photo Size Reducer

100% Client-Side: Your photos never leave your device

Drag & Drop your image here

Supports JPG, JPEG, PNG, and WebP • Instant browser processing

1. Target Size in KB (Presets or Custom)
KB
2. Output Format
Ready
Original Size
—
Compressed Size
—
Space Saved
—
Output Format
JPEG
Original Image —
Original uploaded image preview
— —
Compressed Preview —
Compressed output image preview
— —

How to Use the Exact KB Image Compressor

Online applications for passports, government exams, and visas enforce strict file size caps. This tool uses an intelligent client-side binary search algorithm inside your browser's HTML5 Canvas to shrink your photo just below your exact KB limit while preserving sharp facial details.

  1. Upload Your Photo: Drag and drop any JPG, PNG, or WebP file into the upload box above, or click Choose Image File.
  2. Set Your Target KB: Click a quick preset (20 KB, 50 KB, 100 KB, or 200 KB) or type any custom KB target.
  3. Choose Output Format: Select .JPEG for photographs and official portals (best for hitting small KB targets), .PNG for lossless graphics or transparent backgrounds, or .WEBP for lightweight web images.
  4. Inspect & Download: Compare the side-by-side preview and savings, then click Download Compressed Image.

Client-Side Compression: JPEG vs. PNG

JPEG uses lossy compression, allowing our binary search engine to fine-tune quality from 98% down to 5% (and proportionally adjust dimensions only if necessary) to hit tiny targets like 20 KB without making text or faces unreadable. PNG is lossless and preserves transparency; because PNG ignores quality sliders, hitting a strict KB limit in PNG automatically scales image dimensions until the file fits under your target.

Compression Ratio = Original Size (KB) / Compressed Size (KB)  |  Space Saved (%) = (1 − Compressed / Original) × 100
Worked Example (Exam Form Upload): Suppose your smartphone captures a 1.8 MB (1,843.2 KB) portrait photo, and an exam portal requires a JPEG under 50 KB. Entering 50 KB and selecting .JPEG runs a binary search across quality levels, delivering a crisp 48.5 KB file. Using the formula: Compression Ratio = 1843.2 / 48.5 = 38.0×, saving 97.4% of the original file size in under one second.

Standard Photo & Signature File Size Requirements for Online Forms (Global & Exam Presets)

Click Use Target next to any requirement below to automatically set your target KB in the compressor above.

Portal / Use Case Document Type Allowed Size Range Recommended Format Quick Preset
US Visa (DS-160 / DV Lottery)Digital PhotoUp to 240 KB.JPEG
UK Passport OnlineDigital Photo50 KB – 10 MB.JPEG
Canada IRCC Visa & PRPhoto / ScanUp to 4 MB (60 KB+ photo).JPEG
India SSC (CGL / CHSL / MTS)Passport Photo20 KB – 50 KB.JPEG
India SSC ExamsSignature Scan10 KB – 20 KB.JPEG
UPSC Civil ServicesPhotograph20 KB – 300 KB.JPEG
IBPS PO / Clerk / RRBPhotograph20 KB – 50 KB.JPEG
IBPS Banking ExamsSignature / Thumb10 KB – 20 KB.JPEG
GATE / JAM ApplicationCandidate Photo5 KB – 200 KB.JPEG
NEET UG / JEE Main (NTA)Passport Photo10 KB – 200 KB.JPEG
NEET UG / JEE Main (NTA)Signature4 KB – 30 KB.JPEG
PAN Card (NSDL / UTIITSL)Photo & SignatureUp to 50 KB.JPEG
Indian Passport SevaSupporting DocumentUp to 1 MB (100–300 KB ideal).JPEG
SBI PO / Clerk PortalPhotograph20 KB – 50 KB.JPEG
Schengen / EU ETIAS PhotoDigital PortraitUp to 500 KB.JPEG
Australia ImmiAccountIdentity PhotoUp to 500 KB.JPEG
WebP Blog Hero BannerWeb Article ImageUnder 100 KB.WEBP
Transparent Brand LogoWebsite Icon / BadgeUnder 50 KB.PNG

Related Image & Exam Tools

Frequently Asked Questions

Our compressor runs a multi-step JavaScript binary search algorithm inside your browser. It tests quality levels and, when needed for extreme reductions (like 5 MB down to 20 KB), proportionally scales dimensions so the final file lands just under your target KB while retaining maximum sharpness.
For portraits, passport photos, and online exam or visa forms with strict KB limits, choose .JPEG because lossy JPEG compression lets you hit small targets like 20 KB or 50 KB without heavily shrinking dimensions. Choose .PNG only when you need lossless graphics or transparent backgrounds, and .WEBP for fast modern websites.
No. PureWebKits processes every image 100% client-side using your browser's native HTML5 Canvas API. Your ID cards, passport photos, and personal files never leave your device.
Yes. Most portals such as US Visa DS-160, SSC, UPSC, IBPS, and GATE validate file format (.jpeg/.jpg) and maximum file size in KB. Always verify the portal's required pixel dimensions and ensure your background and lighting meet official guidelines.
Yes. The tool is fully responsive and works seamlessly in Chrome, Safari, Firefox, and Edge on Android, iPhone, iPad, Windows, and macOS without installing any app.