Binary prefixes
Just like we have decimal prefixes, such as mega (for x1,000,000) and nano (for x0.000001), we also have binary prefixes, which are based on powers of 2.
Common binary prefixes
Section titled “Common binary prefixes”| Prefix | Symbol | Factor |
|---|---|---|
| kibi | Ki | |
| mebi | Mi | |
| gibi | Gi | |
| tebi | Ti | |
| pebi | Pi |
An interesting pattern here is that each prefix is 1024 times larger than the previous one, since
.
Example conversions
Section titled “Example conversions”Example: Convert 4 kibibytes to bytes.
Section titled “Example: Convert 4 kibibytes to bytes.”- 1 kibibyte (KiB) =
bytes (B) - 4 KiB =
B = 4096 B - Answer: 4096 bytes
Example: Convert 3 mebibytes to bytes.
Section titled “Example: Convert 3 mebibytes to bytes.”- 1 mebibyte (MiB) =
bytes (B) - 3 MiB =
B = 3,145,728 B - Answer: 3,145,728 bytes
Example: Convert 2 gibibytes to mebibytes.
Section titled “Example: Convert 2 gibibytes to mebibytes.”- 1 gibibyte (GiB) =
bytes (B) - 1 mebibyte (MiB) =
bytes (B) - Therefore, 1 GiB =
MiB = 1024 MiB - 2 GiB =
MiB = 2048 MiB - Answer: 2048 mebibytes
Example: Convert 5 tebibytes to gibibytes.
Section titled “Example: Convert 5 tebibytes to gibibytes.”- 1 tebibyte (TiB) =
bytes (B) - 1 gibibyte (GiB) =
bytes (B) - Therefore, 1 TiB =
GiB = 1024 GiB - 5 TiB =
GiB = 5120 GiB - Answer: 5120 gibibytes
Example: Convert 1 pebibyte to gibibytes.
Section titled “Example: Convert 1 pebibyte to gibibytes.”- 1 pebibyte (PiB) =
bytes (B) - 1 gibibyte (GiB) =
bytes (B) - Therefore, 1 PiB =
GiB = 1,048,576 GiB - 1 PiB = 1,048,576 GiB
- Answer: 1,048,576 gibibytes