Image Compressor to Size
Compress a JPG, PNG, or WebP image to an exact target file size in KB. Iteratively re-encodes until the result fits.
Image Compressor to Size — Most image compressors let you pick a quality, but not a target size. This one does the opposite: you pick a size (e.g. 100 KB), and the tool iteratively re-encodes the image at decreasing quality until the result fits.
Your image never leaves the browser. Compression happens locally in JavaScript.
Was Image Compressor to Size useful?
What is image compressor to size?
Most image compressors let you pick a quality, but not a target size. This one does the opposite: you pick a size (e.g. 100 KB), and the tool iteratively re-encodes the image at decreasing quality until the result fits.
It runs entirely in your browser. The image never touches a server, so you can compress sensitive photos without uploading them. Supports JPG, PNG, and WebP output, and can also reduce dimensions if quality alone is not enough.
How to use it
-
Choose an image
JPG, PNG, or WebP, up to 25 MB.
-
Set a target size
In kilobytes. Common: 100 KB for email, 50 KB for avatars, 20 KB for thumbnails.
-
Pick output format
WebP usually gives the smallest file at a given quality.
-
Click Compress
The tool re-encodes iteratively and shows the result.
Examples
Compress a 4 MB photo to 200 KB
A real use case: shrinking a phone photo to attach to an email.
4 MB JPG → 200 KB target
Result: ~120 KB JPG, quality ~0.45, no resize needed
Frequently asked questions
Related tools
Image Compressor
Shrink image file size with quality and format control, and see the savings before you download.
Image Resizer
Resize images to exact pixel dimensions with optional aspect-ratio lock.
WebP Converter
Convert JPG or PNG images to modern WebP for much smaller files.
JPG to PNG
Convert JPG images to lossless PNG — entirely in your browser.