FlowVidFlowVid.

June 1, 2026 · 7 min read

How to Compress an Image to Any Size in KB (10KB–1MB)

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

How we checked this: The targets below map to the limits we see most often across government, job and web upload forms; the technique reflects how a target-size compressor reaches an exact KB without manual quality guessing.

Online forms love exact file-size limits: a passport portal wants under 20KB, a job site caps photos at 100KB, an email won't take more than 1MB. Hitting a precise size by hand — export, check, adjust quality, repeat — is tedious and imprecise. Here's how file size actually works and how to land on any target in one step.

What controls an image's file size

Two things decide how many kilobytes an image takes: its dimensions (the number of pixels) and its compression level (how aggressively detail is discarded). To reach a small target you usually reduce both — shrink the pixels first, then fine-tune JPG quality. Lowering quality alone on a full-resolution photo creates blocky artefacts, which is why resizing first is the secret to a clean result.

Pick the right target

TargetBest forTool
10–20 KBSignatures, strict exam/govt photosCompress to 20KB
30–50 KBMost application & registration formsCompress to 50KB
100–200 KBWeb & blog images that stay sharpCompress to 100KB
500 KB – 1 MBEmailing or printing high-quality photosCompress to 1MB
Common KB targets by use case.

The one-step method

Instead of guessing, use a target-size compressor. Pick the exact size you need, drop your photo in, and it automatically searches for the highest quality that still fits under the limit — or use Reduce Image Size for a flexible reduction. Need an unusual number? Compress to a custom size lets you type any KB target. Everything runs in your browser; your file is never uploaded.

Tips to keep quality high

  1. Crop tightly before compressing — less detail compresses smaller.
  2. Use JPG for photos; PNG for graphics, text and transparency.
  3. Pick the largest size the form allows for a clearer image.
  4. Keep your original so you can re-compress to a different target later.

Frequently asked questions

How do I compress an image to an exact KB size?
Use a target-size compressor: pick the KB limit, upload the image, and it searches for the highest quality that fits. For very small targets, reduce the dimensions first.
Should I use JPG or PNG to hit a small file size?
JPG. It uses lossy compression that reaches small sizes far more efficiently than PNG, which is lossless and stays large for photos. Use PNG only for graphics or transparency.
Can I compress to a size that isn't a round number, like 35KB?
Yes — a custom-size compressor lets you type any target KB and fits the image under it automatically.
Next

More guides