Skip to content

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.

PrefixSymbolFactor
kibiKi
mebiMi
gibiGi
tebiTi
pebiPi

An interesting pattern here is that each prefix is 1024 times larger than the previous one, since .

  • 1 kibibyte (KiB) = bytes (B)
  • 4 KiB = B = 4096 B
  • Answer: 4096 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
  • 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