Compress an image to any target size
This tool shrinks an image to a target file size you choose — from 50KB up to 1MB, or a custom value — while automatically finding the highest quality that still fits. Processing happens in your browser; your image is never uploaded anywhere.
- Free
- Unlimited
- No Uploads
- Works Offline
Why target a file size?
Most people compress an image online because a platform enforces a limit, not because they want to fuss over quality settings — a CMS might cap uploads at 1MB, while an email attachment or ad network might need something under 100KB. Targeting the exact size a platform expects avoids failed uploads and the quality loss that comes from guessing a quality percentage instead.
How it works
Step 1
Upload
Pick a JPEG, PNG, or WebP file. It stays on your device.
Step 2
Compress
Pick a target size — or enter a custom one — and the tool solves for the best quality that fits.
Step 3
Download
Save the compressed file straight from your browser.
Frequently asked questions
- Does this upload my image to a server?
- No. All compression happens locally in your browser using your device's own processing power. The image never leaves your computer or phone.
- What target sizes can I choose?
- Pick 50KB, 100KB, 200KB, 500KB, or 1MB, or enter a custom target in KB.
- Can I compress to an exact size?
- The tool aims to land at or under your target by solving for the best quality, and steps dimensions down if quality alone can't get there. Very detailed images or very small targets may not hit the target exactly — when that happens, the closest result is shown instead of failing.
- What image formats are supported?
- You can compress JPEG, PNG, and WebP files, and choose which format to output.
- Will compressing reduce quality?
- The tool searches for the highest quality setting that still fits your target size, so quality loss is minimized — smaller targets and highly detailed images will show more softening than larger ones.
- Is PublishFit free to use?
- Yes. There's no account, no subscription, and no limit on how many images you can compress — PublishFit is free to use, on this tool and every other one on the site.
- Can I use this on my phone?
- Yes. PublishFit works in any modern mobile browser — tap to upload a photo from your camera roll or files, and the compressed image downloads straight to your phone.
Where this helps
- Meeting a CMS or platform's upload size limit
- Keeping email attachments under a size cap
- Preparing images for an ad network's file-size rules
- Shrinking a photo library before archiving
Your files never leave your device
Every tool on this site processes images entirely in your browser. Nothing is uploaded, nothing is stored on our servers.Read our full privacy commitment.
