Bits, Bytes, Gigabytes.
A stupid reminder to myself so I don’t mess up system design interviews in the future.
- bit - 1 bit = 1 binary digit, either 1 or zero.
- byte 1 byte = 8 bits. Consists of 8 1s or zeros.
Remember that bytes are in powers of two with a base of 8.
Power Exact Value Approx Value Bytes
---------------------------------------------------------------
7 128
8 256
10 1024 1 thousand 1 KB
16 65,536 64 KB
20 1,048,576 1 million 1 MB
30 1,073,741,824 1 billion 1 GB
32 4,294,967,296 4 GB
40 1,099,511,627,776 1 trillion 1 TB
Last modified: