Loading ATSoftTech Convert…

Skip to content

Compression6 min read

How to Compress an Image to a Target Size (20–200 KB)

Hit platform file-size limits with target-size compression: quality search, optional resize, and format tips for JPG, WebP, and AVIF.

Many forms, job portals, and email systems reject images above a fixed size such as 20 KB, 50 KB, 100 KB, or 200 KB. Quality sliders alone often miss that limit. Target-size compression searches for the highest quality that still fits under the cap.

When target size beats a quality preset

  • A website says “max 20 KB”, “max 50 KB”, “max 100 KB”, or “max 200 KB”.
  • You have a mixed batch of photos and need every file under one limit.
  • Balanced quality still produces files that are too large.

Compress to 20 KB

Compress to 50 KB

Compress to 100 KBOpens Target Size mode at 100 KB.

Compress to 200 KB

For passport framing plus a KB limit, see passport and job application photos.

How target-size compression works

  1. You pick a limit (for example 100 KB) and an output format.
  2. The tool tries high quality first, then lowers quality until the encoded file fits.
  3. If quality alone is not enough and resize is allowed, dimensions can shrink while keeping aspect ratio.
  4. You download the smallest successful result that still looks acceptable in the preview.

Format tips for tiny limits

WebP or AVIF often beat JPG for the same visual quality under a 100 KB cap. Keep JPG when the upload form only accepts JPEG. Avoid PNG for photographic target-size jobs—lossless PNG is usually too large.

For a general quality-first workflow without a hard byte limit, see how to compress without losing too much quality.

Resize before you chase bytes

A 4000-pixel phone photo displayed at 800 pixels wastes space. Cap width with Image Resizer or percentage / max-edge resize, then run target-size compression. That usually keeps more detail at the same byte budget.

FAQ

Common questions

Why can’t every photo reach 100 KB?

Very detailed or high-resolution images may need more aggressive quality or a smaller pixel size. Target-size mode finds the best quality that still fits; if you disallow resize, some files cannot meet a tiny limit.

Is target size the same as quality 80?

No. A fixed quality ignores the byte limit. Target-size mode adjusts quality (and optionally dimensions) until the file is at or under your limit.

  • Compress to 20 KBCompress an image to 20 KB or smaller for strict form uploads.
  • Compress to 50 KBCompress an image to 50 KB or smaller for job and exam portals.
  • Compress to 100 KBCompress an image to 100 KB or smaller when that size is possible.
  • Compress to 200 KBCompress an image to 200 KB or smaller while keeping detail where possible.
  • Image CompressorSmart presets, target size, and batch optimization for JPG, PNG, WebP, and AVIF.