Byte Converter / Tool

Converts the entered unit of byte to another unit.
(bit, byte, KB, MB, GB, TB, etc.)

  • Rounded to the fourteenth decimal place.
bit
byte
kilobyteKB / KiB
megabyteMB / MiB
gigabyteGB / GiB
terabyteTB / TiB
petabytePB / PiB
exabyteEB / EiB
zettabyteZB / ZiB
yottabyteYB / YiB
A number with many digits may appear as "1e9". This is the computer's exponential representation, where "e" is a power of 10.
1e3 = 103 = 1,000
1e6 = 106 = 1,000,000
1e9 = 109 = 1,000,000,000
1e-3 = 10-3 = 0.001
1e-6 = 10-6 = 0.000001
1e-9 = 10-9 = 0.000000001

Bit / Byte conversion formula

1byte=8bit1byte = 8bit
1KB=1024byte1KB = 1024byte

1 KB is 1024 Bytes? or 1000 Bytes?

This tool converts 1 kilobyte (KB) to 1024 bytes.

But originally kilo is 10310^3. These are called metric prefixes.

Metric prefix Name Base 10
K kilo 10310^3 = 1,000
M mega 10610^6 = 1,000,000
G giga 10910^9 = 1,000,000,000
T tera 101210^{12} = 1,000,000,000,000
P peta 101510^{15} = 1,000,000,000,000,000
E exa 101810^{18} = 1,000,000,000,000,000,000
Z zetta 102110^{21} = 1,000,000,000,000,000,000,000
Y yotta 102410^{24} = 1,000,000,000,000,000,000,000,000

But since computers are binary numbers, 10n10^n is inconvenient.

1bit=21=21bit = 2^1 = 2
2bit=22=42bit = 2^2 = 4
3bit=23=83bit = 2^3 = 8

8bit=28=2568bit = 2^8 = 256
9bit=29=5129bit = 2^9 = 512
10bit=210=102410bit = 2^{10} = 1024

Therefore, the computer decided as follows.

  • KB: 1,024byte
  • MB: 1,024KB
  • GB: 1,024MB

But this conversion method is often confusing. It is recommended to use a binary prefix to ensure a distinction.

Binary prefix Name Base 10
Ki kibi 2102^{10} = 1,024
Mi mebi 2202^{20} = 1,048,576
Gi gibi 2302^{30} = 1,073,741,824
Ti tebi 2402^{40} = 1,099,511,627,776
Pi pebi 2502^{50} = 1,125,899,906,842,624
Ei exbi 2602^{60} = 1,152,921,504,606,846,976
Zi zebi 2702^{70} = 1,180,591,620,717,411,303,424
Yi yobi 2802^{80} = 1,208,925,819,614,629,174,706,176

Hirota Yano / Born in 1987. Programmer.
I am publishing a web tool I created as a hobby. It is free of charge, so please feel free to use it.
© HIROTA YANO