A 2.4 percent gap that decides whether an upload works

Web forms, email services and content systems state upload limits in kilobytes or megabytes with decimal meaning, while many file managers show the size of the file in a binary unit. A file that looks safely under the limit in one tool can be over it in the other. The difference between KiB and kB is a fixed 2.4 percent, small enough to ignore in a casual estimate and large enough to cross a hard limit when the file sits close to it. This page applies the exact factor, so you can compare a file to a limit in matching units and avoid a rejected submission or a failed build.

Multiplying by 1.024 and dividing back

One KiB is 1,024 bytes and one kB is 1,000 bytes, so the number of kilobytes is the number of kibibytes times 1,024 / 1,000, or 1.024. The relation is kB = KiB × 1.024. Going the other way divides by 1.024, which gives 1 kB as 0.9765625 KiB. Since the byte count is the same on both sides, the conversion only changes how the bytes are grouped. The SI prefix kilo, defined in the BIPM SI Brochure, always means 1,000, and the IEC prefix kibi, listed in the NIST guide to the SI, always means 1,024. Writing each symbol correctly makes the two numbers unambiguous.

The 10 KiB example in kilobytes

Ten kibibytes converts to 10.24 kB, a difference of 0.24 kB, which is 240 bytes. The same ratio holds for any entry: 1,000 KiB equals 1,024 kB, and 64 KiB equals 65.536 kB. A compact way to apply it by hand is to add 2.4 percent to the kibibyte figure. For 500 KiB that gives 512 kB, since 2.4 percent of 500 is 12. Because the ratio ends after three decimals, the page returns results with no rounding, and it is easy to confirm them with a calculator or a spreadsheet formula multiplying by 1.024.

Staying under a 500 kB upload limit

Imagine a form that rejects attachments larger than 500 kB. A scan shown as 490 KiB in a Linux file listing holds 501,760 bytes, which is 501.76 kB, so the form turns it down. A scan of 488 KiB equals 499.712 kB and passes. The boundary sits at 488.28125 KiB, where the two units meet at exactly 500 kB. Entering the size from your file manager into this page before submitting saves a round of recompression. If the file is over, aim for a margin of a few kibibytes below the limit, since some systems count headers or encoding overhead in the total.

Windows, macOS and Linux disagree

The same file can display three different numbers. Windows divides by 1,024 and writes KB, Linux with human-readable flags divides by 1,024 and writes K, and macOS divides by 1,000 and writes KB. A firmware image of 512 KiB therefore reads 512 KB on Windows, 512K on Linux and 524.288 KB on a Mac, though it holds 524,288 bytes in every case. When you exchange sizes with a colleague on another system, share the byte count or name the unit explicitly. This converter provides the decimal reading from a binary one, which is the translation you need when a Windows or Linux user reports a file to someone working on a Mac.

Firmware, ROM images and embedded limits

Flash sizes in microcontrollers are powers of two, so datasheets often list 64 KiB, 128 KiB or 256 KiB, while a build tool prints image sizes in bytes. Vendors who write kB in marketing copy usually mean decimal. A 64 KiB part holds 65.536 kB, and a 256 KiB part holds 262.144 kB. If a requirements document says the image must stay under 250 kB, a 256 KiB part has enough raw capacity, with 12.144 kB of headroom once you compare the two in the same unit. Use the converter to settle which side of a limit an image falls on before committing a hardware choice.

Configuration files and command-line tools

Software uses both conventions, sometimes in the same program. An nginx setting such as client_max_body_size 512k means 512 KiB, because its k suffix counts 1,024 bytes, so the server accepts 524,288 bytes, which is 524.288 kB. GNU ls and du print sizes in powers of 1,024 with the -h flag and in powers of 1,000 with the --si flag, so a single file can list as 977K and 1.0M in the two modes. When you copy a limit from one tool into a policy document that is written in decimal kilobytes, convert it first. A reviewer who checks the number against the byte count in the logs will then find that the two agree.

Documentation and consistent labeling

Writers who document file sizes should choose one family of prefixes and keep it. If your style guide uses decimal units, convert every kibibyte figure and label it kB. If it uses binary units, write KiB and keep the numbers as they come from the tools. Mixing the two in the same table produces comparisons that look wrong even when every entry is individually correct. A footnote stating the convention costs one line and prevents a stream of support questions about why two documents list different numbers for the same file. A report of 700 KiB is 716.8 kB and a dataset of 1,200 KiB is 1,228.8 kB, and a reader who sees both with the right labels can trust the comparison. Teams that publish download pages should list the byte count beside the rounded size, so anyone verifying a download can match it exactly.

Where rounding matters

Because the conversion factor has only three decimals, the arithmetic stays short. A figure such as 3.7 KiB gives 3.7888 kB, and a display that rounds to one decimal shows 3.8. Keep the full precision for calculations and round when you present the result. Totals of many files should be summed in bytes or in the same unit before conversion, which avoids accumulating small rounding differences. Three files of 120, 245 and 310 KiB add up to 675 KiB, which is 691.2 kB, and the same sum is reached by converting each file first. For limits, round the converted figure up when you want to know the least size that exceeds a boundary and down when you want the largest size that fits.