Compress Image to a Target Size in KB

Reduce a JPG, PNG, or WebP image to a specific upload limit. The tool adjusts image quality and, when necessary, dimensions to produce a file at or below your target.

Private by design: your image stays in this browser
Source image
Compression target
Choose an image to begin.
Your result will appear here

The browser searches for the highest usable quality that fits your selected KB limit.

How target-size compression works

The compressor tests several quality levels. If quality changes are not enough, it gradually reduces pixel dimensions until the output is within the selected limit.

Choose a sensible limit

Use the exact maximum shown by the website or form receiving your image. Extremely small targets can make detailed photos look soft or require much smaller dimensions.

JPG or WebP?

JPG works almost everywhere. WebP often creates smaller files at comparable quality, but an older upload system may accept only JPG.

Target-size image compression guide

This tool aims for a maximum file size rather than applying one fixed quality setting. It tests quality levels first and reduces dimensions only when necessary, which is useful for forms with strict image limits.

Best uses

  • Prepare profile photos for government, school, job, or account forms.
  • Reduce product images to a marketplace upload limit.
  • Create smaller email and support-ticket attachments.

Quality checks

  • Confirm the downloaded file is at or below the required KB limit.
  • Open the result at full size and check faces, text, and fine details.
  • Keep the original image in case you need a different target later.

Common mistakes

  • Entering a target far smaller than the image can reasonably support.
  • Using WebP when the receiving form accepts only JPG.
  • Deleting the original after creating a heavily compressed copy.

How target-size compression works

The browser first tests several quality levels while keeping the original dimensions. If quality changes cannot reach the requested limit, it gradually reduces pixel dimensions and tests again. This avoids shrinking the image earlier than necessary, although an unusually small target may still require a visibly smaller result.

Choose a realistic target

A profile photo can often tolerate more compression than a document scan containing small text. Start near the form limit, inspect the downloaded image, and lower the target only when required. For identification photos, check facial edges and background separation before submitting the file.

Quick answers

Will the result be exactly the number I enter?

The result is designed to be at or below the target. Exact byte size varies because image encoders produce discrete file sizes.

Why did the image dimensions become smaller?

When quality reduction alone cannot meet the target, reducing pixel dimensions is the next effective way to lower file size.