What is the Data Storage Unit Converter?
This tool converts a quantity of digital data between Bytes, Kilobytes (KB), Megabytes (MB), Gigabytes (GB) and Terabytes (TB). It uses the binary convention where each successive unit is 1024 times larger than the previous one — the standard used by operating systems and memory hardware.
How to use it
Enter the numeric value you want to convert, pick the unit you are converting from, then pick the unit you want the answer in. The converter instantly returns the equivalent value plus a handy breakdown of the same quantity expressed in raw bytes.
The formula explained
Assign each unit a power: Bytes = 0, KB = 1, MB = 2, GB = 3, TB = 4. The conversion is $$\text{value}_{\text{target}} = \text{value}_{\text{source}} \times 1024^{\left(p_{\text{source}} - p_{\text{target}}\right)}$$ When you move to a larger unit the exponent is negative (you divide), and when you move to a smaller unit it is positive (you multiply). Because \(1024 = 2^{10}\), this matches how computers measure storage internally.
Worked example
Convert 5 GB to MB. GB has power 3, MB has power 2, so the exponent is \(3 - 2 = 1\). The result is $$5 \times 1024^{1} = 5 \times 1024 = \textbf{5120 MB}$$ Expressed in bytes that is \(5 \times 1024^{3} = 5{,}368{,}709{,}120 \text{ B}\).
Binary vs Decimal: Advertised vs Reported Capacity
Storage manufacturers usually advertise capacity in decimal units (1 GB = 1,000,000,000 bytes; 1 TB = 1,000,000,000,000 bytes). Some operating systems, such as Windows, calculate sizes in binary units (1 GB = 10243 = 1,073,741,824 bytes) but still label them "GB". Strictly, the binary unit is called a gibibyte (GiB). The drive is not missing space. The two systems simply count differently. Other systems, such as macOS, report in decimal and show the advertised figure.
The conversion used in the table below is:
$$\text{Reported GB} = \frac{ N \times 10^{9} }{ 1024^{3} }$$
| Advertised (decimal) | Bytes | Shown in binary GB (approx.) | Apparent difference (approx.) |
|---|---|---|---|
| 128 GB | 128,000,000,000 | 119.2 GB | 8.8 GB |
| 256 GB | 256,000,000,000 | 238.4 GB | 17.6 GB |
| 500 GB | 500,000,000,000 | 465.7 GB | 34.3 GB |
| 512 GB | 512,000,000,000 | 476.8 GB | 35.2 GB |
| 1 TB | 1,000,000,000,000 | 931.3 GB | 68.7 GB |
| 2 TB | 2,000,000,000,000 | 1862.6 GB | 137.4 GB |
Worked example for 1 TB: \(1\,000\,000\,000\,000 \div 1024^{3} = 1\,000\,000\,000\,000 \div 1\,073\,741\,824 \approx\) 931.32 GB.
At the GB scale the ratio is always \(10^{9}/1024^{3} \approx 0.9313\), so a binary-reporting system shows about 6.9% less than the advertised figure. The gap grows at larger units: in binary terms 1 TB is about 0.909 TiB. Real-world available space is lower still, because formatting, the file system and system files use some capacity.
FAQ
Why 1024 and not 1000? The binary (1024) system reflects powers of two used by computer memory. Drive manufacturers often use the decimal 1000-based system (which is why a "1 TB" drive shows as ~931 GB in an OS). This tool uses 1024.
Can I convert to Bytes directly? Yes — select Bytes as the target unit and the result shows the exact byte count.
Does it handle decimals? Yes, you can enter fractional values like 1.5 GB.