Private, exact-size compression
Compress image to a specific size
Enter any KB limit and keep the highest useful quality that fits, with every image processed on your device.
Exact-size image compressor
Browser-only processing · six output formats
Your images never go to an upload server. Decoding, compression, previews, and ZIP creation happen on this device.
Advanced settingsDimensions, crop, quality
Dimensions never upscale. JPEG and BMP replace transparency with white. GIF output is static; animated GIF and WebP inputs use the first decoded frame.


A real before-and-after example
See what the size limit changes
This example starts as a detailed 3.30MB PNG and is processed by the same browser workflow used above. Fine texture is retained while the output stays under the selected 100KB ceiling.
- 01
Decode locallyNo image is sent to a server.
- 02
Search quality firstThe engine keeps the highest result that fits.
- 03
Resize only if neededDimensions change only when quality alone is not enough.
Ready-made limits
Pick the size your form asks for
Each landing page opens the same compressor with the target already selected. A custom KB value is always available.
Why this limit matters
Use the real limit, not a rough preset
Custom target mode is for forms and workflows that ask for an uncommon ceiling. Enter the stated KB value and the engine measures each candidate result before it approves the file.
If the destination rejects files at the exact boundary, set a small safety margin below its published maximum.
Where this target helps
Upload forms with uncommon maximum file sizes
Image performance budgets for a specific component
Batches that need one consistent maximum
Format support
Seven inputs. Six honest outputs.
The output picker includes JPEG, PNG, WebP, AVIF, GIF, and BMP. HEIC and HEIF remain input-only because mainstream browsers do not provide a reliable local HEIC export encoder.
| Format | Input | Output | Best use |
|---|---|---|---|
| JPEG | Yes | Yes | Best default for photographs and broad form compatibility. |
| PNG | Yes | Yes | Lossless output with full transparency. |
| WebP | Yes | Yes | Compact modern output with transparency. |
| AVIF | Yes | Yes | High-efficiency browser output powered by a local codec. |
| GIF | Yes | Yes | Static output; animated input uses the first decoded frame. |
| BMP | Yes | Yes | Uncompressed legacy output; dimensions may shrink to hit a limit. |
| HEIC / HEIF | Yes | Input only | Decoded locally, then exported to one of the six reliable formats. |
Compression method
Highest useful quality, without guessing
Search quality first
JPEG, WebP, AVIF, and GIF outputs search for the highest setting that stays below your custom limit.
Resize only when required
If encoding alone cannot reach the limit, the engine reduces dimensions and searches again. It never upscales.
Report the measured result
Every file shows its actual bytes, dimensions, savings, and whether the maximum was reached.
FAQ
Questions before you compress
What custom target sizes can I enter?
Enter any maximum from 5KB to 10MB. The result is measured in real bytes and marked successful only when it fits.
Can the compressor make a file larger?
No. The target is treated as a ceiling. The tool does not upscale or add data just to approach a larger number.
What if my form specifies a minimum and maximum?
Aim comfortably below the maximum while checking that the result still exceeds the stated minimum. This tool currently enforces the maximum only.
Why can PNG miss a very small target?
PNG is lossless, so encoder quality cannot be lowered. The tool must reduce dimensions, or you can switch to JPEG or WebP.
Private by design
Your images stay yours.
The compressor has no image upload API. Analytics never receives file names or image contents.