Byte Size Converter
Type an amount, pick a unit, and see it in bytes, KB, MB, GB, TB, and PB, plus KiB through PiB. Results are exact (no floating-point rounding) and show both the 1000-based and 1024-based answer.
1 GB = 1,000,000,000 bytes (10^9)
| Unit | Value | Copy |
|---|---|---|
| KB | 1,000,000 | |
| MB | 1,000 | |
| GB | 1 | |
| TB | 0.001 | |
| PB | 0.000001 |
| Unit | Value | Copy |
|---|---|---|
| KiB | 976,562.5 | |
| MiB | ≈ 953.674316 | |
| GiB | ≈ 0.931323 | |
| TiB | ≈ 0.000909495 | |
| PiB | ≈ 0.000000888178 |
📦 What does that even look like?
Rough, just-for-fun estimates. Real-world sizes vary a lot.
Byte conversion questions
How do I convert bytes to GB?
Divide the number of bytes by 1,000,000,000 for decimal gigabytes (GB), or by 1,073,741,824 for binary gibibytes (GiB). For example, 5,000,000,000 bytes is 5 GB, or about 4.66 GiB.
How do I convert bytes to MB?
Divide the number of bytes by 1,000,000 for decimal megabytes (MB), or by 1,048,576 for binary mebibytes (MiB). For example, 2,500,000 bytes is 2.5 MB, or about 2.38 MiB.
What is the formula for bytes to KB?
Divide bytes by 1,000 for kilobytes (KB), or by 1,024 for kibibytes (KiB). 1,536 bytes is 1.536 KB or exactly 1.5 KiB.
Is a kilobyte 1000 or 1024 bytes?
Under SI, a kilobyte (KB) is 1,000 bytes and a kibibyte (KiB) is 1,024 bytes. Windows historically labels 1,024-based values as KB, MB, and GB, while macOS and most storage vendors use 1,000-based values.
Why does my 1 TB drive show about 931 GB?
Drive makers count 1 TB as 1,000,000,000,000 bytes. Windows divides by 1,073,741,824 and labels the result GB, so 1 TB shows as roughly 931 GB. No space is missing; the units differ.
Why is RAM measured in binary units?
Memory chips are addressed with binary address lines, so capacities are powers of two. 8 GiB of RAM is exactly 8 × 1,073,741,824 bytes, which is why RAM is sold in 1024-based sizes.
How many bytes are in a TB or PB?
1 TB is 1,000,000,000,000 bytes and 1 PB is 1,000,000,000,000,000 bytes. In binary, 1 TiB is 1,099,511,627,776 bytes and 1 PiB is 1,125,899,906,842,624 bytes.
How accurate are the real-world comparisons?
They are rough, order-of-magnitude figures for fun, not measurements. A photo, a movie, or a game can be many times bigger or smaller than the examples below.
- 💬 text message: about 160 bytes
- 📄 page of plain text: about 2,000 bytes
- 📖 e-book novel: about 1,000,000 bytes
- 💾 floppy disk: about 1,474,560 bytes (1.44 MB floppy)
- 📸 vacation photo: about 3,500,000 bytes (12-megapixel JPEG)
- 🎵 MP3 song: about 5,000,000 bytes
- 💿 CD-ROM: about 700,000,000 bytes
- 📀 DVD movie: about 4,700,000,000 bytes
- 🎬 4K movie: about 20,000,000,000 bytes
- 🌐 copy of English Wikipedia (text only): about 25,000,000,000 bytes (articles, no media)
- 🎮 modern video game: about 50,000,000,000 bytes (AAA install)
- 📲 128 GB smartphone: about 128,000,000,000 bytes
- 🍿 year of nightly Netflix: about 1,000,000,000,000 bytes (about 1 hour a day in HD, roughly 1 TB)
- 🏛️ Library of Congress: about 20,000,000,000,000 bytes (~20 TB of text, a common estimate)
Decimal vs binary units at a glance
| Unit | Bytes | Power |
|---|---|---|
| KB (Kilobyte) | 1,000 | 10^3 |
| MB (Megabyte) | 1,000,000 | 10^6 |
| GB (Gigabyte) | 1,000,000,000 | 10^9 |
| TB (Terabyte) | 1,000,000,000,000 | 10^12 |
| PB (Petabyte) | 1,000,000,000,000,000 | 10^15 |
| KiB (Kibibyte) | 1,024 | 2^10 |
| MiB (Mebibyte) | 1,048,576 | 2^20 |
| GiB (Gibibyte) | 1,073,741,824 | 2^30 |
| TiB (Tebibyte) | 1,099,511,627,776 | 2^40 |
| PiB (Pebibyte) | 1,125,899,906,842,624 | 2^50 |