Byte Conversion Calculator
Convert between bytes, kilobytes, megabytes, gigabytes, terabytes and more. Supports both SI decimal and IEC binary units instantly.
About
Misidentifying data units costs real money. Cloud providers bill in GiB (gibibytes, 230 bytes) while hard drive manufacturers label in GB (gigabytes, 109 bytes). That 8.7% discrepancy compounds across petabyte-scale infrastructure. This calculator converts any value across 13 data-size units - covering both IEC binary prefixes (KiB, MiB, GiB, TiB, PiB, EiB) and SI decimal prefixes (KB, MB, GB, TB, PB, EB) - plus raw bits and bytes. Every factor is exact: binary units use powers of 2, decimal units use powers of 10. No rounding errors propagate.
Limitation: this tool operates on static conversion factors. It does not account for filesystem overhead, block alignment, or RAID parity. A 1TB drive formatted with NTFS yields roughly 931GiB usable space, not because of a conversion error, but because manufacturers use decimal gigabytes while operating systems report binary gibibytes. Use this calculator to verify vendor claims and budget storage procurement accurately.
Formulas
The conversion from any source unit to any target unit passes through bytes as the canonical intermediate representation:
Where Vsource is the input value, Fsource is the number of bytes in one source unit, and Ftarget is the number of bytes in one target unit. For binary (IEC) prefixes, the factor follows 2n progression:
Where k = 1 for KiB, 2 for MiB, 3 for GiB, 4 for TiB, 5 for PiB, 6 for EiB. For decimal (SI) prefixes:
Where k = 1 for KB, 2 for MB, 3 for GB, 4 for TB, 5 for PB, 6 for EB. Bits use F = 0.125 (one-eighth of a byte).
Reference Data
| Unit | Symbol | Standard | Bytes Equivalent | Factor |
|---|---|---|---|---|
| Bit | b | Basic | 0.125 | 1/8 byte |
| Byte | B | Basic | 1 | 8 bits |
| Kilobyte | KB | SI (Decimal) | 1,000 | 103 |
| Kibibyte | KiB | IEC (Binary) | 1,024 | 210 |
| Megabyte | MB | SI (Decimal) | 1,000,000 | 106 |
| Mebibyte | MiB | IEC (Binary) | 1,048,576 | 220 |
| Gigabyte | GB | SI (Decimal) | 1,000,000,000 | 109 |
| Gibibyte | GiB | IEC (Binary) | 1,073,741,824 | 230 |
| Terabyte | TB | SI (Decimal) | 1,000,000,000,000 | 1012 |
| Tebibyte | TiB | IEC (Binary) | 1,099,511,627,776 | 240 |
| Petabyte | PB | SI (Decimal) | 1,000,000,000,000,000 | 1015 |
| Pebibyte | PiB | IEC (Binary) | 1,125,899,906,842,624 | 250 |
| Exabyte | EB | SI (Decimal) | 1,000,000,000,000,000,000 | 1018 |
| Exbibyte | EiB | IEC (Binary) | 1,152,921,504,606,846,976 | 260 |