DoraPDF / Blog

How to Compress an Image to 20 KB, 50 KB or 100 KB (Without Making It Unreadable)

By the DoraPDF team · 4 min read · Updated 2026-11-25
How to Compress an Image to 20 KB, 50 KB or 100 KB (Without Making It Unreadable)

Online application forms love strict limits: "photo must be under 50 KB", "signature max 20 KB", "upload JPG below 100 KB". When you search for how to compress an image to 50 KB (or 20 KB, or 100 KB), most tools give you a slider and hope for the best. A more reliable approach is to understand the two things that actually decide file size, then use them in the right order.

What decides an image's file size

Two things matter most:

  1. Pixel dimensions. A 4000 × 3000 phone photo has 12 million pixels. A 600 × 450 version has about 270,000. Fewer pixels means far less data, before any compression is applied.
  2. Compression strength. JPG compression throws away detail the eye is unlikely to notice. Stronger compression gives smaller files, but too much creates blocky patches and fuzzy text.

Content matters too. A plain passport-style photo on a light background compresses much better than a busy street scene full of leaves and texture. That is why no tool can promise that "800 pixels always equals 50 KB". You aim, check, and adjust.

The key lesson: for small targets, reduce the pixel size first. Trying to squeeze a full-size phone photo down to 20 KB with compression alone produces a smeared mess. Shrink it to a sensible size and it reaches the target with much lighter compression.

Step 1: Resize to a sensible pixel size

Open the Image Resizer and upload your photo.

Rough starting points to try (always check the result):

If the form states required dimensions, use those instead. They matter more than any rule of thumb.

Step 2: Compress and check the size

Now open the Image Compressor and upload the resized file.

  1. Set Resize to Original size, because you already chose the dimensions.
  2. Pick a Strength: Light, Balanced (default) or Strong.
  3. Click Compress and look at the result line. It shows the new file and how much smaller it got. Download it and check the exact size in your file manager (on Windows: right-click → Properties; on a phone: file details).

If it is still too big, go one step stronger. If Strong still is not enough, go back to the resizer, reduce the width by 20–25%, and compress again. If it is far below the limit, use a lighter setting or a larger width. A 35 KB file for a 100 KB limit is wasting quality you are allowed to keep.

A note on PNG files

If you upload a PNG to the compressor, it is saved as WebP, which keeps transparency at a much smaller size. Many government and university forms only accept JPG, though. For those, first convert the image to JPG in the resizer (Output: JPG), then compress the JPG.

Hitting 20 KB for a signature

Signatures are a special case because they are mostly white paper with thin lines. Two tips:

Common problems and fixes

"File size exceeds limit" even though my file looks small. Some portals count 1 KB as 1,000 bytes, others as 1,024. Leave a margin: aim for 45 KB when the limit is 50 KB.

The portal says the format is invalid. Check the extension. If you uploaded a PNG to the compressor, the output is WebP, which many forms reject. Convert to JPG first.

The face looks blotchy. Compression is too strong for the pixel size. Make the image smaller and use a lighter strength instead; that usually looks cleaner.

The form also wants specific dimensions. Resize to those exact pixels first. Size in KB and size in pixels are separate requirements, and both have to pass.

Text in a scanned document became unreadable. For documents with text, keep the width higher and use Light or Balanced. If the form accepts PDF, a compressed PDF is often a better choice than a tiny JPG.

Privacy

Both tools run in your browser. Your ID photo, signature or certificate scan is processed on your own device and never uploaded to our server, which matters for documents like these.

FAQ

Can I compress an image to an exact size like 50 KB? No tool can hit an exact number for every image, because file size depends on content. Resize first, compress, check, and adjust one step at a time. It usually takes one or two tries.

Does compressing reduce quality? JPG compression removes some detail. At sensible sizes the difference is hard to see; problems only appear when a large image is forced into a tiny file.

Should I use JPG or PNG for a small file size? JPG for photos. PNG is lossless and usually several times larger for the same photo.

Can I compress many photos at once? Yes. Both the resizer and the compressor accept several files in one go and use the same settings for all of them.

Try the tools from this guide — free

Keep reading

Guide

Product Photos With a White Background for Your Online Store (Free, From Your Phone)

Make clean white-background product photos for Shopify, Etsy, Daraz or Amazon: shoot, remove the background, resize and compress, all free in your browser.

Guide

Online Job Application Documents: Get Your Photo, CNIC and Degree Scans to the Right Size

Job portal rejecting your files? Prepare your photo, CNIC and degree scans in the right format and KB size, step by step, free in your browser.

Guide

Resize a Photo to Passport Size and Reduce KB for Online Forms

Crop, resize and compress a passport-size photo to the pixels and KB an online form asks for, with an optional white background. Free and private.