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

If a portal says “up to 250 KB,” choose Maximum 250 KB: the measured result must be at or below 250,000 bytes. If it says “approximately 250 KB,” choose Exact 250 KB: this tool accepts 245,000–255,000 bytes (±2%). For “100–250 KB,” choose Range with a 100 KB floor and 250 KB ceiling. Check the displayed final byte count before upload.

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 PNG and WebP are rejected; use a still image.
  • Very small targets can require dimension reduction. If no safe encoding meets the rule, the tool labels the closest result as failed; do not submit that download to a portal with a strict byte limit.

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.

Keep the pixel rule in view

A passing byte result may use smaller dimensions than the original. Compare the final width and height against the receiving form before downloading. If the form requires both fixed pixels and a strict byte ceiling, a result that reduced those pixels is not suitable.

PNG uses lossless compression and ignores the lossy quality slider used by JPG and WebP. For a PNG target, this tool can change dimensions; it does not perform palette quantization. For photos, a permitted JPG or WebP export often provides more control over bytes. Use the smallest change that leaves the image readable.