# Compress image to 2 MB

> Compress an image to 2 MB online for document portals, online marketplaces and email. The JPG stays as sharp as the limit allows. Free, no upload.

URL: https://nibbo.org/en/compress-image-to-2mb/

## Where a 2 MB limit comes from

2 MB limits come from document portals, marketplaces and email signatures that accept larger images.

At 2 MB a photo can keep 2000–4000 px and high JPG quality, so it still prints well.

## 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

### Will the file be exactly 2 MB?

It will be just under 2 MB, never over, so the form accepts it.

### 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

- [Compress image to an exact size](https://nibbo.org/en/compress-image/)

### 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/)

### 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/)
