A byte is the fundamental unit of digital information storage and processing. It consists of 8 bits, where each bit is a binary digit that can be either 0 or 1. With 8 bits, a byte can represent 256 different values (2^8 = 256), typically numbered from 0 to 255 in unsigned representation.
The byte emerged as the standard unit of computer storage in the 1960s. Before standardization, different computer systems used varying word sizes -- some used 6-bit characters, others used 7-bit or 9-bit words. The 8-bit byte became dominant because it could represent all ASCII characters (which use 7 bits plus a parity bit) and provided a convenient power-of-two size for addressing and arithmetic.
In practical terms, a byte can store:
Understanding the byte is essential because all larger data size units are defined as multiples of bytes. Whether you are working with kilobytes, gigabytes, or petabytes, you are ultimately working with collections of 8-bit bytes.
One of the most confusing aspects of data size units is that there are two competing systems: the decimal (base-10) system used by storage manufacturers, and the binary (base-2) system historically used by operating systems and memory manufacturers. Understanding the difference is critical for accurate data size calculations.
The decimal system uses SI (International System of Units) prefixes and powers of 1,000:
This system aligns with the standard SI prefixes used throughout science (kilometer = 1,000 meters, kilogram = 1,000 grams). Storage device manufacturers -- hard drives, SSDs, USB flash drives -- use decimal units when advertising capacity. A "500 GB" hard drive contains 500,000,000,000 bytes.
The binary system uses IEC (International Electrotechnical Commission) prefixes and powers of 1,024 (2^10):
The binary prefixes (kibi-, mebi-, gibi-, tebi-) were standardized in 1998 to eliminate ambiguity. They use powers of 1,024 because computer memory and addressing are based on binary (base-2) arithmetic. Operating systems like Windows, macOS, and Linux often display storage sizes using binary units, though they may label them with decimal names (GB instead of GiB), adding to the confusion.
The difference between 1,024 and 1,000 seems small -- only 2.4%. But this difference compounds with each larger unit:
A "1 TB" hard drive (1,000,000,000,000 bytes) shows as approximately 931 GiB in an operating system using binary units. This is mathematically correct -- not a scam by manufacturers. It is simply the result of using different unit systems.
Data size units range from the tiny byte to the nearly incomprehensible yottabyte. Each unit represents a step up by a factor of 1,000 (decimal) or 1,024 (binary).
The fundamental unit. 1 byte = 8 bits. A single character in a text file typically uses 1 byte (ASCII) or 1-4 bytes (UTF-8 Unicode).
1 KB = 1,000 bytes (decimal) or 1 KiB = 1,024 bytes (binary). A plain text email might be a few kilobytes. A small icon image is typically 5-20 KB. A short text document is 10-100 KB.
1 MB = 1,000 KB = 1,000,000 bytes (decimal) or 1 MiB = 1,024 KiB = 1,048,576 bytes (binary). A typical digital photo is 2-10 MB. A high-quality MP3 song is 3-5 MB. A minute of standard-definition video is roughly 10-20 MB.
1 GB = 1,000 MB = 1,000,000,000 bytes (decimal) or 1 GiB = 1,024 MiB = 1,073,741,824 bytes (binary). A feature-length movie in 720p is 1-2 GB. A full music album in high quality is 100-200 MB. Modern smartphone apps range from 50 MB to several GB. A typical computer game installation is 20-100 GB.
1 TB = 1,000 GB = 1,000,000,000,000 bytes (decimal) or 1 TiB = 1,024 GiB = 1,099,511,627,776 bytes (binary). Consumer hard drives and SSDs typically range from 256 GB to 4 TB. A high-quality 4K movie is 20-50 GB. A complete backup of a modern laptop might be 500 GB to 2 TB.
1 PB = 1,000 TB = 10^15 bytes (decimal) or 1 PiB = 1,024 TiB = 2^50 bytes (binary). Petabytes are used to measure large data center capacities. The Library of Congress contains about 10-20 TB of text data. Google processes over 20 PB of data daily. Large cloud storage providers manage exabytes across millions of users.
1 EB = 1,000 PB = 10^18 bytes (decimal) or 1 EiB = 1,024 PiB = 2^60 bytes (binary). Global internet traffic is measured in exabytes. All words ever spoken by humans would fit in approximately 5 exabytes. Major tech companies store data in the exabyte range.
1 ZB = 1,000 EB = 10^21 bytes (decimal) or 1 ZiB = 1,024 EiB = 2^70 bytes (binary). Total global data storage is measured in zettabytes. By 2025, humanity is expected to create and store over 180 zettabytes of data annually.
1 YB = 1,000 ZB = 10^24 bytes (decimal) or 1 YiB = 1,024 ZiB = 2^80 bytes (binary). Yottabytes are currently theoretical -- no storage system approaches this scale. One yottabyte could store the entire digital data of human civilization thousands of times over.
Converting between data size units requires understanding whether you are using decimal or binary multipliers. Here are comprehensive conversion tables and formulas for both systems.
| Unit | Symbol | Bytes | Power of 10 |
|---|---|---|---|
| Byte | B | 1 | 10^0 |
| Kilobyte | KB | 1,000 | 10^3 |
| Megabyte | MB | 1,000,000 | 10^6 |
| Gigabyte | GB | 1,000,000,000 | 10^9 |
| Terabyte | TB | 1,000,000,000,000 | 10^12 |
| Petabyte | PB | 1,000,000,000,000,000 | 10^15 |
| Unit | Symbol | Bytes | Power of 2 |
|---|---|---|---|
| Byte | B | 1 | 2^0 |
| Kibibyte | KiB | 1,024 | 2^10 |
| Mebibyte | MiB | 1,048,576 | 2^20 |
| Gibibyte | GiB | 1,073,741,824 | 2^30 |
| Tebibyte | TiB | 1,099,511,627,776 | 2^40 |
| Pebibyte | PiB | 1,125,899,906,842,624 | 2^50 |
To convert between units in the same system (all decimal or all binary), use these formulas:
// Converting up (smaller to larger units)
MB = KB ÷ 1,000 (decimal)
MiB = KiB ÷ 1,024 (binary)
// Converting down (larger to smaller units)
KB = MB × 1,000 (decimal)
KiB = MiB × 1,024 (binary)
To convert between decimal and binary systems, convert to bytes first, then to the target unit:
// Example: Convert 500 GB to GiB
Bytes = 500 × 1,000,000,000 = 500,000,000,000 bytes
GiB = 500,000,000,000 ÷ 1,073,741,824 = 465.66 GiB
The "missing space" phenomenon -- where storage devices show less capacity than advertised -- confuses many users. This is not a defect or deception, but rather the result of three factors: decimal vs binary units, file system overhead, and reserved sectors.
As explained earlier, storage manufacturers use decimal units (1 GB = 1,000,000,000 bytes) while operating systems often display binary units (1 GiB = 1,073,741,824 bytes). A "1 TB" drive contains exactly 1,000,000,000,000 bytes -- but your OS displays this as 931 GiB, using the binary definition.
This is not false advertising. The drive contains the advertised number of bytes. The apparent discrepancy arises from using different unit definitions for marketing and display.
When you format a drive, the file system (NTFS, ext4, APFS, etc.) reserves space for metadata structures: file allocation tables, directory trees, journaling data, and file system metadata. This overhead varies by file system type and volume size, but typically consumes 1-5% of the drive capacity.
For example, on a 1 TB drive formatted as NTFS, approximately 10-20 GB might be used for file system structures, leaving 980-990 GB available for user data. This overhead is necessary for the file system to track where files are stored and manage the drive efficiently.
Modern storage devices often include:
A new laptop with a "512 GB SSD" might show only 450-475 GB available to the user after accounting for binary units, file system overhead, recovery partitions, and SSD over-provisioning.
To estimate the usable space on a new storage device:
For SSDs, additional over-provisioning may reduce available space further, but this improves performance and drive lifespan.
A common source of confusion is the difference between bits (used for data transfer rates) and bytes (used for storage capacity). Understanding this distinction is crucial for calculating download times and network performance.
Network speeds are measured in bits per second (bps), with common units being:
Internet service providers advertise connection speeds in megabits per second. A "100 Mbps" connection can transfer 100 million bits per second under ideal conditions.
File sizes and storage capacities are measured in bytes (B), with common units being:
When downloading a file, the file size is given in megabytes or gigabytes, but your internet speed is given in megabits per second.
Since 1 byte = 8 bits, you divide bits by 8 to get bytes:
100 Mbps connection = 100 ÷ 8 = 12.5 MB/s maximum download speed
Common conversions:
To calculate how long it takes to download a file:
Time (seconds) = File size (MB) ÷ Download speed (MB/s)
Example: Downloading a 2 GB file on a 100 Mbps connection
1. Convert connection speed: 100 Mbps ÷ 8 = 12.5 MB/s
2. Convert file size: 2 GB = 2,000 MB
3. Calculate time: 2,000 ÷ 12.5 = 160 seconds (2 minutes 40 seconds)
Real-world download times are typically longer due to network overhead, server limitations, and protocol overhead. The theoretical maximum is a best-case scenario.
Understanding abstract numbers like "500 GB" becomes easier when related to concrete examples of common files and media.
Quick mental math tricks for estimating data size conversions without a calculator.
For quick estimates, you can approximate 1,024 as 1,000. This introduces a small error but makes mental math much easier:
This approximation is useful for rough estimates but should not be used for precise capacity planning or purchases.
Each step up in binary units roughly doubles the value compared to decimal:
For quick download time estimates:
As data creation and storage continue to grow exponentially, we are approaching scales that were purely theoretical just a decade ago. Beyond yottabytes, unofficial proposals suggest future units like ronnabyte (10^27 bytes) and quettabyte (10^30 bytes), though these remain far beyond current technological capabilities.
The global datasphere -- all data created, captured, replicated, and consumed -- was estimated at 64 zettabytes in 2020 and is projected to reach 175 zettabytes by 2025. At current growth rates, we may reach yottabyte-scale global storage within a few decades.
Our free Byte Converter tool instantly converts between all common data size units, supporting both decimal (KB, MB, GB) and binary (KiB, MiB, GiB) systems. Enter a value in any unit, and see conversions to all other units in real time.
Simply enter a number in any unit field, and the tool automatically converts it to all other units. Switch between decimal and binary mode using the toggle. Copy any result to your clipboard with one click. Perfect for calculating storage requirements, understanding file sizes, or converting between different unit systems.
Stop struggling with KB vs KiB conversions. Use our free byte converter to instantly translate between all data size units -- from bytes to yottabytes, decimal and binary systems supported.
Try the Byte Converter NowMaster binary, octal, decimal, and hexadecimal conversions with practical examples.
Learn about cryptographic hash functions, use cases, and security best practices.
Master IP subnetting, CIDR notation, and network calculations for efficient IP addressing.