20 KB vs. 20 KiB: Why Units Matter
Understanding decimal kilobytes, binary kibibytes, and why web upload portals reject files.

The Two Standards for Measuring File Size
1 Kilobyte (KB) = 1,000 Bytes
Used by networking standards, storage drive manufacturers, macOS, and strict web application backends.
1 Kibibyte (KiB) = 1,024 Bytes
Used in memory addressing and legacy Windows File Explorer displays (often mislabeled as "KB").
Why Portal Uploads Fail
When a government portal, university application, or passport verification gateway specifies "Max file size: 20 KB", its backend script typically checks:
if (uploadedFile.size > 20000) { reject("File size exceeds 20 KB limit."); }If an image is compressed to 20.2 KB (20,200 bytes) or 20 KiB (20,480 bytes), the computer operating system might display it as "20 KB", but the portal validator reads 20,480 bytes > 20,000 bytes and immediately rejects the submission.
Decimal Standard: Verified ≤ 20,000 Byte Limit
On this website, "20 KB" strictly means 20,000 bytes. Every single output image is verified to ensure its actual byte length is less than or equal to 20,000 bytes before a download button is presented.