KeepLocalHubGet the app
Explore more

Home / Learn

Module 5: Forms, uploads and file-size limitsLesson 21 of 255 min read

KB or KiB? Why file size limits are ambiguous and how to stay safe

A form asks for a photo 'between 20 KB and 50 KB'. Your computer says the file is 50 KB, the form says it is too big. Another device shows the same file as 49 KB. Nothing is broken: the word kilobyte has two meanings, and different software picks different ones. This guide explains where the two meanings come from, why the numbers you see can disagree, and a simple rule that keeps a file inside a range whichever meaning the form uses.

Two meanings of one word

In the metric system, kilo means 1000: a kilometre is 1000 metres. By that rule a kilobyte is 1000 bytes and a megabyte is 1,000,000 bytes.

Computer memory, however, comes in powers of two, and 2 to the power of 10 is 1024, close to 1000. For decades a lot of software used kilobyte for 1024 bytes and megabyte for 1024 × 1024 bytes, while still writing KB and MB.

To end the confusion, the International Electrotechnical Commission (IEC) approved separate names for the binary units in December 1998. NIST, the US standards institute, lists them alongside the decimal ones.

  • 1 kilobyte (kB) = 1000 bytes; 1 kibibyte (KiB) = 1024 bytes.
  • 1 megabyte (MB) = 1,000,000 bytes; 1 mebibyte (MiB) = 1,048,576 bytes.
  • 1 gigabyte (GB) = 1,000,000,000 bytes; 1 gibibyte (GiB) = 1,073,741,824 bytes.

Why devices show different sizes

The new names are precise, but they are not used everywhere. Some software still divides by 1024 and labels the result KB or GB. Apple's support article on storage explains that drive makers count in decimal, while some software counts in binary, and it names iOS 10 and earlier and OS X Leopard and earlier as examples of systems that reported capacity in binary. That is why the same drive or file can show different numbers on different systems.

The gap grows with each step: about 2.4 percent at the kilo level, about 4.9 percent at mega and about 7.4 percent at giga.

One file, two labels

A file of 50,400 bytes. Divided by 1000: 50.4, shown as 50 KB. Divided by 1024: about 49.2, shown as 49 KB. Both are correct, and neither tells you whether the file is under a 50,000-byte limit.

Why a form's '50 KB' is ambiguous

Most upload forms state a limit in KB without saying which kind. The check behind the form compares an exact number of bytes, and the person who wrote it chose either 1000 or 1024. You usually can't tell which from the page.

Rounding adds a second trap. A file manager that shows '50 KB' may be hiding 50,400 bytes, which fails a 50,000-byte limit. So the displayed figure is not enough when you are close to the edge. Look for the exact byte count in the file's information or properties window where your system shows one.

The safe window for a range

You don't need to know which meaning the form uses. Pick the stricter reading at each end of the range.

  • For the maximum, count 1 KB as 1000 bytes. A file under max × 1000 bytes is also under max × 1024.
  • For the minimum, count 1 KB as 1024 bytes. A file above min × 1024 bytes is also above min × 1000.

A 20–50 KB photo

Stay above 20 × 1024 = 20,480 bytes and under 50 × 1000 = 50,000 bytes. Any file between 20,480 and 50,000 bytes passes whether the form counts in 1000s or 1024s. For a 10–20 KB signature, the window is 10,240 to 20,000 bytes.

What our tools count

The image compressor's Make every file smaller than setting counts 1 KB as 1000 bytes, so a result under the limit fits both readings of a maximum. The guide on image file size for online forms explains how it gets there.

The Photo and signature resizer handles ranges. It aims above the minimum × 1024 bytes and under the maximum × 1000 bytes, so either meaning of KB passes. It has presets for forms such as the US Diversity Visa photo, IBPS, UPSC, NTA and SSC uploads, plus Custom: my own pixels and KB range for anything else.

Small, clean images can come out below a minimum even at the best quality. In that case the resizer adds an empty comment block inside the JPG to reach it. The picture itself doesn't change.

When you are still rejected

If a file inside the safe window is refused, the size probably isn't the reason. Check the other rules: the format (many forms take JPG only), the pixel dimensions, and the file name. Read the form's instructions again, since no tool can promise that an authority will accept a file.

Pick your form's preset, or enter your own pixels and KB range, and get a file inside the safe window for both meanings of KB.

Photo and signature resizer

Quick check

Three questions. Pick an answer to see why.

  1. A form allows 'up to 100 KB'. Which file is safe whichever way it counts?

    Show the answer

    Answer: 99,500 bytes It is under 100,000 bytes, so it also fits the larger 102,400-byte reading.

  2. A form needs at least 20 KB. Which minimum is safe for both meanings?

    Show the answer

    Answer: More than 20,480 bytes 20 × 1024 is the stricter reading for a minimum, and it also beats 20,000.

  3. Why can one device show a file as 50 KB and another as 49 KB?

    Show the answer

    Answer: One divides the byte count by 1000, the other by 1024 50,400 bytes is 50.4 thousand but only about 49.2 lots of 1024.

Rules change

File formats and official photo rules change. Each guide shows the date it was last checked; for forms and official photos, the authority's own page has the final word.

Sources

Last checked October 27, 2026

Free tools for files you have the right to use. Everything runs on your device; check important results (forms, prints, official photos) before you send them. Terms of use.