KB vs KiB, MB vs MiB: Data Size Units Explained
Last updated: · 3 min read
A drive sold as 1 TB shows less capacity in the operating system, and a file's size can look different on a download page and in the file manager. The reason is that the units rest on two bases: in SI prefixes 1 KB = 1000 bytes, while in IEC binary prefixes 1 KiB = 1024 bytes. This guide explains both systems, the eight-fold relationship between bits and bytes, and why the gap between the two bases grows with each larger unit. The results in the example are the real output of the Data Size Converter.
Formula
1 byte = 8 bits SI (decimal): KB = 10^3, MB = 10^6, GB = 10^9, TB = 10^12, PB = 10^15 bytes IEC (binary): KiB = 2^10, MiB = 2^20, GiB = 2^30, TiB = 2^40, PiB = 2^50 bytes Conversion: bytes = value × unit factor; target value = bytes ÷ target factor Example: 1 GB = 1,000,000,000 bytes; GiB equivalent = 1,000,000,000 ÷ 1,073,741,824 = 0.931322574615
Decimal prefixes come from the SI (International System of Units) and are powers of 1000. Binary prefixes such as KiB, MiB and GiB are defined by IEC 80000-13 and are powers of 1024. Drive manufacturers usually quote capacity in decimal, while operating systems often report in binary, so the same drive appears with two different numbers. The tool first converts the value to bytes and then divides it by every unit to build the table.
What the inputs mean
- Value
- The number to convert: zero or a positive number. Either a comma or a point can be used as the decimal separator.
- Unit
- The unit of the input: bit, B (byte), KB, MB, GB, TB, PB or KiB, MiB, GiB, TiB, PiB. The chosen unit affects the whole table.
Worked example: 1 GB in every unit
- Input: 1, unit GB. 1 GB = 1 × 10^9 = 1,000,000,000 bytes.
- From bytes to bits: 1,000,000,000 × 8 = 8,000,000,000 bits. The first line of the tool shows this: 1 GB = 1,000,000,000 bytes = 8,000,000,000 bits.
- In the decimal table, KB = 1,000,000, MB = 1,000 and TB = 0.001.
- In the binary table, GiB = 1,000,000,000 ÷ 1,073,741,824 = 0.931322574615, and MiB = 953.674316406.
- The last line of the tool notes that 1 GB ≈ 0.931 GiB.
Result: In the decimal system 1 GB is 1,000,000,000 bytes; in the binary system it is only 0.931 GiB. The gap that makes the same drive look smaller comes from these two bases.
💾 Data Size Converter (KB, MB, GB)
Free, no sign-up; your data stays in your browser.
Open the calculator →How to read the result
When a drive maker says 1 TB, that is 10^12 bytes; an operating system that counts in powers of 1024 may show about 931 GiB for the same drive. Read capacity claims with the base in mind. Do not mix data sizes with network speeds: speeds are usually given in bits per second (Mb/s), while files are measured in bytes.
Common mistakes
- Mixing network speed with file size. A 100 Mb/s connection downloads about 12.5 MB per second, because one byte is eight bits.
- Confusing a lower-case b with an upper-case B. b means bit and B means byte; the difference is a factor of eight.
- Ignoring the gap between KB and KiB. 1 KB = 1000 bytes and 1 KiB = 1024 bytes; for large values the difference reaches about 7 percent.
- Treating a decimal conversion as binary. 1 GB is not 1.07 GiB; the correct figure is 1 GB = 0.931 GiB.
- Rounding too early. For capacity calculations use the exact byte value, because rounding errors add up over many steps.
Frequently asked questions
Why does a 1 TB drive show about 931 GB in my computer?
The maker counts 1 TB as 10^12 bytes, while the operating system uses the 1024-based unit GiB and shows the same bytes as about 931.
Should I use KB or KiB?
Drive and network makers usually use decimal units (KB, MB, GB). Memory and processor sizes are often described in binary units (KiB, MiB, GiB). State which one a document uses.
How do I convert bits to bytes?
One byte is eight bits. Multiply by 8 to go from bytes to bits, and divide by 8 to go from bits to bytes.
Is the value I enter sent to a server?
The conversion runs in your browser on the page.
The result is not exact or binding and is for information only; it is not an official document and cannot be used in official procedures. Confirm it with the competent authority or a professional before acting; no liability is accepted for losses arising from its use.