Data Size
Convert between bytes, KB, MB, GB, and TB using decimal (SI) or binary (IEC) units.
Quick Presets
Auto-formatted
1.02 KB1.00 KiBDecimal Units (×1000)
SI standard, used by HDD manufacturers
819210241.0240.00100Binary Units (×1024)
IEC standard, used by RAM and OSes
8192102410.00100Decimal vs Binary Difference
Binary is ~6.8677% smaller than decimal representation
Decimal vs Binary
Decimal (SI): 1 KB = 1,000 bytes. Used by hard drive manufacturers.
Binary (IEC): 1 KiB = 1,024 bytes. Used by RAM, operating systems.
This is why a "1 TB" drive shows less space in your OS!
Features
- Convert between bytes, KB, MB, GB, TB, PB
- Decimal (SI) and binary (IEC) unit systems
- Understand KB vs KiB difference
- File size calculator
- Data transfer rate estimation
- Storage capacity comparison
Common Use Cases
- Compare file sizes across platforms
- Understand storage capacity (HDD, SSD)
- Calculate download times at different speeds
- Optimize image sizes for web performance
- Plan database storage requirements
Data Size Units: Decimal vs Binary
Data size uses two systems: Decimal (SI) based on powers of 1000, and Binary (IEC) based on powers of 1024. This causes confusion when "1 GB" means different things.
Decimal Units (SI - International System):
- Kilobyte (KB): 1,000 bytes (10³)
- Megabyte (MB): 1,000 KB = 1,000,000 bytes (10⁶)
- Gigabyte (GB): 1,000 MB = 1,000,000,000 bytes (10⁹)
- Terabyte (TB): 1,000 GB = 1,000,000,000,000 bytes (10¹²)
Binary Units (IEC - Binary Prefixes):
- Kibibyte (KiB): 1,024 bytes (2¹⁰)
- Mebibyte (MiB): 1,024 KiB = 1,048,576 bytes (2²⁰)
- Gibibyte (GiB): 1,024 MiB = 1,073,741,824 bytes (2³⁰)
- Tebibyte (TiB): 1,024 GiB = 1,099,511,627,776 bytes (2⁴⁰)
The Confusion:
- Hard drive manufacturers: Use decimal (1 TB = 1,000 GB)
- Operating systems (Windows): Use binary but label as GB (1 GB = 1,024 MB)
- Result: A "1 TB" drive shows as ~931 GB in Windows (it's actually 931 GiB)
- Solution: Use GiB/MiB for clarity, or specify "1 TB = 1,000 GB (decimal)"
Web Context: Most web tools (file uploads, downloads) use decimal (MB/GB). Network speeds use decimal (100 Mbps Megabits per second). Storage APIs may vary—always check documentation.
Examples
1 TB (decimal) = 931 GiB (binary)5 MB (5,000,000 bytes) JPEG16 GB = 16 GiB = 17,179,869,184 bytesFrequently Asked Questions
💡 Tips
- Always specify decimal (GB) vs binary (GiB) to avoid confusion—especially in technical docs
- For web images: aim for <100 KB per image, <500 KB for hero images, use WebP for better compression
- Internet speeds are in megabits (Mbps), file sizes in megabytes (MB)—divide speed by 8 for MB/s
- 1 GiB RAM ≈ 1.074 GB. When buying RAM, "16 GB" usually means 16 GiB (17.2 GB decimal)