Data storage converter
Convert bits, bytes, decimal kilobytes and gigabytes, and binary kibibytes and gibibytes.
Browser compute / no account / no upload
Convert a data value between 10 units. Every result is computed through the byte, so the order of conversions does not change the answer.
Method
- The byte is the base unit, and the bit is exactly 1/8 byte.
- Decimal prefixes use powers of 1000; binary prefixes use powers of 1024.
- The converter reports both families in the full-unit table.
Data units are ambiguous because two prefix systems share the same letters. A storage manufacturer sells a decimal terabyte of 10^12 bytes, while an operating system may report the same capacity in binary tebibytes. This converter shows both families and makes the difference explicit.
What the units measure
A bit is one binary digit, and a byte is eight bits. Decimal prefixes use powers of 1000: 1 kB = 1000 B, 1 MB = 10^6 B, and 1 GB = 10^9 B. Binary prefixes use powers of 1024: 1 KiB = 1024 B, 1 MiB = 1024² B, and 1 GiB = 1024³ B.
How the conversion works
Each data unit is stored as a factor relative to the byte. The conversion multiplies by the source factor and divides by the target factor. Keep bits and bytes separate: network speeds are usually quoted in bits per second, while file sizes use bytes.
| Unit | Symbol | Relationship to B |
|---|---|---|
| Bit | bit | 1 bit = 0.125 B |
| Byte | B | 1 B = 1 B |
| Kilobyte | kB | 1 kB = 1000 B |
| Megabyte | MB | 1 MB = 1000000 B |
| Gigabyte | GB | 1 GB = 1000000000 B |
| Terabyte | TB | 1 TB = 1000000000000 B |
| Kibibyte | KiB | 1 KiB = 1024 B |
| Mebibyte | MiB | 1 MiB = 1048576 B |
| Gibibyte | GiB | 1 GiB = 1073741824 B |
| Tebibyte | TiB | 1 TiB = 1099511627780 B |
Worked example
Example 1
Gibibytes to gigabytes
Problem
A file is 1.00 GiB. How many decimal gigabytes is that?
Solution
One gibibyte is 1024³ bytes, or 1,073,741,824 B.
One gigabyte is 10^9 bytes.
Divide: .
Answer
1.073741824 GB
Common mistakes
- Using GB and GiB as synonyms. The difference is about 7.4 percent for gigabytes and grows with each larger prefix.
- Confusing bits and bytes. A 100 Mbit/s connection is 12.5 MB/s at best before protocol overhead.
- Assuming an operating system reports decimal units. Many report binary units but label them with decimal letters.
- Mixing 1000 and 1024 within one calculation.
Precision and significant figures
Decimal and binary prefixes are exact powers of 10 and 2, so the conversion factors carry no uncertainty. Reported drive capacities and file sizes are rounded, and filesystem overhead reduces the usable space below the raw capacity.
Key takeaways
- Every data value is converted through the byte.
- The result table shows the same quantity in all supported units, so you can check the conversion against a familiar value.
- Exact definitions carry no uncertainty; the measured input determines how many digits are meaningful.