Digital Storage Units: From Bytes to Petabytes
A comprehensive guide to all digital storage units — bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, and beyond. Includes both decimal and binary systems.
Last updated: 2025-03-15
Introduction: Making Sense of Data Sizes
We live in an age of data. Your phone stores gigabytes of photos, your laptop has a terabyte hard drive, and cloud services offer petabytes of storage. But what do these units actually mean? How do they relate to each other? And why does your “1 TB” drive show only 931 GB? This guide walks through the complete hierarchy of digital storage units, explains the decimal vs binary confusion, and gives you real-world context for each unit size.
The Building Blocks: Bits and Bytes
A bit (b) is the smallest unit of digital data — a single 0 or 1. A byte (B) is a group of 8 bits, enough to represent a single character like the letter “A” or the number “7.” All larger storage units are multiples of bytes. Internet speeds are typically measured in bits per second (bps), while storage capacities are measured in bytes.
The Complete Unit Hierarchy
| Decimal (SI) | Bytes | Binary (IEC) | Bytes |
|---|---|---|---|
| 1 Kilobyte (KB) | 1,000 | 1 Kibibyte (KiB) | 1,024 |
| 1 Megabyte (MB) | 1,000,000 | 1 Mebibyte (MiB) | 1,048,576 |
| 1 Gigabyte (GB) | 109 | 1 Gibibyte (GiB) | 1,073,741,824 |
| 1 Terabyte (TB) | 1012 | 1 Tebibyte (TiB) | 1,099,511,627,776 |
| 1 Petabyte (PB) | 1015 | 1 Pebibyte (PiB) | 1,125,899,906,842,624 |
| 1 Exabyte (EB) | 1018 | 1 Exbibyte (EiB) | 1,152,921,504,606,846,976 |
Real-World Data Sizes
Here is what each unit looks like in practice:
- 1 KB: A short text email (without attachments).
- 1 MB: About 1 minute of MP3 music at 128 kbps, or a small JPEG image.
- 1 GB: About 250 MP3 songs, or roughly 30 minutes of HD video.
- 1 TB: About 250,000 photos (4 MB each), 500 hours of HD video, or 6.5 million document pages.
- 1 PB: About 500 billion pages of text. Netflix's entire streaming library is estimated at 10-15 PB.
- 1 EB: Roughly the amount of data the entire internet generated per day in the mid-2020s.
Worked Examples
Example 1: How many 4 MB photos fit on a 64 GB card?
Using decimal: 64,000 MB ÷ 4 MB = 16,000 photos. In practice, the card holds 64 × 109 bytes, and the camera may use slightly different file sizes, but 16,000 is a solid estimate.
Example 2: How long to download 50 GB at 100 Mbps?
First convert to matching units: 100 Mbps = 12.5 MB/s. Time = 50,000 MB ÷ 12.5 MB/s = 4,000 seconds = about 66.7 minutes (just over 1 hour).
Example 3: Converting 2 TB to GB
Decimal: 2 × 1,000 = 2,000 GB. Binary: 2 TiB = 2 × 1,024 = 2,048 GiB.
Bits vs Bytes: The Speed Trap
Internet providers advertise speeds in megabits per second (Mbps), not megabytes. Since 1 byte = 8 bits, you need to divide by 8 to get the actual file transfer speed in MB/s. A “200 Mbps” connection delivers about 25 MB/s. A “1 Gbps” (gigabit) connection delivers about 125 MB/s. Always check whether a speed figure is in bits (lowercase b) or bytes (uppercase B).
Real-World Applications
- Buying storage: Understanding units helps you choose the right size SSD, USB drive, or cloud plan.
- Data plans: Mobile carriers measure usage in GB. Knowing that streaming HD video uses about 3 GB per hour helps you budget.
- Backup planning: Estimating backup sizes requires converting between different storage unit scales.
- Enterprise IT: Data centers measure capacity in petabytes and exabytes for planning and budgeting.
Convert between any digital storage units with our data storage converter.
Frequently Asked Questions
How many gigabytes are in a terabyte?
In the decimal system, 1 TB = 1,000 GB. In the binary system, 1 TiB = 1,024 GiB.
What is the difference between a bit and a byte?
A bit is a single 0 or 1. A byte is 8 bits, enough to represent one character. Internet speeds use bits per second; file sizes use bytes. Divide Mbps by 8 to get MB/s.
How big is a petabyte?
One petabyte equals 1,000 terabytes or 1,000,000 gigabytes. It could store approximately 500 billion pages of text, or about 3.4 years of continuous HD video recording.
Why are internet speeds in megabits but file sizes in megabytes?
It is a convention from telecommunications history. Network engineers measure data flow in bits, while storage engineers measure capacity in bytes. To convert, divide Mbps by 8 to get MB/s. A 100 Mbps connection can transfer about 12.5 MB/s.