Bytes to Bits Converter
Convert bytes to bits and between all data units instantly. Supports binary (KiB, MiB, GiB) and decimal (kB, MB, GB) prefixes with full precision.
About
Misidentifying binary vs. decimal prefixes causes real data loss. A drive advertised as 1 TB (decimal, 1012 bytes) appears as roughly 931 GiB in an operating system that counts in powers of 1024. The discrepancy - approximately 7.4% per prefix tier - compounds through storage planning, bandwidth billing, and network throughput calculations. This converter operates on the IEC 80000-13 and SI standards: 1 byte = 8 bits, binary prefixes use 210 (1024) steps, decimal prefixes use 103 (1000) steps. It preserves up to 15 significant digits to avoid IEEE 754 floating-point truncation at large scales.
Formulas
Every data unit maps to a base count in bits. Conversion between any two units passes through this common base:
Where R = result value in the target unit, V = input value, Ffrom = number of bits per one unit of the source type, Fto = number of bits per one unit of the target type.
The fundamental relationship is 1 byte = 8 bits. Binary (IEC) prefixes increment by 210 = 1024 per tier. Decimal (SI) prefixes increment by 103 = 1000 per tier. The percentage gap between a decimal and binary unit at the same prefix level is:
Where n = prefix tier (1 for kilo/kibi, 2 for mega/mebi, etc.). At n = 1, the gap is 2.4%. At n = 3 (giga/gibi), it reaches 7.4%.
Reference Data
| Unit | Symbol | Standard | Equivalent in Bits | Base |
|---|---|---|---|---|
| Bit | b | SI | 1 | - |
| Nibble | nibble | Common | 4 | - |
| Byte | B | SI | 8 | - |
| Kilobit | kb | SI (decimal) | 1,000 | 103 |
| Kibibit | Kib | IEC (binary) | 1,024 | 210 |
| Kilobyte | kB | SI (decimal) | 8,000 | 103 × 8 |
| Kibibyte | KiB | IEC (binary) | 8,192 | 210 × 8 |
| Megabit | Mb | SI (decimal) | 1,000,000 | 106 |
| Mebibit | Mib | IEC (binary) | 1,048,576 | 220 |
| Megabyte | MB | SI (decimal) | 8,000,000 | 106 × 8 |
| Mebibyte | MiB | IEC (binary) | 8,388,608 | 220 × 8 |
| Gigabit | Gb | SI (decimal) | 1,000,000,000 | 109 |
| Gibibit | Gib | IEC (binary) | 1,073,741,824 | 230 |
| Gigabyte | GB | SI (decimal) | 8,000,000,000 | 109 × 8 |
| Gibibyte | GiB | IEC (binary) | 8,589,934,592 | 230 × 8 |
| Terabit | Tb | SI (decimal) | 1012 | 1012 |
| Tebibit | Tib | IEC (binary) | 1,099,511,627,776 | 240 |
| Terabyte | TB | SI (decimal) | 8 × 1012 | 1012 × 8 |
| Tebibyte | TiB | IEC (binary) | 8,796,093,022,208 | 240 × 8 |
| Petabit | Pb | SI (decimal) | 1015 | 1015 |
| Pebibit | Pib | IEC (binary) | 250 | 250 |
| Petabyte | PB | SI (decimal) | 8 × 1015 | 1015 × 8 |
| Pebibyte | PiB | IEC (binary) | 8 × 250 | 250 × 8 |
| Exabit | Eb | SI (decimal) | 1018 | 1018 |
| Exbibit | Eib | IEC (binary) | 260 | 260 |
| Exabyte | EB | SI (decimal) | 8 × 1018 | 1018 × 8 |
| Exbibyte | EiB | IEC (binary) | 8 × 260 | 260 × 8 |