Image Tools

Compress Image to Exact KB

Compress JPG, PNG, and WebP images to an exact target, a hard maximum, or an allowed size range in your browser.

Use the tool

Prepare your file

JPG, PNG, WebP · up to 25 MB · 40 megapixels

Drop an image here

JPG, PNG, or WebP · up to 25 MB

Processed in this browser tab. No file upload is used.
Choose an image to start.

How it works

Three clear steps

  1. 01

    Choose a supported image.

  2. 02

    Select exact, maximum, or range mode and enter the size in decimal KB or MB.

  3. 03

    Process the file, review the verified result, and download it.

What this tool does

Each compression attempt is measured against the exact, maximum, or range rule you selected.

Accepted inputJPG, PNG, WebP · up to 25 MB · 40 megapixels
Processing locationThis browser tab
Account requiredNo
Output validationSignature, byte count, and tool constraints

How this result is produced

The compressor tests a controlled range of quality settings and reduces dimensions only when quality changes are not enough. It measures the finished file against the selected exact, maximum, or range rule before enabling the download.

Practical example

For a portal asking for a 250 KB photo, choose exact mode and 250 KB. A passing result may be close to that target rather than byte-identical because browser encoders work in quality steps.

Read the guide to pixels, PPI, format, and file-size terms

Limits and troubleshooting

  • Exact mode uses a ±2% tolerance because browser encoders expose quality steps, not exact byte control.
  • Metadata is removed during canvas re-encoding. Animated images are not supported.
  • Very small targets can require dimension reduction; impossible targets return an explanation instead of an oversized file.

If no version passes, the target may be too small for the image and chosen format. Try a maximum or range rule, reduce the dimensions, or export a fresh JPG, PNG, or WebP if the source cannot be decoded.

Questions people ask

What does KB mean here?

Exact Size Tools uses decimal units: 1 KB is 1,000 bytes and 1 MB is 1,000,000 bytes. The result also shows the exact final byte count.

Will maximum mode ever return a larger file?

No. The download is marked as passing only after the finished file is measured at or below the selected maximum.