# Image Target Size

To get an image under 200 KB, 1 MB or another limit, pick the target and add the image. The best-looking JPEG or WebP that fits is found automatically: quality is lowered first, and pixels are reduced only if that is not enough. Nothing is uploaded.

- URL: https://tools.itlibra.com/en/image-target-size
- On-device・No upload
- Last updated: 2026-11-27

## How to use

1. Choose the target size (100 KB / 200 KB / 500 KB / 1 MB / 2 MB, or enter a custom value).
2. Drop images or click “Choose files” (multiple supported). Processing starts immediately.
3. Check the resulting size, quality and dimensions in the list. Use “Compare” to inspect against the original.
4. After changing the output format or the max image size, click “Redo with these settings”.
5. Download images one by one or all at once as a ZIP.

## Use cases

- Meet a “file must be under 200 KB” rule on application, job or government forms
- Fit phone photos under an email or chat attachment limit
- Adjust ID photos or identity documents to an upload limit
- Bring many images to the same size limit in one go

## What it does

### Finds the best quality under the limit

A binary search over quality 45–92 finds the highest quality that fits. Every step measures the real JPEG / WebP output size, so the result is guaranteed to fit, not estimated.

### Downsizes only when quality is not enough

If even quality 45 is too big, the long edge is reduced by about 15% per step and the search repeats. Losing pixels is the last resort.

### Already small enough? Left as is

JPEG / WebP files already under the limit are output unchanged by default (switchable). You can also let a PNG stay PNG when lossless optimisation brings it under the limit.

### See what was achieved

For each file: final size, quality, dimensions before and after, and number of tries — plus a before/after slider.

### Batch and ZIP

Process up to 200 images at once. Failures do not block the rest, and a report.csv can be added to the ZIP.


## Supported formats

### Input

- JPEG (.jpg / .jpeg / .jfif)
- PNG
- WebP
- AVIF
- GIF (still)
- BMP

### Output

- JPEG
- WebP
- PNG (only when lossless optimisation fits it)


## Capability matrix

| Feature | Support | Notes |
| --- | --- | --- |
| 100 KB / 200 KB / 500 KB / 1 MB / 2 MB and custom limits (1 KB–100 MB) | Supported | — |
| Automatic search for the highest quality under the limit (quality 45–92) | Supported | — |
| Automatic downsizing when the quality floor is not enough | Supported | Down to about 200 px on the long edge |
| Max long edge, batch processing, ZIP, report.csv | Supported | Up to 200 files, 50 MB each |
| Before/after comparison slider | Supported | — |
| Keep PNG while under the limit | Partial | Only when lossless optimisation (no quality change) brings it under the limit (if you set a longest-edge limit, the image is resized to it first), even if the original was over; otherwise converted to JPEG / WebP |
| Hitting the target size exactly | Not supported | Outputs the highest quality that is at or under the target, so it is rarely exact |
| Changing the quality floor (45) | Not supported | Fixed to protect quality; the remainder is handled by downsizing |
| Animated GIF / APNG / animated WebP | Not supported | Not processed, to avoid losing the animation |
| Keeping EXIF and colour profiles | Not supported | EXIF (including GPS) is removed and output is sRGB, except for files kept as they are, which keep their EXIF |
| HEIC (iPhone photos) | Supported | Works in any browser (outside Safari, a \~1.5 MB decoder loads once) |

## Limits & notes

- Up to 50 MB per file, 200 files per batch and 100 megapixels per image.
- Targets count 1 KB as 1,000 bytes, so the result also fits a site that counts 1,024.
- If the image still does not fit after shrinking to about 200 px on the long edge, it is shown as failed. Raise the target or crop first.
- Text and line art degrade quickly at low quality. Check with “Compare”.
- Transparent areas become the chosen background colour (white by default) when saving as JPEG.
- Uses your device’s CPU and memory; large images can take a few seconds.

## Privacy & safety

Reading, compressing and zipping all happen inside your browser. Images are never sent to or stored on a server. Only the compression engine (WebAssembly) is downloaded the first time you use it.

## FAQ

### How do I make an image under 200 KB?

Choose “200 KB” as the target and add your image. The tool finds the highest JPEG / WebP quality that fits in 200 KB and shrinks the dimensions only if lowering quality is not enough.

### How much quality will I lose?

It depends on the gap between the original size and the target. The list shows the achieved quality (45–92) and whether the image was shrunk, and “Compare” shows it next to the original. The tighter the limit, the more quality and pixels are lost.

### Is a KB 1,000 or 1,024 bytes?

This tool counts 1 KB as 1,000 bytes (200 KB means at most 200,000 bytes), so the result fits whichever way the site you upload to counts. Pick the limit as it is.

### Can I keep a PNG?

PNG has no quality setting to tune, so it is output as PNG only when lossless optimisation (colours unchanged) brings it under the target (switchable); if you set a longest-edge limit, the image is resized to it first. That can happen even if the original was over the limit, but not for every PNG. Otherwise it is converted to JPEG / WebP.

### Is the location data (EXIF) removed too?

Images that are re-encoded lose their EXIF, including location. An image that already fit and is returned as it is (the “keep original” setting) keeps its EXIF. To be sure location data is gone, check it with the image metadata cleaner.

### Should I compress an image or resize it?

Use this tool when the requirement is a file size such as under 200 KB. For JPEG / WebP it adjusts quality when needed and reduces the dimensions only if that is not enough. Use Batch Image Resizer for width or height requirements, and Crop, Pad & Canvas for an aspect ratio requirement. A tight size limit may reduce the dimensions, so check the saved file’s byte size, width and height.

### Are my images uploaded?

No. All processing happens in your browser; images never leave your device.
