bit | ||

byte | ||

kilobyte | KB / KiB | |

megabyte | MB / MiB | |

gigabyte | GB / GiB | |

terabyte | TB / TiB | |

petabyte | PB / PiB | |

exabyte | EB / EiB | |

zettabyte | ZB / ZiB | |

yottabyte | YB / 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 = 10

^{3}= 1,0001e6 = 10

^{6}= 1,000,0001e9 = 10

^{9}= 1,000,000,0001e-3 = 10

^{-3}= 0.0011e-6 = 10

^{-6}= 0.0000011e-9 = 10

^{-9}= 0.000000001## Bit / Byte conversion formula

$1byte = 8bit$

$1KB = 1024byte$

## 1 KB is 1024 Bytes? or 1000 Bytes?

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

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

Metric prefix | Name | Base 10 |
---|---|---|

K | kilo | $10^3$ = 1,000 |

M | mega | $10^6$ = 1,000,000 |

G | giga | $10^9$ = 1,000,000,000 |

T | tera | $10^{12}$ = 1,000,000,000,000 |

P | peta | $10^{15}$ = 1,000,000,000,000,000 |

E | exa | $10^{18}$ = 1,000,000,000,000,000,000 |

Z | zetta | $10^{21}$ = 1,000,000,000,000,000,000,000 |

Y | yotta | $10^{24}$ = 1,000,000,000,000,000,000,000,000 |

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

$1bit = 2^1 = 2$

$2bit = 2^2 = 4$

$3bit = 2^3 = 8$

…

$8bit = 2^8 = 256$

$9bit = 2^9 = 512$

$10bit = 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 | $2^{10}$ = 1,024 |

Mi | mebi | $2^{20}$ = 1,048,576 |

Gi | gibi | $2^{30}$ = 1,073,741,824 |

Ti | tebi | $2^{40}$ = 1,099,511,627,776 |

Pi | pebi | $2^{50}$ = 1,125,899,906,842,624 |

Ei | exbi | $2^{60}$ = 1,152,921,504,606,846,976 |

Zi | zebi | $2^{70}$ = 1,180,591,620,717,411,303,424 |

Yi | yobi | $2^{80}$ = 1,208,925,819,614,629,174,706,176 |