Compress Image to a Custom Size
Compress any image to an exact KB target you choose — 30KB, 75KB, 1MB, anything. Smart quality search keeps it sharp.
About the Compress to Custom KB
Some platforms demand unusual limits — 30KB forum avatars, 150KB marketplace photos, 800KB print forms. Enter any target in kilobytes and this tool searches quality and dimensions until it lands under your number, all inside your browser.
How it works
You set the target; the tool finds the encoding. It re-encodes your image repeatedly, measuring true output size each round, and narrows in on the largest quality value that still fits your custom KB limit. The result is the best-looking file that passes the size check.
How to use it
Add an image, type your exact target in kilobytes into the number field, choose JPG or WebP, and hit process. The output card confirms the achieved size — try the other codec if you want to compare which format looks better at that size.
Supported formats & limitations
Accepts .jpg, .png, .webp up to 30MB each, 10 files per run. Targets below ~20KB force visible quality loss on big photos; resizing dimensions alongside compression gives much better results for extreme targets.
Common use cases
Whenever an upload field names an arbitrary number — 75KB for a signature image, 300KB for a product shot, 1MB for a portfolio piece — this is the tool that hits it exactly, on-device, without trial-and-error exports from a heavyweight editor.
Frequently asked questions
Where are my images processed?
Everything runs locally in your browser via the Canvas API. Your picture never leaves your machine — there is no upload step at all, so processing is as private as working in an offline editor.
Can it open JPG, PNG and WebP files?
The common formats are covered — JPG, PNG or WEBP, each up to 30 MB. Queue them one batch at a time.
How many images can I process at once?
Batch runs take up to 10 files at once (30 MB each). There's no account, no daily quota and no watermark — process as many batches as you need.
Can I fine-tune the result before downloading?
Yes — settings include Target file size (KB), Output format. Each run regenerates the preview, so you can compare options before downloading.
Related tools
Image Compressor
Compress JPG, PNG and WebP images online for free — can significantly reduce file size. Private, no upload, instant results in your browser.
Compress PNG
Compress PNG files online with optional color reduction. Shrink PNG screenshots, logos and graphics while keeping transparency.
Compress JPEG
Compress JPG/JPEG photos online free. Fine-tune quality, keep photos sharp, and shrink files for email or web — no upload needed.
Compress WebP
Compress WebP images online free. Reduce WebP file size with a quality slider while keeping modern browser compatibility.
Resize to KB
Resize and compress until your image fits a KB target — smart search over dimensions and quality finds the best fit at or under your limit.
Resize to Dimensions
Force images to exact dimensions with fit modes: stretch, cover-crop or contain-pad. Control every output pixel.





