Compress Image to Exact KB

Shrink any image to a target file size — right in your browser. Your image never leaves your device.

Drag & drop an image here, or click to choose one

How it works: the image is drawn to a canvas and re-encoded. For JPEG and WebP we binary-search the quality setting, and shrink dimensions if quality alone cannot reach the target. PNG input is converted to the format you choose — PNG output is lossless, so it may not reach very small targets; JPEG is recommended for photos. Nothing is uploaded anywhere.