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 compressor
Files stay on this device
Advanced settingsResize, crop, quality
Dimensions never upscale. JPEG fills transparent pixels with white. GIF and animated WebP inputs become a static first frame.
Ready when you are. No image data is sent over the network.
On-device processing
No image upload endpoint exists.
Measured output
Success uses the real output bytes.
Batch ready
Process 20 files and download a ZIP.
Pick the limit your form asks for
Every page uses the same private compressor with the target already selected. You can still enter a custom value at any time.
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.
Where this target helps
Upload forms with uncommon maximum file sizes
Image performance budgets for a specific component
Batches that need one consistent maximum
Highest useful quality, without guesswork
Search quality first
JPEG and WebP outputs use a binary search to find the highest encoder quality that stays below your custom limit.
Resize only when required
If quality alone cannot reach the limit, the engine reduces dimensions and searches again. It never upscales the source.
Show the honest result
Every download reports its measured bytes, dimensions, savings, and whether the requested maximum was reached.
Choose the right format
- JPEG
- Broadly accepted and efficient for photographs. Transparency becomes white.
- WebP
- Often smaller at similar quality and can preserve transparency.
- PNG
- Lossless and good for sharp graphics, but harder to fit under tiny limits.
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.
Your images stay yours
The compressor has no image upload API. Analytics, when allowed, records only page and tool events without file names or contents.
Compress images