🗜️ Compress an image to 30KB
How it works in your browser
To hit 30KB, the tool re-encodes your image several times at different quality settings and runs a binary search: each pass picks a quality level, measures the resulting file size, then narrows in until it lands the highest quality that still stays at or under 30KB. If even the lowest quality is still too big, it keeps the smallest version it could make. All of this happens in a background worker on your device.
How target-size compression works
To hit 30KB, the tool re-encodes your image several times at different quality settings and runs a binary search: each pass picks a quality level, measures the resulting file size, then narrows in until it lands the highest quality that still stays at or under 30KB. If even the lowest quality is still too big, it keeps the smallest version it could make. All of this happens in a background worker on your device.
A target as small as 30KB suits simple graphics, icons, small thumbnails or low-resolution photos. For a full-resolution photo this is very aggressive, so the tool may also reduce the dimensions; expect visible softening.
You can output JPEG or WebP. WebP generally reaches a given target at higher visual quality than JPEG, so it is the better pick for hitting 30KB when your destination accepts WebP; choose JPEG when you need maximum compatibility.
How to compress to 30kb
- Drop your image (or click to choose).
- Click Compress to size - we search for the best quality under 30KB.
- Download the result, created locally.
FAQ
Are my files uploaded anywhere?
No. The whole process runs inside your browser. Your images never leave your device and nothing is sent to a server.
How do you compress to exactly 30KB?
The tool repeatedly re-encodes the image at different quality levels and keeps the best one that stays at or under 30KB.
Will quality drop?
It picks the highest quality that still fits your target size. Smaller targets mean more compression, so set a realistic size for your image.