50KB is a thumbnail budget wearing a portrait’s job
Fifty kilobytes is what a 2008 PHP upload field considered generous for a profile picture. The field never changed. A 12MP HEIC cannot get there by quality alone without turning into soup. ExactKB’s outer loop scales by 0.75 up to four times after a quality-30 encode still overshoots.
How it works
- Drop one image. PNG transparency is painted on white.
- Keep 50KB, or type 40KB if the portal counts decimal kilobytes.
- Process and compare the before/after sizes.
- Download a JPG with EXIF already stripped.
Places that still say “max 50KB”
| Where it shows up | Typical cap | Notes |
|---|---|---|
| Exam registration photos | 50KB | Often also 3.5×4.5cm |
| Government job applications | 50KB | Photo and signature as separate files |
| Bank KYC photo slot | 50KB | Selfie or passport crop |
| Club membership cards | 50KB | ID photo |
Binary search on quality, then stair-step the resolution
Inner loop: five midpoints between quality 30 and 95. Outer loop: scale 1.0 → 0.75 → 0.56 → 0.42. The first scale that produces a buffer ≤50KB wins, keeping the highest successful quality.
FAQ
Will a face still be recognizable at 50KB?
For a head-and-shoulders crop, yes. For a full-body 12MP shot, crop first or use the visa tools.
Output format?
JPEG. Portals that say 50KB almost always expect JPG.
Can I keep PNG?
Not at 50KB with a photo. PNG would be larger. Logos should start as a small PNG already.
Does this change width and height metadata?
Only if downscale is required. If quality 80 already fits, pixel size stays.
Multiple files?
Yes — each image is processed independently and can be downloaded as a zip.