Convert kilobytes to kibibytes

Content last reviewed:

1 KB is 0.9765625 KiB, because a kilobyte holds 1,000 bytes and a kibibyte 1,024. Type a number of kilobytes and the converter gives it in kibibytes, the unit in which Windows and the Linux commands ls -h and du -h count file sizes.

KB
KiB
to

What is the difference between KB and KiB?

A kilobyte (KB) is 1,000 bytes. The prefix kilo means a thousand in the metric system, just as in a kilometer or a kilogram. A kibibyte (KiB) is 1,024 bytes, or 210 B. The International Electrotechnical Commission (IEC) defined the binary prefixes kibi, mebi and gibi in 1999, so that a single symbol no longer had to mean two different numbers[1].

So a kibibyte is the bigger of the two, by 24 bytes or 2.4%[1]. The same number of bytes written in KiB therefore gives a slightly smaller figure than in KB. For a single file this matters when you have to stay under a limit to the byte, such as an upload form that takes attachments up to 500 KB.

Why is a KB sometimes 1,024 bytes?

Before the IEC standard, computing also used the word kilobyte for 1,024 bytes. JEDEC, the body that writes memory chip standards, still lists that meaning of kilo for memory sizes in its terms and definitions. Windows also counts file sizes in powers of 1,024 but labels the result KB[1]. File Explorer shows a file of 4,096 bytes as 4 KB, even though that is 4 KiB.

On Linux, ls -h, du -h and df -h count sizes in powers of 1,024 and add just a letter to the number, such as 4.0K. With the --si option the same commands count in powers of 1,000[2]. Newer versions of macOS show sizes in decimal units[3], so a kilobyte in Finder is 1,000 bytes.

A laptop screen with a terminal window full of program messages, next to a code editor window
A terminal window with program messages is open on a laptop screen. In a window like this, du -h shows a file size with the letter K, which stands for kibibytes. Photo: X, Unsplash.

How do you convert KB to KiB? Formula and Excel

Multiply the number of kilobytes by 1,000 to get bytes, then divide by 1,024. In short: KiB = KB × 0.9765625. A 500 KB file is 500 × 0.9765625 = 488.28125 KiB, and a 100 KB limit is 97.65625 KiB. The result always comes out 2.34% smaller than the number of kilobytes.

In Excel, type =CONVERT(A2,"kbyte","kibyte"). In this function the prefix “ki” stands for kibi, or 210, and “k” for the ordinary kilo[4].

To convert kibibytes back to kilobytes, use the KiB to KB converter. The same two standards for bigger units are compared in the MB to MiB converter and the GB to GiB converter, and kilobytes to megabytes in the KB to MB converter.

How many kibibytes is a given number of kilobytes?

The converter worked out these results. Dividing whole kilobytes by 1.024 ends by the seventh decimal place at the latest, so the figures are exact, with no rounding.
KilobytesKibibytes
1 KB0.9765625 KiB
4 KB3.90625 KiB
10 KB9.765625 KiB
64 KB62.5 KiB
100 KB97.65625 KiB
128 KB125 KiB
256 KB250 KiB
500 KB488.28125 KiB
512 KB500 KiB
1,000 KB976.5625 KiB
1,024 KB1,000 KiB
2,048 KB2,000 KiB
4,096 KB4,000 KiB
10,000 KB9,765.625 KiB
100,000 KB97,656.25 KiB
1,000,000 KB976,562.5 KiB

Which ways of writing kilobytes does this converter accept?

The field accepts and converts each of these, so you don't need to fix anything before pasting. The table shows what the converter does with each one, and it worked out the results itself.
What you typeWhat the converter showsHow we read it
1.51.4648438 KiBThe point marks the decimal part, so the field holds one and a half kilobytes.
1,5001,464.84375 KiBA comma before three digits groups thousands, so we count fifteen hundred kilobytes. A note under the field says how we read it, and if you meant one and a half, type 1.5.
1,51.4648438 KiBA comma before a single digit can only be a decimal comma, the way European spreadsheets write it, so we count one and a half kilobytes.
1,000976.5625 KiBThe comma separates thousands, so the field holds a thousand kilobytes. A note under the field says how we read it.
2½2.4414063 KiBWe add the ½ character copied from a document to the number in front of it.
1e3976.5625 KiBWe read spreadsheet scientific notation as it is: 1e3 means a thousand kilobytes.
500kB488.28125 KiBWe drop the kB symbol stuck to the number, lowercase k included, and count the number alone.
1 MB976.5625 KiBA megabyte pasted into the kilobytes field is written in as 1000 KB, with a note under the field.
4 KiB4 KiBKibibytes pasted into the kilobytes field are written in as 4.096 KB, so the result comes back to the same 4 KiB.
4.00 KB (4,096 bytes)4 KiBIn a line from a file's Properties window, KB means kibibytes, so we take the byte count in brackets. The field holds 4.096 KB and the result is exactly 4 KiB. A note under the field says how we read the comma in 4,096.
0.50.4882813 KiBA number below one works too: half a kilobyte is 500 bytes.

Convert Kilobytes to other units

Sources

  1. Binary prefix — Wikipedia
  2. Block size — GNU Coreutils
  3. How storage capacity is measured on Apple devices — Apple
  4. CONVERT function — Microsoft
  5. Metric prefix — Wikipedia
  6. Prefixes for binary multiples — National Institute of Standards and Technology

Every figure in the tables was computed from the unit definitions and checked arithmetically before publication. Historical values and the names of local units come from the sources listed above.

Content last reviewed: · written and checked by the Arteon team

Frequently asked questions about kilobytes and kibibytes

Is kB with a small k the same as KB?

Yes, both mean a kilobyte, or 1,000 bytes. The metric system writes the prefix kilo with a lowercase k, as in km or kg[5], so the correct symbol is kB. The capital K caught on in computing, and many programs write KB. The converter accepts both.

How does NIST define the kilobyte?

NIST, the US national measurement institute, keeps the metric prefix kilo for 103 and the binary prefix kibi (Ki) for 210. Its examples set 1 kbit at 1,000 bits against 1 Kibit at 1,024 bits, and 1 MB at 1,000,000 bytes against 1 MiB at 1,048,576 bytes[6]. By that rule a kilobyte is 1,000 bytes, and 1,024 bytes make a kibibyte.

Arteon free tool screenshot: Convert kilobytes to kibibytes

Have a question or suggestion?

If you have spotted an error in the table or a value is missing, write to us.