FlowVidFlowVid.

May 9, 2026 · 6 min read

How to Reduce an Image to 20KB Without Losing Quality

By The FlowVid Team, Image tooling engineers·Last updated June 22, 2026

How we checked this: The approach below reflects how our own compressor works on real photos: it resizes first, then runs a binary search on JPG quality to find the largest file that still fits the target.

Getting an image down to 20KB feels impossible when your phone photos are 5MB — that's a 250× reduction. The good news: with the right approach the result still looks perfectly acceptable, especially for the passport-style ID photos that usually need this size. The mistake most people make is lowering JPG quality on a full-resolution image, which produces ugly blocky artefacts. The fix is to reduce *dimensions* first.

Why 20KB is hard

File size is driven by two things: the number of pixels (dimensions) and how aggressively those pixels are compressed. To reach 20KB you almost always need to reduce both. A 12-megapixel photo has 12 million pixels to store; shrink it to roughly 0.5 megapixels and you've already removed most of the weight before compression even starts.

What dimensions fit 20KB?

Longest edgeRealistic size at good qualityGood for
1200 px≈ 120–250 KBWeb images
800 px≈ 40–90 KBMost form uploads
600 px≈ 20–45 KBPassport / ID photos
400 px≈ 10–20 KBStrict 20KB limits
Rough guide for a typical photo saved as JPG. Busier images need smaller dimensions.

The reliable method

  1. Crop the photo to just what you need (e.g. head and shoulders).
  2. Resize the longest edge to around 600 px with Reduce Image Size.
  3. Export as JPG and let a target-size tool fine-tune the compression to fit 20KB.

Our Compress Image to 20KB tool automates the last two steps — it intelligently downsizes and runs a quality search until your image fits under 20KB, in seconds, entirely in your browser.

Frequently asked questions

How do I reduce an image to 20KB without losing quality?
Crop tightly, resize the longest edge to about 600px, then compress as JPG with a target-size tool. Resizing before compressing avoids the blocky artefacts you get from lowering quality alone.
Why does my image look blocky after compressing to 20KB?
Because the dimensions are too large for the target, forcing the compressor to use very low quality. Reduce the pixel dimensions first, then compress.
Is 20KB enough for a passport photo?
Yes — passport-style head-and-shoulders photos are simple enough to look fine at 20KB, especially around 600px. For detailed images, prefer a larger limit if allowed.
Next

More guides