Skip to content

Instantly share code, notes, and snippets.

@emmahsax
Last active May 9, 2024 20:53
Show Gist options
  • Save emmahsax/45c3169b1bb6d13931f425c281b1c2f7 to your computer and use it in GitHub Desktop.
Save emmahsax/45c3169b1bb6d13931f425c281b1c2f7 to your computer and use it in GitHub Desktop.

Memory Sizes

Common Name (decimal system) Decimal Value (bytes) Binary System Equivalent Binary Value (bytes) Equal To (binary) Description
Bit 1/8 Bit 1/8 1/8 Byte Every individual binary digit (0 and 1)
Nibble 1/2 Nibble 1/2 4 Bits or 1/2 Byte Combination of four bits of binary digits or half of an octet – can be represented by a single hexadecimal digit
Byte 1 Byte 1 8 Bits A unit of data that is eight binary digits long, and can be represented using a letter, number, or character (e.g. "h", "7", or "$")
Kilobyte (KB) 1,000 (103) Kibibyte (KiB) 1,024 (210) 1,024 Bytes Often used to measure the size of small files
Megabyte (MB) 1,000,000 (106) Mebibyte (MiB) 1,048,576 (220) 1,024 KB Often used to measure the size of large files
Gigabyte (GB) 1,000,000,000 (109) Gibibyte (GiB) 1,073,741,824 (230) 1,024 MB Often used to measure the storage of a device's capacity
Terabyte (TB) 1,000,000,000,000 (1012) Tebibyte (TiB) 1,099,511,627,776 (240) 1,024 GB Used to measure the storage of a very large device's capacity, such as a server or workstation with multiple hard drives
Petabyte (PB) 1,000,000,000,000,000 (1015) Pebibyte (PiB) 1,125,899,906,842,624 (250) 1,024 TB Could be used to measure the total data stored in large networks or server farms
Exabyte (EB) 1,000,000,000,000,000,000 (1018) Exbibyte (EiB) 1,152,921,504,606,846,976 (260) 1,024 PB So large that it isn't currently used to really measure any server farms or storage devices, but it could be used to measure the amount of data over multiple storage networks or the amount of data transferred over the internet for a certain amount of time
Zettabyte (ZB) 1,000,000,000,000,000,000,000 (1021) Zebibyte (ZiB) 1,180,591,620,717,411,303,424 (270) 1,024 EB Used to measure large amounts of data throughout the world
Yottabyte (YB) 1,000,000,000,000,000,000,000,000 (1024) Yobibyte (YiB) 1,208,925,819,614,629,174,706,176 (280) 1,024 ZB Currently no practical use of such a large measurement because all data in the world is made up of just a few zettabytes

See more here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment