Data Storage
Convert between Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, and Petabytes.
Conversion Setup
Enter the value and select the units.
Calculation Breakdown:
Enter values to convert.
About this topic
Bits vs. Bytes The fundamental units of digital information.
A bit is a single binary digit (0 or 1). A byte is a group of 8 bits. Bytes are the standard unit for measuring file sizes, while bits are used for data transfer rates (e.g., Mbps).
Key formulas & rules
- •1 Byte (B) = 8 bits
- •Bytes are uppercase (MB)
- •Bits are lowercase (Mb)
- •Storage uses Bytes
- •Network speed uses bits
- •A single ASCII character is 1 Byte
Examples
| Input | Output | Note |
|---|---|---|
| 1 B | 8 bits | Standard grouping |
| 1 KB | 8 Kb | Byte vs bit |
| 100 Mbps | 12.5 MB/s | Network vs storage |
| 1 ASCII char | 1 Byte | Text data |
Real-world uses
Decimal vs. Binary Prefixes Why a 1 TB drive shows up as 931 GB.
Drive manufacturers use decimal prefixes (powers of 1000), while operating systems use binary prefixes (powers of 1024). This discrepancy causes the 'missing space' confusion.
Key formulas & rules
- •Decimal (SI): 1 KB = 1000 B
- •Binary (IEC): 1 KiB = 1024 B
- •Windows uses binary but labels it 'GB'
- •macOS uses decimal (since 10.6)
- •Hardware uses decimal
- •Software uses binary
Examples
| Input | Output | Note |
|---|---|---|
| 1 TB drive | 931 GiB | OS display |
| 1 GB | 1,000,000,000 B | Decimal |
| 1 GiB | 1,073,741,824 B | Binary |
| 500 GB | 465 GiB | Common example |
Real-world uses
The 1024 Multiplier How to move between storage sizes.
In binary measurement, each step up (KB to MB, MB to GB) multiplies by 1024. This calculator uses the binary standard, which is standard for RAM and OS file sizes.
Key formulas & rules
- •1 KB = 1024 B
- •1 MB = 1024 KB = 1024² B
- •1 GB = 1024 MB = 1024³ B
- •1 TB = 1024 GB = 1024⁴ B
- •1 PB = 1024 TB = 1024⁵ B
- •Base-2 is native to computing
Examples
| Input | Output | Note |
|---|---|---|
| 1 MB | 1024 KB | Step up |
| 1 GB | 1,048,576 KB | Two steps |
| 1 TB | 1,099,511,627,776 B | Exact bytes |
| 512 MB | 0.5 GB | Step down |
Real-world uses
Modes & formulas
Storage Conversion
1 KB = 1024 B, 1 MB = 1024² B, 1 GB = 1024³ B, and so on. This is the binary convention used by operating systems (Windows, macOS).