Bytes Converter
Convert between bytes, KB, MB, GB, TB, PB and binary units KiB, MiB, GiB, TiB instantly. Supports SI and IEC standards.
About
Misidentifying a kilobyte as 1000 bytes versus 1024 bytes produces a compounding error that reaches 7.4% at the tebibyte scale. Operating systems report capacity in binary (IEC) units while storage manufacturers label drives in decimal (SI) units. This discrepancy causes users to perceive missing storage. The converter handles both standards simultaneously: SI prefixes (KB, MB, GB) based on powers of 10, and IEC prefixes (KiB, MiB, GiB) based on powers of 2, as defined by IEC 80000-13 and the SI system.
The tool computes all 18 target values from a single input. Precision is maintained to 15 significant digits, the limit of IEEE 754 double-precision floating-point. Values below 0.001 automatically switch to scientific notation. Note: this converter assumes 1 byte = 8 bits. Nibble representation (4 bits) is excluded as it has no standard storage use.
Formulas
All conversions are computed through a common base unit (bytes). The input value is first converted to bytes, then from bytes to every target unit.
Where Vinput is the numeric value entered, Fsource is the number of bytes in one source unit, and Ftarget is the number of bytes in one target unit.
SI (decimal) prefixes follow powers of 1000:
IEC (binary) prefixes follow powers of 1024:
The percentage deviation between SI and IEC at scale n:
Reference Data
| Unit | Symbol | Standard | Bytes Equivalent | Base |
|---|---|---|---|---|
| Bit | b | SI | 0.125 | 2โ3 |
| Byte | B | SI | 1 | 20 |
| Kilobyte | KB | SI | 1,000 | 103 |
| Kibibyte | KiB | IEC | 1,024 | 210 |
| Megabyte | MB | SI | 1,000,000 | 106 |
| Mebibyte | MiB | IEC | 1,048,576 | 220 |
| Gigabyte | GB | SI | 1,000,000,000 | 109 |
| Gibibyte | GiB | IEC | 1,073,741,824 | 230 |
| Terabyte | TB | SI | 1,000,000,000,000 | 1012 |
| Tebibyte | TiB | IEC | 1,099,511,627,776 | 240 |
| Petabyte | PB | SI | 1,000,000,000,000,000 | 1015 |
| Pebibyte | PiB | IEC | 1,125,899,906,842,624 | 250 |
| Exabyte | EB | SI | 1,000,000,000,000,000,000 | 1018 |
| Exbibyte | EiB | IEC | 1,152,921,504,606,846,976 | 260 |
| Zettabyte | ZB | SI | 1021 | 1021 |
| Zebibyte | ZiB | IEC | 270 | 270 |
| Yottabyte | YB | SI | 1024 | 1024 |
| Yobibyte | YiB | IEC | 280 | 280 |