Data storage unit converter
The conversion runs in the browser and requires JavaScript. A fixed example is shown.
Everything runs in your browser; nothing is sent or stored.
- Enter the amount in the "Amount" field, and choose the unit from the "Unit" list.
- The results update as you type, in two groups: "Decimal units (base 1000)" and "Binary units (base 1024)".
- A 1 TB disk holds 1,000,000,000,000 bytes. An operating system that counts in base 1024 shows the same capacity as about 931 GB, because it is actually 931 GiB. The capacity is the same; only the unit of measurement differs.
- To compare with the capacity your operating system shows, enter the capacity from the disk specifications, for example 2 TB, and check the "Tebibytes (TiB)" row.
Decimal units and binary units
In decimal units, which follow the metric system, a kilobyte (KB) is 1,000 bytes and a megabyte (MB) is 1,000,000 bytes. In binary units, a kibibyte (KiB) is 1,024 bytes and a mebibyte (MiB) is 1,048,576 bytes. The binary names, with the letter i, were defined in an international standard to tell the two systems apart, but many programs still use the names KB, MB, and GB for binary values too, so the same unit name may refer to two different sizes.
Why a disk shows less capacity than stated
Disk manufacturers state capacity in decimal units, and an operating system that counts in base 1024 shows a smaller number for the same capacity. The difference grows with the size of the unit: about 2.3% for KB, about 6.9% for GB, and about 9% for TB. For example, a 4 TB disk shows up as 3.64 TiB in an operating system that counts in base 1024, even before a single file is saved on it. In addition, reserved partitions and the data structures of the file system take up part of the capacity, so the free space on a new disk is slightly smaller than even the binary value.
File size and size on disk
The file system divides the disk into allocation units (clusters), usually 4 KiB in size, and every file takes up a whole number of allocation units. That is why a 1 KB file takes up 4 KiB on the disk, and a folder with thousands of small files takes up more space than the total size of its files. In Windows, the Properties window of a file or folder shows both values: Size and Size on disk.
Common conversions
1 GiB - 1,073,741,824 bytes.
1 TiB - 1,099,511,627,776 bytes.
500 GB - about 465.66 GiB.
2 TB - about 1.82 TiB.
1 PB - about 909.49 TiB.
Data storage unit converter FAQ
Is 1 GB equal to 1,000 MB or 1,024 MB?
In decimal units, 1 GB equals 1,000 MB. The value 1,024 applies to binary units, where 1 GiB equals 1,024 MiB. Software that shows 1,024 MB per GB counts in base 1024, and in fact shows GiB and MiB values under the names GB and MB.
Does Windows show capacity in binary units?
Windows counts capacity in base 1024 but labels it KB, MB, and GB. That is why a 256 GB disk shows up in Windows as 238 GB, which is in fact 238.42 GiB. macOS, on the other hand, shows capacity in decimal units, so the same disk shows up there as 256 GB.
What is the difference between MB and Mb?
A capital B stands for byte, and a lowercase b stands for bit. A byte has 8 bits, so 1 MB equals 8 Mb. Storage capacity and file sizes are measured in bytes, and the speed of a network connection is measured in bits per second, for example Mbps.
Can I enter a number with a thousands separator?
Yes. In the "Amount" field, you can enter a number with commas as thousands separators, for example 1,000,000. The field accepts a non-negative number with up to 9 digits before the decimal point and up to 6 digits after it.
How many digits after the decimal point do the results show?
A value of 1 or more is rounded to at most 6 digits after the decimal point, and a value below 1 is shown with 6 significant digits. That way, even a very small value, such as 0.000888178 PiB for 1 TB, is shown and not rounded to 0.