Byte Calculator
Free online byte calculator. Convert between bytes, KB, MB, GB, TB, and PB. Supports binary (1024) and decimal (1000) bases. Calculate download times.
Conversion Results
Bits
8,589,934,592 bits
Bytes
1,073,741,824 B
Kibibytes (KiB)
1,048,576 KiB
Mebibytes (MiB)
1,024 MiB
Gibibytes (GiB)
1 GiB
Tebibytes (TiB)
0.001 TiB
Pebibytes (PiB)
9.5367e-7 PiB
Download Time Estimate
Estimated download time:
1m 25s
Quick Reference
Binary vs Decimal
Binary (1024): Used by operating systems. 1 KB = 1,024 bytes. Also known as KiB, MiB, GiB (kibibytes, mebibytes, gibibytes).
Decimal (1000): Used by storage manufacturers. 1 KB = 1,000 bytes. This is why your "500 GB" drive shows as ~465 GB in Windows.
Data-size mistakes create real costs: underestimated storage, slow transfers, oversized payloads, and inaccurate infrastructure planning. This Byte Calculator converts quickly between bytes and higher units while supporting both binary and decimal standards. It also helps estimate transfer time for practical delivery scenarios. If you are analyzing numeric representations directly, use Number Base Converter. If your estimates involve event timestamps and log throughput windows, Unix Timestamp Converter can help align time and volume assumptions.
How to Use
- Enter a value and select its source unit.
- Switch between binary (1024) and decimal (1000) mode.
- Review converted values across KB/MB/GB/TB/PB (and KiB/MiB/GiB variants).
- Optionally estimate download time using expected network speed.
- Copy output values for architecture docs, tickets, or capacity plans.
If your result looks off, verify whether the source metric is bits or bytes and whether the provider uses decimal marketing units.
Features
Full Unit Conversion
Convert between all common data size units:
- Bytes (B)
- Kilobytes (KB) / Kibibytes (KiB)
- Megabytes (MB) / Mebibytes (MiB)
- Gigabytes (GB) / Gibibytes (GiB)
- Terabytes (TB) / Tebibytes (TiB)
- Petabytes (PB) / Pebibytes (PiB)
Binary & Decimal Modes
Toggle between:
- Binary (1024): How your OS measures storage
- Decimal (1000): How manufacturers advertise storage
Download Time Calculator
Estimate how long a file will take to download at different connection speeds.
Quick Reference
One-click buttons for common file sizes like CDs, DVDs, Blu-rays, photos, and videos.
Use Cases
Infrastructure and Capacity Planning
Estimate storage growth for logs, media, backups, and database snapshots with consistent unit assumptions.
API and Data Pipeline Design
Check payload sizes against gateway limits, queue constraints, and cost thresholds before deployment.
Media and Content Workflows
Plan upload, download, and archive requirements for photography, video editing, and streaming deliverables.
Engineering Education and Debugging
Use Number Base Converter to understand the binary foundations behind data-size units and why powers of two matter in systems work.
Technical Details
Binary storage math uses powers of two: 2^10, 2^20, 2^30, and so on. Decimal storage math uses powers of ten: 10^3, 10^6, 10^9. Both are valid, but they describe different quantities. Confusion usually appears when one system labels GiB values as GB or when bandwidth numbers in bits are compared directly against file sizes in bytes.
Transfer estimation formula (simplified):
time = file size in bits / link speed in bits per second
Real throughput is usually lower than theoretical speed due to protocol overhead, encryption, retries, and competing traffic. Use conservative assumptions for planning and alert thresholds.
Binary vs Decimal: Why Your Drives Seem Smaller
Ever bought a “500 GB” hard drive and found it only shows 465 GB in Windows? Here’s why:
Manufacturer’s Definition (Decimal)
Storage manufacturers use decimal (base-10) prefixes:
- 1 KB = 1,000 bytes
- 1 MB = 1,000,000 bytes
- 1 GB = 1,000,000,000 bytes
Operating System’s Definition (Binary)
Operating systems use binary (base-2) prefixes:
- 1 KiB = 1,024 bytes
- 1 MiB = 1,048,576 bytes
- 1 GiB = 1,073,741,824 bytes
The Math
A “500 GB” drive (500,000,000,000 bytes):
500,000,000,000 ÷ 1,073,741,824 = 465.66 GiB
That’s a 7% difference, which adds up significantly at larger sizes!
Conversion Table
Binary (1024-based)
| Unit | Bytes |
|---|---|
| 1 KiB | 1,024 |
| 1 MiB | 1,048,576 |
| 1 GiB | 1,073,741,824 |
| 1 TiB | 1,099,511,627,776 |
| 1 PiB | 1,125,899,906,842,624 |
Decimal (1000-based)
| Unit | Bytes |
|---|---|
| 1 KB | 1,000 |
| 1 MB | 1,000,000 |
| 1 GB | 1,000,000,000 |
| 1 TB | 1,000,000,000,000 |
| 1 PB | 1,000,000,000,000,000 |
Common File Sizes
| Item | Typical Size |
|---|---|
| Word document | 20-100 KB |
| MP3 song (4 min) | 3-5 MB |
| High-res photo | 3-8 MB |
| PDF document | 1-5 MB |
| 1080p movie | 4-8 GB |
| 4K movie | 20-50 GB |
| Video game | 50-150 GB |
Download Speed Reference
| Connection | Speed | 1 GB Download |
|---|---|---|
| 3G Mobile | 3 Mbps | ~45 minutes |
| 4G Mobile | 25 Mbps | ~5 minutes |
| 5G Mobile | 100 Mbps | ~1.3 minutes |
| Basic Broadband | 25 Mbps | ~5 minutes |
| Fast Broadband | 100 Mbps | ~1.3 minutes |
| Gigabit Fiber | 1 Gbps | ~8 seconds |
Use Cases
Developers
- Calculate API response sizes
- Estimate bandwidth costs
- Plan database storage
IT Professionals
- Size backup solutions
- Plan storage upgrades
- Estimate transfer times
Content Creators
- Calculate storage for raw footage
- Estimate upload times
- Plan asset storage
Programming Reference
JavaScript
// Format bytes to human readable
function formatBytes(bytes, decimals = 2) {
if (bytes === 0) return '0 Bytes';
const k = 1024;
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB'];
const i = Math.floor(Math.log(bytes) / Math.log(k));
return parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)) + ' ' + sizes[i];
}
Python
def format_bytes(size):
for unit in ['B', 'KB', 'MB', 'GB', 'TB', 'PB']:
if size < 1024:
return f"{size:.2f} {unit}"
size /= 1024
return f"{size:.2f} PB"
FAQ
What is the difference between MB and MiB?
MB is decimal (1,000,000 bytes) while MiB is binary (1,048,576 bytes). The distinction explains why advertised and reported storage sizes can differ.
Why do internet plans use Mbps instead of MB/s?
Network providers usually advertise megabits per second, while file sizes are measured in bytes. Divide Mbps by 8 to estimate MB/s before calculating transfer time.
When should I use binary versus decimal mode?
Use binary mode for operating-system and memory contexts, and decimal mode for storage vendor specs, bandwidth math, and most marketing documentation.
How is this related to number-base conversion?
Data-size units are built on powers of 2 or 10. Number-base conversion helps explain how bit-level values map to human-readable KB, MB, and GB outputs.
Privacy Note
All calculations are performed locally in your browser. No data is sent to any server.
Related Tools
Number Base Converter
Free online number base converter. Convert between binary, octal, decimal, and hexadecimal instantly with bit information.
Unix Timestamp Converter
Free online Unix timestamp converter. Convert between Unix timestamps and human-readable dates. Supports seconds, milliseconds, and multiple timezones.