Compress images to a target size online

Free — shrink JPG, PNG and WebP images to a target KB size. Nothing is uploaded and nothing touches a server: everything runs locally in your browser. No sign-up, private and secure, one-click download.

Click to choose an image, or drag one here

Supports JPG / JPEG / PNG / WebP, up to 10MB each; you can also press Ctrl+V to paste. Images are processed locally only

Choose image

Compress images to an exact target size

Online Image Compressor is a free, no-sign-up service that optimises image file size. It shrinks images to a specific KB size — perfect for places with hard upload limits, such as registration forms, ID photo uploads, e-commerce product images or forum attachments.

Unlike the usual fixed-ratio compression, this tool uses binary search on quality plus smart downscaling: it first finds the highest quality between 5 and 95 that fits your target size, and if the file is still too large it gradually shrinks the dimensions until the result lands within your target range.

Compression runs locally in your browser — images are never uploaded and never leave your device, and we never have access to them. Metadata such as EXIF (shooting location, device info) is stripped during processing, further protecting your privacy.

Compress in three steps

  1. Choose an image

    Click, drag or press Ctrl+V to add your JPG, PNG or WebP image — up to 10MB, processed locally from start to finish.

  2. Set the target size

    Enter the KB value you want or tap a quick-pick, then choose the output format and optional max width/height.

  3. Compress and download

    Click “Compress image”, compare the before/after and reduction, then download in one click.

Supported image formats

JPG / JPEG

The most universal photo format — small files and great compatibility.

PNG

Supports transparency; ideal for icons, screenshots and lossless needs.

WebP

Smaller files at the same quality — the best choice for maximum compression.

Frequently asked questions

Is this online image compressor free?

Yes, it is completely free, with no sign-up, login or usage limits. You can compress JPG, PNG and WebP images to a target KB size and download them any time.

How do I compress an image to a specific size (KB)?

After choosing an image, enter the KB value you want (e.g. 100, 200, 500) in the “Target size” field and click “Compress image”. The tool automatically adjusts quality and dimensions to fit within your target.

Which image formats are supported?

You can add JPG, JPEG, PNG and WebP files, and export as JPEG, PNG or WebP. If size matters most, WebP is recommended.

What if it can't reach the target size exactly?

When lowering quality alone isn't enough, the tool scales the image down step by step (up to 10 attempts). If the target still can't be met, it returns the closest result along with a notice.

Are my images uploaded to a server? Is it private?

No. All compression happens locally in your browser; images never leave your device and are never uploaded, stored or collected. You can even disconnect from the network and compression will still work.

Will the compressed image look blurry?

Compression adjusts quality within a controlled range; at reasonable target sizes the difference is almost invisible. The smaller the target, the stronger the compression and the more detail is lost, so aim for a balance between clarity and file size.

Privacy and security

We take your privacy seriously. All compression runs locally in your browser: images are never uploaded and never leave your device. The server only delivers the page itself and can neither see nor store your images. Compression even works offline. Metadata such as EXIF (shooting location, device info) is stripped during processing to further protect your privacy.

For more on cookies, third-party ads and analytics, see our Privacy.