A bit is the smallest increment of storage on a computer. Imagine each bit is like a light bulb. Each one is either on or off, so it can have one of two values (either 0 or 1).
ByteA byte is a string of 8 bits (eight light bulbs in a row). A byte is basically the smallest unit of data that can be processed on your family computer. As such, storage measurements are always done in bytes rather than bits. The largest decimal value that can be represented by a byte is 28 (2 x 2 x 2 x 2 x 2 x 2 x2 x2) or 256. For more information on binary numbers, including how to convert them to decimal, please see the resource area below.
Kilobyte (KB)A kilobyte in binary is 1024 bytes(210), but it also used to refer to 1000 bytes (the decimal interpretation). This is where things start to get really confusing! You can see that a binary KB is slightly bigger than a decimal KB.
Megabyte (MB)A megabyte in binary is 1,048,576 (220) bytes. In decimal it’s 1,000,000 bytes (106).
Gigabyte (GB)A gigabyte is either 230 (1073741824) bytes or 109 (1 billion) bytes. By now the difference between the binary version and the decimal version is quite significant.
Description of Data Storage hierarchy and mathematical comparisons
More data wrangling information