This guide is designed to help you easily convert between various digital storage units used in everyday computing and data management. Whether you're working with bits, bytes, kilobytes, megabytes, gigabytes, terabytes, or petabytes, this tutorial provides the formulas and examples you need to make accurate conversions.
In the sections below, you will find detailed explanations and step-by-step examples for converting between different digital storage units.
Let’s calculate the values in bits for each of these units:
1 Bit is the base unit.
1 Byte = 8 Bits.
1 Kilobyte (KB) = 1,024 Bytes × 8 Bits/Byte = 8,192 Bits
1 Megabyte (MB) = 1,024 KB × 8,192 Bits/KB = 8,388,608 Bits
1 Gigabyte (GB) = 1,024 MB × 8,388,608 Bits/MB = 8,589,934,592 Bits
1 Terabyte (TB) = 1,024 GB × 8,589,934,592 Bits/GB = 8,796,093,022,208 Bits
1 Petabyte (PB) = 1,024 TB × 8,796,093,022,208 Bits/TB = 9,007,199,254,740,992 Bits
1 Exabyte (EB) = 1,024 PB × 9,007,199,254,740,992 Bits/PB = 9,223,372,036,854,775,808 Bits
1 Zettabyte (ZB) = 1,024 EB × 9,223,372,036,854,775,808 Bits/EB = 9,444,732,965,739,290,427,392 Bits
1 Yottabyte (YB) = 1,024 ZB × 9,444,732,965,739,290,427,392 Bits/ZB= 9,671,406,556,917,033,397,649,408 Bits
Formula: Byte = Bit / 8
Example: Convert 64 Bits to Bytes.
Solution: 64 b / 8 = 8 B
Formula: Bit = Byte * 8
Example: Convert 4 Bytes to Bits.
Solution: 4 B * 8 = 32 b
Formula: Megabyte = Kilobyte / 1024
Example: Convert 2048 Kilobytes to Megabytes.
Solution: 2048 KB / 1024 = 2 MB
Formula: Gigabyte = Megabyte / 1024
Example: Convert 5120 Megabytes to Gigabytes.
Solution: 5120 MB / 1024 = 5 GB
Formula: Terabyte = Gigabyte / 1024
Example: Convert 10240 Gigabytes to Terabytes.
Solution: 10240 GB / 1024 = 10 TB
Formula: Petabyte = Terabyte / 1024
Example: Convert 2048 Terabytes to Petabytes.
Solution: 2048 TB / 1024 = 2 PB
Formula: Zettabyte = Exabyte / 1024
Example: Convert 2048 Exabytes to Zettabytes.
Solution: 2048 EB / 1024 = 2 ZB
Formula: Yottabyte = Zettabyte / 1024
Example: Convert 2048 Zettabytes to Yottabytes.
Solution: 2048 ZB / 1024 = 2 YB
Formula: Yottabyte = Exabyte / (1024 * 1024)
Example: Convert 1048576 Exabytes to Yottabytes.
Solution: 1048576 EB / (1024 * 1024) = 1 YB