Compress Images to Your Exact Target Size in KB

How ExactKB Meets a File-Size Limit

Choose a maximum size such as 20KB, 100KB, 500KB or 1MB

ExactKB compresses JPG, PNG and WebP images entirely in your browser. Enter the maximum file size accepted by a form, email service or website, then download a result that stays at or below that limit whenever the selected minimum resolution allows it.

For JPG and WebP, ExactKB searches for the highest encoding quality that fits. If quality alone is not enough and Lower Resolution is enabled, it reduces the dimensions in controlled steps. PNG remains PNG to preserve transparency, so reaching a small target may require fewer pixels.

How to compress an image to a target size

  1. Choose an image - Select or drag in a JPG, PNG or WebP file.
  2. Set the limit - Pick a common size or enter a custom value in KB.
  3. Choose a strategy - Keep both quality and resolution optimization enabled for difficult targets.
  4. Compress - ExactKB tests the output size locally in your browser.
  5. Verify and download - Review the final bytes, format and dimensions before saving.

Target Size Limit

Finds a high-quality result that does not exceed your selected limit

Two-Step Search

Adjusts quality first, then resolution when the target requires it

Local Processing

Your selected image is processed on your device, not uploaded for compression

Three Formats

Supports JPG, PNG and WebP while keeping the original format

100% Free

No account, watermark or payment is required to use the compressor

Clear Results

See the output size, savings, resolution and format before downloading

Perfect For

  • Government document submissions and passport photos
  • Job application profiles and resume photos
  • College admission forms and student IDs
  • Website optimization and web page performance
  • Social media uploads (Instagram, Facebook, LinkedIn)
  • Email attachments and cloud storage optimization

Image compression FAQ

Does the result always equal the exact number of KB?

The target is treated as a maximum. Image encoders produce discrete file sizes, so the result may be slightly below the number you enter but will not knowingly exceed it.

What happens if the target cannot be reached?

ExactKB stops at your minimum scale and tells you that the target was not reached. You can increase the target or allow a smaller resolution.

Why is PNG harder to compress to a small size?

Browser PNG encoding is lossless and does not respond to a quality slider. ExactKB keeps PNG transparency and reduces dimensions when that option is enabled.

Is my image uploaded?

No. The selected image is decoded and encoded by your browser. The site still uses separate analytics and advertising services as described in the privacy policy.