Why exact file size limits exist
Many systems enforce KB limits because they're designed for low-bandwidth environments, legacy databases, or strict storage quotas. A visa application portal might require a headshot under 50 KB. An online exam registration form might cap uploads at 100 KB. These aren't suggestions — the form simply won't accept anything larger.
A regular compressor reduces file size but doesn't guarantee you'll land under a specific threshold. You might compress to 180 KB when the limit is 150 KB, then compress again and overshoot into visible quality loss. Target-size compression solves this by iteratively adjusting quality and dimensions until the output fits the limit you set.
This is especially common for ID photos, profile pictures on government sites, and document scans where the requirement is stated in kilobytes rather than pixels or megabytes.
- Passport and visa photo submissions
- Government and exam registration portals
- Job application systems with strict upload caps
- Email attachments where the server rejects large files
How target-size compression works
When you set a target like 100 KB, the compressor encodes your image at different quality levels and checks the resulting file size. It narrows in on the highest quality setting that still produces a file at or below your target. If quality alone can't reach the limit — say you're trying to fit a 4 MB photo into 40 KB — the tool may also reduce dimensions, since fewer pixels means less data to encode.
The process uses the browser's Canvas API to re-encode the image as JPG or WebP. Everything runs locally on your device. Your photo is never uploaded to a cloud server, which matters when the image is a passport photo, medical record, or any other sensitive document.
Results vary by image content. A simple headshot on a plain background compresses easily. A detailed landscape with lots of texture may need more aggressive downsizing to hit a very low KB target. The tool shows you the final size before you download so you can confirm it meets the requirement.
How to compress to a specific KB on Irreva
Open the Compress Image to KB tool. Drop your image into the upload area or click to select it. Enter your target size in kilobytes — for example, 50 for a 50 KB limit or 200 for 200 KB.
The tool processes the image in your browser and displays the result with the actual output file size. If it hits your target, download the compressed file. If the image can't reach the target without unacceptable quality loss, try cropping to remove unnecessary background or reducing dimensions first with the Image Resizer, then run it through the KB compressor again.
Supported input formats include JPG, PNG, and WebP. Output is typically JPG, which is what most upload forms expect. The entire workflow takes a few seconds for a single photo.
Tips for hitting tight KB limits without ruining quality
Crop before you compress. A passport photo doesn't need the full frame from your camera — crop tightly to the head and shoulders and you eliminate thousands of pixels that contribute nothing but file size.
Remove unnecessary background. If the requirement is a headshot on a white background, a plain backdrop compresses far better than a busy scene behind you. The Background Remover can help isolate the subject if needed.
Don't re-compress an already compressed file repeatedly. Start from the highest-quality original you have. Each round of lossy compression adds artifacts. If you miss the target on the first try, go back to the original rather than compressing the compressed output.
Check the actual requirement carefully. Some forms state KB limits but also specify minimum dimensions like 600×600 pixels. You may need to balance both constraints — use the Image Resizer for dimensions and the KB compressor for file size.
When a KB target isn't realistic
If your source image is a 12-megapixel photo and the limit is 20 KB, no compressor can preserve meaningful quality at that ratio. The tool will get as close as possible, but the result may look blocky or blurry. In those cases, the limit may assume a small, already-cropped headshot — not a full-resolution camera photo.
When quality matters more than hitting an exact number — for example, a portfolio image or a product photo — use the standard Image Compressor with a quality slider instead. Target-size mode is designed for compliance with upload limits, not for artistic quality.
If a form keeps rejecting your file even though it's under the KB limit, check whether it also restricts dimensions, aspect ratio, or format. Some portals only accept JPG, not PNG or WebP, regardless of file size.
