Hits target file size exactly
Hits target file size exactly — uses binary search over quality to find the highest quality encoding that fits under your target, getting within a few percent of the cap every time.
500+ fast, free tools. Most run in your browser only; Image & PDF tools upload files to the backend when you run them.
Compress an image to an exact KB target — 20, 50, 100, 200, 500 KB or custom. Smart binary-search quality.
Most online forms have a hard limit on image size: passport offices want under 200 KB, government portals cap at 100 KB, school applications sometimes ask for 50 KB. Manually finding the right quality is frustrating — drop too low and the photo looks bad, drop too little and you're over the cap. This tool runs a binary search over JPG quality to find the highest-quality encoding that fits under your target. If even quality 5% can't reach the target (extremely detailed photos, very small targets), the tool transparently downscales the image and retries. The result hits within a few percent of your target every time. Picks WebP or JPG output, supports a custom background colour for transparent PNGs, and runs entirely in your browser. Perfect for passport photos, ID applications, school portals, and any size-capped image upload form.
Hits target file size exactly — uses binary search over quality to find the highest quality encoding that fits under your target, getting within a few percent of the cap every time.
Smart fallback to downscaling — if even minimum quality can't reach a very small target, the tool downscales the image and retries automatically, never returning an oversized file.
Preset KB targets cover the common form requirements — 20 KB for tiny avatars, 100 KB for government portals, 200 KB for passport applications, 500 KB for general web upload forms.
Custom KB input for precise requirements — type any value from 5 KB to 10000 KB. Perfect when a form specifies an unusual cap like 73 KB or 350 KB.
100% private — files never leave your browser. Sensitive ID photos, passport scans, and personal documents stay on your device throughout the encoding loop.
Choose JPG or WebP output — JPG for universal compatibility with old forms, WebP for smaller files when the destination is modern and accepts it.
Input: passport.jpg: 1200×1600, 480 KB
Output: passport_100kb.jpg: 1200×1600, 96 KB at quality 73
Input: avatar.png: 800×800 with alpha, 240 KB
Output: avatar_20kb.jpg: 800×800 white background, 19 KB at quality 60
Input: photo.png: 4032×3024, 5.2 MB
Output: photo_500kb.jpg: 4032×3024, 488 KB at quality 84