Compress Image to Your Target Size — Never Over
Get as close as possible to your target size. Never exceeding it.
Pick a target in KB. TargetKB adjusts quality and resolution to land your image under it — not just "smaller", but as close as your file allows.
100% in your browser
Files never leave your device
Free · no signup · no watermark
How to compress an image to a target size
- Drop or select your JPG, PNG or WEBP file.
- Type your target size (e.g. 100 KB) or tap a quick preset.
- Hit compress and download the result. Your file is only ever processed in this tab.
Frequently asked questions
Will the result be larger than my target?
No. TargetKB guarantees the output is never above your target size. It pushes the file as close to the target as the image allows, and if the target is genuinely unreachable it returns the smallest compressible version it can.
Do you upload my image anywhere?
No. Everything happens locally in your browser using the Canvas API. Your image never leaves your device, which is why it keeps working even offline after first load.
Which formats can I compress?
JPG, PNG and WEBP are supported. Output is always JPEG. Transparent PNG areas are flattened to white (JPEG has no transparency).