Byte Size Converter (KB / KiB / MB / MiB / ...)
Convert between decimal (KB, MB, GB — SI base 1000) and binary (KiB, MiB, GiB — IEC base 1024) byte units, plus bits.
Total bytes
1,000,000,000 B
Bits: 8,000,000,000 bit
Decimal (SI, ×1000)
1 KB = 1000 B
- B1,000,000,000
- KB1,000,000
- MB1000
- GB1
- TB0.001
- PB1.0000e-6
Binary (IEC, ×1024)
1 KiB = 1024 B
- B1,000,000,000
- KiB976562.5
- MiB953.6743
- GiB0.931323
- TiB0.000909
- PiB8.8818e-7
Disks use decimal (1 TB = 10¹² B). RAM and most OSes use binary (1 GB = 2³⁰ B, technically 1 GiB). Storage marketing prefers decimal — bigger numbers.
How to use
- Enter a value and pick its unit.
- Read both columns: SI (decimal, ÷1000) on the left, IEC (binary, ÷1024) on the right.
- Bits = bytes × 8. Network speed (Mbps, Gbps) is in bits per second.
About this tool
ShowHide
There are two conflicting standards for byte units. SI/decimal: 1 KB = 1000 B, 1 MB = 1 000 000 B. IEC/binary: 1 KiB = 1024 B, 1 MiB = 1 048 576 B. Disk manufacturers use decimal. RAM and most OSes use binary but often label it with the SI prefix (Windows showing 'GB' that's really GiB). This calculator shows both side-by-side so you don't have to guess which one your tool means. Also includes bits for network bandwidth conversions.
The gap widens at every step, which is why the confusion gets worse the larger the number. A kilobyte and a kibibyte differ by 2.4 percent, a megabyte and a mebibyte by 4.9, a gigabyte and a gibibyte by 7.4, and a terabyte and a tebibyte by 10. That last figure is the whole of the missing-disk-space complaint: a drive sold as 1 TB holds a trillion bytes, which Windows reports as 0.91 TB because it means TiB, and nothing has been lost.
RAM is the exception that is genuinely binary. Memory is addressed in powers of two because of how address lines work, so a 16 GB module really is 16 GiB and the label is the one that is wrong rather than the quantity. Storage has no such constraint, which is why manufacturers were free to adopt the decimal reading and did.
Operating systems disagree with each other as well as with the labels. macOS has reported decimal since 10.6, so the same drive reads as 1 TB there and 931 GB in Windows, and Linux tools split by convention: ls -l gives bytes, ls -lh gives binary, and df depends on the flag. A number copied between two systems without noting which convention produced it is off by a percentage that grows with the unit.
Bits are a separate axis and the most common error of all. Network rates are quoted in bits per second while file sizes are in bytes, so dividing a download size by a connection speed without the factor of eight overstates the time by that much.
Frequently asked questions
Why two systems?
Computer science uses powers of 2 because hardware aligns on binary boundaries (RAM chips, page sizes). Marketing and storage default to powers of 10 because it makes drives look bigger ('1 TB' = 0.909 TiB). IEC introduced KiB/MiB/etc in 1998 to disambiguate.
Why does my 1 TB drive show 931 GB in Windows?
The drive really is 10¹² bytes (decimal TB). Windows displays it as binary GB (=GiB) without the 'i'. 10¹² / 2³⁰ ≈ 931 GiB. Nothing is missing.
Are Mbps and MB/s the same?
No — Mbps is megabits per second (millions of bits, base 10), MB/s is megabytes per second. 1 byte = 8 bits, so 100 Mbps ≈ 12.5 MB/s. Network speeds use bits; file sizes use bytes.
Which unit should I use in docs?
Be explicit: 'KiB' if you mean 1024, 'KB' if you mean 1000. If reusing 'KB' for 1024 (the old convention), say so once. Don't write 'KB' and let readers guess.
Related tools
Character & Word Counter
Count characters, words, sentences, lines, and bytes in real time.
Text
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal.
Convert
Gray Code Converter
Convert between decimal, binary and reflected-binary Gray code, both directions, with an optional fixed bit width and a 0-7 reference table.
Convert
BCD Converter (Binary-Coded Decimal)
Convert decimal to and from 8421 binary-coded decimal — per-digit 4-bit nibbles, packed BCD hex bytes, and BCD validity checking.
Convert
IPv4 Address Converter
Convert an IPv4 address between dotted-decimal, 32-bit integer, hex and binary — and see whether it's private, public, loopback and more.
Network
ASCII Code Table
Browse and search the 256-row ASCII / extended-ASCII table — decimal, hex, octal, binary, and the named control characters.
Developer