Image Compressor to Size
Compress an image to a target file size, such as 100 KB, 500 KB or 1 MB. Adjust quality and optionally reduce dimensions, directly in your browser.
- Free · no account
- No file uploads
- Processed in your browser
Choose an image to compress
Drag and drop an image, or choose one from your device.
JPG, PNG, WebP and other browser-readable images
One image at a time · maximum 100 MB · 40 megapixels
Choose an image to get started.
Target file size
Targets are maximum limits, not exact padded sizes. KB = 1,024 bytes. JPEG replaces transparency with white. PNG uses dimension reduction rather than a quality slider. Animated files become one still image.
Compressed image ready
This creates a new image and does not preserve original EXIF or other embedded metadata. Check colors, detail and dimensions before using the copy.
No uploads. No server storage.
How to use Image Compressor to Size
Choose your image
Select a supported image. Its file size and pixel dimensions are shown before processing.
Set the maximum size
Enter a limit in KB or MB. Choose JPEG, WebP or PNG and decide whether smaller dimensions are acceptable.
Review and save
Check the actual output size and preview. Save your compressed copy; the original is unchanged.
Compress images to 100 KB, 500 KB or 1 MB
The tool searches for a suitable JPEG or WebP quality within your size limit. When resizing is enabled, it reduces pixel dimensions if needed. PNG compression has no lossy quality setting here, so smaller PNG files may require fewer pixels.
File sizes depend on image detail, dimensions, output format and your browser's encoder. If the requested size cannot be met with your settings, the result is clearly marked as over the limit. The original image is never overwritten.
Uses your browser's Canvas image encoder. No external image processing service is used.
Image Compressor to Size FAQ
Are my images uploaded?
No. Decoding, compression, previews and saving take place locally in your browser.
Can I compress to an exact number of bytes?
The tool aims for a file at or below your maximum limit. It does not add padding to make the size exact. A result may be substantially smaller than the target.
Will the image dimensions change?
Only when you allow smaller dimensions and quality adjustment alone cannot meet the limit. The final dimensions are always shown.
Which image formats are supported?
Input support depends on your browser. JPEG, PNG and WebP are common choices; AVIF, GIF and BMP may also open. RAW and HEIC decoding is not provided by this tool. Output is JPEG, WebP or PNG where supported.
Does compression preserve EXIF metadata?
No. The canvas encoder creates a fresh image, so original EXIF, GPS and other embedded metadata are not carried over. Browser-generated encoding information can remain.
What happens to transparency and animation?
WebP and PNG can keep transparency. JPEG uses a white background. Animated input is reduced to one decoded still image; this is not an animation compressor.