# Compress image to an exact size

> Compress an image online free to the exact KB or MB a form needs: 20 KB, 50 KB, 100 KB or any size, with presets for SSC, PAN, UPSC and CPNS. No upload.

URL: https://nibbo.org/en/compress-image/

## How it works

1. We binary-search the highest quality that fits under your limit, so the picture stays as sharp as the limit allows.
2. If even low quality is too big, we shrink the pixel size step by step instead of making the image blocky. Portal presets with fixed pixel sizes keep those exact pixels.
3. If a portal sets a minimum size and the image is too simple to reach it, we pad the JPG with an invisible comment.
4. EXIF data such as GPS location is removed by default. Batches download as a ZIP.

## Questions

### Is my photo uploaded?

No. Decoding, resizing and compression run in your browser on this device. Open DevTools and watch the Network tab while you compress.

### Why is my 50 KB file shown as 48.8 KB?

Portals disagree on whether 1 KB is 1000 or 1024 bytes. We stay under 50 000 bytes so the file passes either way.

### Are the portal presets official?

Each preset lists its source. Presets marked "check notice" come from guides rather than an official page, so compare them with your notification.

## Related

- [Image converter](https://nibbo.org/en/image-converter/)

### Compress to a size

- [Compress image to 10 KB](https://nibbo.org/en/compress-image-to-10kb/)
- [Compress image to 20 KB](https://nibbo.org/en/compress-image-to-20kb/)
- [Compress image to 30 KB](https://nibbo.org/en/compress-image-to-30kb/)
- [Compress image to 50 KB](https://nibbo.org/en/compress-image-to-50kb/)
- [Compress image to 100 KB](https://nibbo.org/en/compress-image-to-100kb/)
- [Compress image to 200 KB](https://nibbo.org/en/compress-image-to-200kb/)
- [Compress image to 500 KB](https://nibbo.org/en/compress-image-to-500kb/)
- [Compress image to 1 MB](https://nibbo.org/en/compress-image-to-1mb/)
- [Compress image to 2 MB](https://nibbo.org/en/compress-image-to-2mb/)

### Convert formats

- [Convert HEIC to JPG](https://nibbo.org/en/heic-to-jpg/)
- [Convert HEIC to PNG](https://nibbo.org/en/heic-to-png/)
- [Convert WebP to JPG](https://nibbo.org/en/webp-to-jpg/)
- [Convert WebP to PNG](https://nibbo.org/en/webp-to-png/)
- [Convert PNG to JPG](https://nibbo.org/en/png-to-jpg/)
- [Convert JPG to PNG](https://nibbo.org/en/jpg-to-png/)
- [Convert JPG to WebP](https://nibbo.org/en/jpg-to-webp/)
- [Convert PNG to WebP](https://nibbo.org/en/png-to-webp/)
- [Convert AVIF to JPG](https://nibbo.org/en/avif-to-jpg/)
- [Convert AVIF to PNG](https://nibbo.org/en/avif-to-png/)
- [Convert JPG to AVIF](https://nibbo.org/en/jpg-to-avif/)
- [Convert JPEG XL to JPG](https://nibbo.org/en/jxl-to-jpg/)
- [Convert JPEG XL to PNG](https://nibbo.org/en/jxl-to-png/)
- [Convert JPG to JPEG XL](https://nibbo.org/en/jpg-to-jxl/)
- [Convert PNG to JPEG XL](https://nibbo.org/en/png-to-jxl/)

### More tools

- [Compress PDF](https://nibbo.org/en/compress-pdf/)
- [Audio converter](https://nibbo.org/en/audio-converter/)
- [Video converter](https://nibbo.org/en/video-converter/)
