Runs in your browser

Compress an Image to 20KB

20KB is a tight ceiling: it suits thumbnails, avatars and small form photos, not full-size camera shots. This page runs the same local compression engine with the budget pre-set to 20KB, and it reports the real output size when the target cannot be met.

Nothing is uploaded. Processing happens on your device with no server round-trip.

Privacy: Canvas processing runs in this browser. Your selected files are not uploaded for this operation.

Settings

Only the options this page needs are exposed. Everything else is fixed to match the page intent.

Output contract

Accepted input
JPEG, PNG, WEBP
Output format
JPEG, WEBP
Size target
20 KB
Processing engine
Canvas + browser encoders
Batch limit
10 × 15.00 MB
Upload
None — files stay on this device

If the target cannot be reached the result shows the real output size instead of a false success.

No results yet

Recent Tasks

No history recorded yet

How to use this page

  1. 1Drop JPG, PNG or WebP files (up to 10 at a time). Nothing leaves your device.
  2. 2Pick the output format if the default JPEG does not suit you, then adjust the maximum edge if the photo is very large.
  3. 3Run the compression and check the reported output size before you download, especially when the target is tight.

What is different here

  • The encoder searches up to seven quality steps between 10% and your starting quality, keeping the largest file that still fits 20KB.
  • If quality alone is not enough it downscales to 80%, 60%, 45% and 30% of the fitted size, so small targets stay reachable for detailed photos.

Limits worth knowing

  • A 12-megapixel photo rarely reaches 20KB without visible softness. The page shows the actual size rather than claiming success.
  • PNG cannot honour a byte budget; choose JPEG or WebP when you need an exact ceiling.

Frequently asked questions

Can every photo reach exactly 20KB?▾
No. Quality is searched down to 10% and the image is then downscaled, but a very detailed photo can still finish above 20KB. You see the real output size before downloading.
Is 20KB enough for an ID or visa photo?▾
Some government portals ask for 20–50KB uploads. File size and pixel dimensions are separate requirements, so check both on the portal before you submit.
Does this remove EXIF metadata?▾
Re-encoding through Canvas drops most EXIF fields, including GPS coordinates and camera model, which is usually the safer default for public uploads.