1 MB = 1000 KB (decimal) • 1 MiB = 1024 KiB (binary)
1 GB = 1000 MB (decimal) • 1 GiB = 1024 MiB (binary)
1 TB = 1000 GB (decimal) • 1 TiB = 1024 GiB (binary)
Understanding Bytes and Data Storage Units
What is a Byte?
A byte is the fundamental unit of digital information storage. It consists of 8 bits, where each bit is a binary digit (0 or 1). One byte can represent a single character, such as 'A', 'b', or '5'. All larger storage units are multiples of bytes.
Common Byte Conversions
- 1 Kilobyte (KB) = 1,000 bytes (decimal) or 1,024 bytes (binary/KiB)
- 1 Megabyte (MB) = 1,000,000 bytes (decimal) or 1,048,576 bytes (binary/MiB)
- 1 Gigabyte (GB) = 1,000,000,000 bytes (decimal) or 1,073,741,824 bytes (binary/GiB)
- 1 Terabyte (TB) = 1,000,000,000,000 bytes (decimal) or 1,099,511,627,776 bytes (binary/TiB)
Decimal (SI) vs Binary (IEC) Systems
The two systems exist because of historical and marketing reasons:
- Decimal (SI): Based on powers of 1000. Used by hard drive manufacturers, cloud storage providers, and most technical specifications. 1 KB = 1000 bytes, 1 MB = 1000 KB, etc.
- Binary (IEC): Based on powers of 1024. Used by operating systems (Windows, macOS, Linux) to report file sizes. 1 KiB = 1024 bytes, 1 MiB = 1024 KiB, 1 GiB = 1024 MiB, etc.
This dual standard explains why a "1 TB" hard drive shows only 931 GB in Windows - manufacturers use decimal (1,000,000,000,000 bytes), while Windows divides by 1,073,741,824 bytes per binary GB.
Real-World Examples
- A plain text email: 2-5 KB (2,000-5,000 bytes)
- A high-quality JPEG photo: 3-6 MB (3,000,000-6,000,000 bytes)
- An MP3 song (4 minutes): 4-10 MB (4,000,000-10,000,000 bytes)
- An HD movie (2 hours): 2-4 GB (2,000,000,000-4,000,000,000 bytes)
- Windows 11 installation: 20-25 GB (20,000,000,000-25,000,000,000 bytes)
Quick Reference Table
| Unit | Bytes (Decimal) | Bytes (Binary) |
|---|---|---|
| 1 KB / KiB | 1,000 | 1,024 |
| 1 MB / MiB | 1,000,000 | 1,048,576 |
| 1 GB / GiB | 1,000,000,000 | 1,073,741,824 |
| 1 TB / TiB | 1,000,000,000,000 | 1,099,511,627,776 |
| 1 PB / PiB | 1,000,000,000,000,000 | 1,125,899,906,842,624 |
Frequently Asked Questions
Q: How many bytes in a kilobyte?
A: In decimal: 1 KB = 1,000 bytes. In binary: 1 KiB = 1,024 bytes.
Q: How many bytes in a megabyte?
A: In decimal: 1 MB = 1,000,000 bytes. In binary: 1 MiB = 1,048,576 bytes.
Q: How many bytes in a gigabyte?
A: In decimal: 1 GB = 1,000,000,000 bytes. In binary: 1 GiB = 1,073,741,824 bytes.
Q: Why does my 256 GB phone show only 238 GB?
A: Two factors: decimal-binary gap (256 GB decimal = 238 GiB) plus operating system and pre-installed apps.
Q: How do I convert bytes to MB quickly?
A: For decimal MB, divide bytes by 1,000,000. For binary MiB, divide bytes by 1,048,576.
Common Byte Conversions
| Bytes | KB (Decimal) | KiB (Binary) | MB (Decimal) | MiB (Binary) |
|---|---|---|---|---|
| 1,024 | 1.024 KB | 1.0 KiB | 0.001024 MB | 0.0009766 MiB |
| 10,000 | 10 KB | 9.77 KiB | 0.01 MB | 0.00954 MiB |
| 100,000 | 100 KB | 97.66 KiB | 0.1 MB | 0.0954 MiB |
| 1,000,000 | 1,000 KB | 976.56 KiB | 1.0 MB | 0.954 MiB |
| 1,048,576 | 1,048.58 KB | 1,024 KiB | 1.0486 MB | 1.0 MiB |
| 10,000,000 | 10,000 KB | 9,765.6 KiB | 10 MB | 9.54 MiB |
| 100,000,000 | 100,000 KB | 97,656 KiB | 100 MB | 95.37 MiB |
| 1,000,000,000 | 1,000,000 KB | 976,562 KiB | 1,000 MB | 953.67 MiB |
| 1,073,741,824 | 1,073,742 KB | 1,048,576 KiB | 1,073.74 MB | 1,024 MiB (1 GiB) |
300x250