File Size Converter
Convert between bytes, KB, MB, GB, TB and the binary KiB, MiB, GiB, TiB. Decimal vs binary clearly distinguished.
What is this for?
File sizes are quoted in two incompatible systems. Hard-drive manufacturers and networking standards use decimal (powers of 1,000), while operating systems, RAM, and many file managers historically use binary (powers of 1,024). A "1 TB" drive shows up as "931 GiB" on your computer—a 7–10% gap that compounds at larger scales. This tool converts between both systems instantly, so you always know which one you're looking at.
The two systems explained
Decimal (SI): KB, MB, GB, TB. 1 KB = 1,000 bytes. Used by storage manufacturers, network speeds (Mbps, Gbps), and formal SI standards since 1960. When a vendor quotes "1 TB", they mean exactly 1 trillion bytes.
Binary (IEC): KiB, MiB, GiB, TiB. 1 KiB = 1,024 bytes. The IEC standard introduced these units in 1998 to remove ambiguity. Linux du -h and macOS Finder (for memory) use these. A "1 GiB" file is precisely 1,073,741,824 bytes.
When to use it
- Sizing a backup or cloud upload when one tool reports in MB and another in MiB, and you need to know if they're the same size.
- Converting network speed: "150 Mbps" download means 18.75 MB/s peak (divide by 8 to convert bits to bytes).
- Matching reported file size to actual disk usage. Your OS reports "4.2 GiB used", but cloud storage quotes "4.5 GB limit"—are you over?
- Estimating cloud-storage or bandwidth costs when providers quote different units.
- Understanding Docker image sizes, database backups, and VM snapshots across different reporting tools.
- Verifying download progress: a "1 GB" file from a web server is exactly 1,000,000,000 bytes, not 1,073,741,824.
How it works
- Enter any byte count or file size in any unit (B, KB, MB, GB, TB, KiB, MiB, GiB, TiB).
- The converter instantly displays the equivalent in all other units, decimal and binary side by side.
- Exact byte counts are always shown so you can compare apples to apples across systems.
- Use it to spot the 7–10% gap between what manufacturers claim and what your OS reports.
Common gotchas
- Hard drives are always decimal. A "2 TB" external drive holds 2,000,000,000,000 bytes ≈ 1.82 TiB. The manufacturer isn't lying; they're using the SI standard. Your OS isn't wrong either—it's just using binary.
- RAM is almost always binary. "16 GB RAM" means 16 GiB (17,179,869,184 bytes). Memory modules ship in powers of two.
- Network speed is bits, not bytes. "1 Gbps" = 1 gigabit per second = 125 MB/s theoretical maximum. Your "1 Gbit fiber" link won't download a 1 GB file in 8 seconds due to overhead and protocol limits.
- Operating systems are inconsistent. macOS Finder reports decimal (GB) for storage but often binary (GB) for memory. Windows Explorer uses binary units with decimal labels—confusing but consistent with legacy behaviour.
- HTTP Content-Length is always bytes. No ambiguity there—it's the exact byte count, and this tool can convert it to any unit you need.