Guides9 min read

How to Reduce an Image to 20KB, 50KB or 100KB for Forms

Why online forms reject photos, which pixel sizes fit a 20KB, 50KB or 100KB budget, and how to hit the limit without blurring or renaming files.

By Published
A photo being compressed from several megabytes down to a 50 KB JPG for an online application form

Government portals, exam applications, job sites and college admission forms often cap uploads at a strict file size: 20 KB for a signature, 50 KB for a photo, 100 or 200 KB for a scanned document. A photo straight from a phone is usually 2 to 5 MB, which is 40 to 100 times too big. This guide explains what actually controls file size, which pixel dimensions are realistic for each budget, and the mistakes that cause a “valid-looking” file to be rejected anyway.

Quick answer: Convert the photo to JPG, reduce it to a sensible pixel size for the budget (roughly 480 to 920 pixels wide for 50 KB, as an estimate), then lower JPG quality until it fits. Set the target slightly under the limit, for example 48 KB for a 50 KB form, because some sites count 1 KB as 1,000 bytes. Always start from the original photo, not from an already compressed copy.

Why forms reject your photo

An upload form usually checks three things independently, and failing any one gives you an error:

  1. File size in bytes. This is the “max 50 KB” rule. It is about storage and bandwidth on the server side, not about how the photo looks.
  2. File type. Most forms want JPG (sometimes listed as JPEG), occasionally PNG or PDF. The check may look at the extension, the declared type, or the first bytes of the file.
  3. Pixel dimensions. Some forms also require something like “200 x 230 pixels” or “between 350 and 500 pixels wide”. If yours is outside that range, it fails even if the byte size is fine.

Read the instructions for all three before you start. Hitting the byte limit is pointless if the dimensions are wrong.

What determines the size of an image file

A JPG’s size depends on two things: how many pixels it has, and how many bytes each pixel costs after compression. The second number depends on the quality setting and on the content. A plain background compresses well. Hair, foliage, fabric texture and sensor noise from a dark room compress badly.

A useful rule of thumb for web-quality JPGs is 0.08 to 0.3 bytes per pixel. The low end is a simple, slightly soft image at moderate quality; the high end is a detailed photo at good quality. That gives a quick estimate:

Maximum pixels ≈ size budget in bytes ÷ bytes per pixel

Worked example: 50 KB

50 KB is 50 × 1,024 = 51,200 bytes. At a middle-of-the-road 0.15 bytes per pixel, that allows about 51,200 ÷ 0.15 ≈ 341,000 pixels. For a 4:3 photo, that is roughly 675 × 506 pixels. A 4000 × 3000 phone photo (12 million pixels) would have to be compressed to about 0.004 bytes per pixel to fit at full size, which is why it turns into blocky mush if you only lower the quality.

Estimated pixel dimensions per size budget

These numbers are estimates for a 4:3 JPG, calculated with the rule of thumb above. Your results will vary with content. Treat the left column as “safe for a detailed photo” and the right column as “possible for a simple image or lower quality”.

Size budget Bytes (1 KB = 1,024) At 0.3 bytes/pixel (detailed) At 0.08 bytes/pixel (simple)
10 KB 10,240 about 210 × 160 about 410 × 310
20 KB 20,480 about 300 × 225 about 580 × 440
30 KB 30,720 about 370 × 280 about 720 × 540
50 KB 51,200 about 480 × 360 about 920 × 690
100 KB 102,400 about 680 × 510 about 1,300 × 980
200 KB 204,800 about 950 × 720 about 1,850 × 1,390
500 KB 512,000 about 1,510 × 1,130 about 2,920 × 2,190

For a portrait photo, swap the numbers (for example about 360 × 480 instead of 480 × 360). A passport-style head-and-shoulders photo on a plain background sits near the “simple” end, so a 50 KB budget is comfortable at typical form sizes.

Quality vs dimensions: which to give up

There are two ways to make a file smaller, and they fail differently:

  • Lowering quality keeps the pixel count but throws away fine detail. Below a certain point you get blocky 8 × 8 squares, colour banding in skies and walls, and halos around edges.
  • Lowering dimensions keeps each pixel clean but there are fewer of them. On screen, a 600-pixel-wide photo looks sharp in a form preview; it only becomes a problem if someone zooms in or prints it large.

For forms, the second option is usually the better trade. A 600 × 800 photo at decent quality looks much better than a 3000 × 4000 photo crushed to quality 5. The exception is when the form dictates exact dimensions: then you keep those and adjust quality only.

In ResizeAny, the target file size option behaves accordingly. With width and height left on Auto, it lowers JPG, WebP or AVIF quality first and, if that is not enough, also reduces the pixel dimensions until the file fits. If you type specific dimensions, it keeps them and only searches the quality. If the target still cannot be reached at those dimensions, choose smaller ones.

The PNG vs JPG pitfall

PNG is lossless: it stores every pixel exactly, so there is no quality slider to turn down. That is ideal for screenshots and logos and terrible for photos. A photo saved as PNG is often several times larger than the same photo as a good JPG.

This matters in two ways:

  • If the form accepts JPG, convert your photo or scan to JPG. You will hit 50 KB at a far larger pixel size than PNG ever could.
  • A target file size cannot be applied to PNG output, since the only way to shrink a PNG is to remove pixels or simplify the picture. If the form insists on PNG and a small budget, reduce the dimensions until the file fits.

Signatures are a special case. A black signature on white paper, scanned and cropped tightly, compresses very well in either format. Crop away the empty paper first, since a large white margin still costs bytes and makes the signature tiny in the preview.

Common mistakes that get files rejected

Renaming the extension

Renaming photo.png to photo.jpg or photo.heic to photo.jpg does not convert anything. The bytes inside are unchanged. Some forms check the actual file contents and reject it; others accept it and the image then fails to display for whoever reviews your application. Convert the file properly instead. iPhone HEIC photos can be opened in ResizeAny and saved as JPG.

Re-compressing the same file again and again

Every time a JPG is re-saved at lower quality, it loses a bit more detail, and the artefacts add up. If your first attempt landed at 62 KB and you compress that result again, you get a worse image than doing it once from the original. Always go back to the original photo and run it once with the right target.

Counting KB the wrong way

There are two definitions in common use:

Unit Bytes 50 KB equals
Kilobyte (binary, 1 KB = 1,024 bytes) 1,024 51,200 bytes
Kilobyte (decimal, 1 KB = 1,000 bytes) 1,000 50,000 bytes

ResizeAny uses 1 KB = 1,024 bytes, as does Windows File Explorer. macOS Finder uses 1,000. A server that counts in thousands will see a 51,200-byte file as 51.2 KB and reject it. The fix is simple: aim a little under. A 48 KB target is 49,152 bytes, which passes either way.

Forgetting the minimum

Some forms also set a minimum size, such as “between 20 KB and 50 KB”. Pushing a photo down to 9 KB can fail just as easily as 120 KB. Check for both limits.

Shrinking a photo that is mostly background

If your face takes up a quarter of the frame, most of your byte budget is spent on the wall behind you. Crop to the head and shoulders first, then resize. The face gets more pixels for the same file size.

Step by step with ResizeAny

  1. Open the image resizer and drop in your photo. JPG, PNG, WebP, AVIF and HEIC are all accepted, up to 70 MB per file.
  2. If the form wants a particular framing, use Crop first. Rotate if the photo came out sideways.
  3. If the form gives exact pixel dimensions, type them into width and height in px. If it only gives a size limit, leave dimensions on Auto.
  4. Set the output format to JPG, unless the form asks for something else.
  5. Enter the target file size in KB, slightly under the limit (48 for a 50 KB form, 19 for 20 KB, 97 for 100 KB; each stays under the limit even if the site counts 1 KB as 1,000 bytes).
  6. Download and check the result: open it, zoom in on the face or text, and confirm the size in your file manager.

If you prefer a one-click setup, the resize to 50 KB, 20 KB and 100 KB presets have the target already filled in, and the file size presets cover other common limits. For several documents at once, such as a photo, a signature and an ID scan, bulk image resize handles up to 10 files per batch and gives you a ZIP. All of this runs in your browser, so the documents are never uploaded to us.

Pre-upload checklist

  • File type matches what the form asks for, converted rather than renamed
  • Pixel dimensions are inside the required range, if one is given
  • File size is under the maximum with some margin, and above any minimum
  • Face or text is still clearly readable at 100% zoom
  • Made from the original photo in one pass, not from a re-compressed copy
  • Cropped so the subject fills the frame, with no large empty borders

Honest limitations

Compression cannot recover detail that was never there. A blurry, dark or heavily zoomed phone photo will look worse at 20 KB than a sharp, well-lit one, whatever tool you use. If your result looks poor, retake the photo in daylight against a plain wall before blaming the compressor. And very small budgets, like 10 KB for a full-colour photo, force small dimensions; that is a limit of the format, not of the settings.

Try it

Pick the preset closest to your form’s limit, such as 50 KB or 20 KB, or use the main resizer and type your own target. If the form also has a photo specification, the ID card and document presets are a good starting point.

Related guides: JPG vs PNG vs WebP vs AVIF explains which format keeps a photo smallest at a given quality, and image size for print covers pixels, DPI and inches when the photo is going on paper instead of a form.

Frequently asked questions

Why does my 50 KB photo still get rejected by the form?▼
The form may count 1 KB as 1,000 bytes, so its limit is 50,000 bytes while a 50 KB file made with 1,024-byte kilobytes is 51,200 bytes. Aim for 48 KB to clear both definitions. Also check the pixel dimensions and the file type the form asks for, because those are checked separately from the size.
Can I make a PNG smaller than 50 KB?▼
Only by making it smaller in pixels or simpler in content, because PNG is lossless and has no quality setting to lower. For photos, converting to JPG is almost always the better route.
Is it better to lower quality or lower the pixel dimensions?▼
If the form specifies dimensions, keep them and lower quality. If it only gives a size limit, shrinking the dimensions to something sensible for the use (often 600 to 1,000 pixels on the long side) usually looks better than keeping a huge image at very low quality.
Does compressing in the browser upload my photo anywhere?▼
Not with ResizeAny. Decoding, resizing and encoding all happen on your device with WebAssembly, and the file never leaves your browser.

Written by

Niks builds ResizeAny, a free image resizer that runs entirely in your browser. These guides are based on how the tool actually behaves, and the numbers in them can be checked with the free tools on this site.

Keep reading