HEICtoJPG
Back to blog

How to Compress an Image to 200KB (100KB, 50KB, and 20KB Too)

6 min readReviewed by Feng Yuqing

Sources checked · How we research and test


Almost nobody compresses an image for fun. You're here because something has a hard limit: a visa portal that rejects anything over 240KB, a job board that caps résumé photos at 200KB, an exam registration that wants a signature under 20KB. This guide covers how to hit those targets — 200KB, 100KB, 50KB, 20KB — without turning your photo into mush.

The fastest way: compress in your browser

The simplest path is a browser-side compressor that never uploads your file. Open the image compressor, drop your JPG or PNG, and download the smaller version. For a typical phone photo, a single pass lands well under 200KB already — often under 100KB — because the tool re-encodes with MozJPEG, the same encoder services like TinyPNG benchmark against.

Because it runs entirely on your device, nothing is uploaded to a server. That matters when the image is an ID scan, a signature, or a document photo.

What actually controls file size

Three things decide how many kilobytes an image takes:

A curve of JPG file size against quality setting for one 1.8 MB photo: 132 KB at quality 40, 214 KB at 60, 430 KB at 80, 790 KB at 90 and 2.48 MB at 100. The curve is nearly flat below 70 and climbs steeply above 85, so a 200 KB target lands near quality 58 while quality 100 costs twelve times as much for no visible gain.
Measured on one 3024 × 4032 photo. The curve is the whole argument: quality 100 costs roughly twelve times the bytes of quality 40, and almost all of that is spent above 85 where you cannot see it.

Read the curve from the right and the mistake becomes obvious. Most people reach for 100 because it sounds safe, and it is the one setting that is guaranteed to blow your budget. The useful range for hitting a size cap is 55–75, where the line is still almost flat — you give up very little and get most of the saving.

Targets and how to reach them

TargetTypical useHow to get there
200KBVisa / passport uploads, most formsOne compression pass on a JPG is usually enough.
100KBProfile photos, forum avatarsCompress, and resize to ~1000px on the long edge if needed.
50KBSmall ID photos, thumbnailsResize to 600–800px, then compress as JPG.
20KBSignatures, exam-portal photosResize small (400–600px) and accept lower JPG quality.

Compressing to 200KB

This is the most common request, largely because the US DS-160 visa form caps photos at 240KB and many government portals settle around 200KB. For an ordinary photo you rarely have to do anything clever: drop it into the compressorand the output is almost always under the line. If it isn't, the file is either a PNG (convert to JPG) or very high resolution (resize it down).

Compressing to 50KB or 20KB

Very small targets are where dimensions matter most. You cannot squeeze a 12-megapixel photo into 20KB while keeping it full-size — there simply isn't enough room to store that many pixels. Resize first: for a 20KB target, drop to roughly 400–600px on the long edge, then compress as JPG. For 50KB, 600–800px is a good starting point.

Run the compressor, check the result, and if it's still over, resize a little smaller and try again. Two passes get almost everything under the limit.

JPG vs PNG when size matters

If your source is a PNG photo, converting it to JPG is often a 5–10× size reduction on its own. Keep PNG only when you need transparency or pixel-perfect text and lines (logos, screenshots, diagrams). For photographs headed to a size-limited upload, JPG wins every time.

Making an ID or passport photo?

If you're compressing because a government form wants a photo under 240KB, crop it to the right dimensions first. Our ID photo size tool makes a US 2×2 (600×600px), a 35×45mm photo, and other standard sizes — then compress the result here to slip under the file-size limit. See passport photo sizes by country for the exact dimensions.

The short version

  1. Use JPG for photos, not PNG.
  2. Drop the file into the browser image compressor— for 200KB that's usually all you need.
  3. For 50KB or 20KB, resize the image smaller first, then compress.
  4. Re-run once if you're still over the limit.

Sources and verification

Product steps and compatibility claims were checked against the primary documentation below. Measurements specific to this site use its current browser encoders and are sample-dependent.

  1. Image file type and format guide — MDN Web Docs
  2. Using images with the Canvas API — MDN Web Docs
  3. A new image format for the Web — Google for Developers

Need a free browser tool?

Everything runs on your device — no upload, no signup, no watermark.