What the Data Storage Converter does
The Data Storage Converter has two modes chosen with buttons. Decimal (1000) offers bit, byte, KB, MB, GB and TB, where each step is 1000, matching the SI prefixes used on drive packaging and in network engineering. Binary (1024) offers bit, byte, KiB, MiB, GiB and TiB, where each step is 1024, the IEC binary prefixes used for memory and by many operating systems. A bit counts as one eighth of a byte in both modes.
The default conversion is 1 MB to GB, which gives 0.001; switch to binary and the same positions become 1 MiB to GiB, 0.0009765625. Results are rounded to ten decimal places and formatted with your browser's locale, with grouping separators on large numbers such as 500,000,000,000 bytes.
The tool converts within one standard at a time. To find out how many GiB a 500 GB drive holds, convert 500 GB to bytes in decimal mode (500,000,000,000), switch to binary mode, and convert that byte count to GiB: 465.6612873077. That is why a drive sold as 500 GB appears as about 465 GB in Windows, which counts in 1024s but keeps the GB label.
How to use it
Choose the standard
Press Decimal (1000) for SI units (KB, MB, GB, TB) or Binary (1024) for IEC units (KiB, MiB, GiB, TiB). Switching keeps the same list positions, so MB to GB becomes MiB to GiB.
Enter the size and its unit
Type the number and select its unit in the From list. Bits and bytes are available in both modes.
Read the result
Pick the To unit. The result appears to ten decimal places; use the Swap units button to swap the two units.
1000 or 1024: which standard to pick
Pick the standard your source used. Drive and SSD makers, telecom carriers and most file-transfer quotes use decimal prefixes, where 1 GB is 1,000,000,000 bytes. RAM sizes, many operating system file dialogs and most programming contexts use powers of 1024, where 1 GiB is 1,073,741,824 bytes. The gap grows with each prefix: KiB is 2.4 percent more than KB, MiB about 4.9 percent more than MB, GiB about 7.4 percent more than GB and TiB about 10 percent more than TB.
The IEC approved the binary prefixes kibi, mebi, gibi and tebi in December 1998, and they now live in IEC 80000-13, so that KB, MB and GB could keep their SI meaning. Note that the SI symbol for 1000 bytes is kB with a lowercase k; this tool labels it KB, as most software does.
- KB = 1,000 bytes; KiB = 1,024 bytes
- MB = 1,000,000 bytes; MiB = 1,048,576 bytes
- GB = 1,000,000,000 bytes; GiB = 1,073,741,824 bytes
- TB = 1,000,000,000,000 bytes; TiB = 1,099,511,627,776 bytes
Bits versus bytes
A byte is eight bits, so 1 bit is 0.125 byte in both modes. Network speeds are quoted in bits per second (a 100 Mbit/s line) while file sizes are in bytes, so a 100 Mbit/s connection moves at most 12.5 MB per second. This tool has no kilobit or megabit units; enter the bit count in full, for example 100000000 bits, and convert to MB to get 12.5.
Why a drive shows less space than the box says
A disk sold as 1 TB holds 1,000,000,000,000 bytes. An operating system that counts in 1024s divides that by 1,099,511,627,776 and reports 0.909 TB, often labelled TB rather than TiB. Nothing is missing; the two sides are using different units. Windows and many Linux tools report in 1024s with SI-looking labels, while macOS has reported decimal sizes since Mac OS X 10.6, so the same file shows different numbers on different machines.
Limits to know before you rely on it
- One standard at a time: there is no direct GB to GiB conversion. Go through bytes, which exist in both modes.
- The largest units are TB and TiB; petabytes and beyond are not offered, and bits have no kilo or mega prefixes.
- Results are rounded to ten decimal places, so 1 bit in TB or 1 byte in TiB displays as 0.
- Input with commas makes the result read Enter a number; type 500000000000, not 500,000,000,000.
- The tool labels 1000 bytes as KB; the SI symbol is kB with a lowercase k. Treat KB here as decimal regardless of the capital letter.
Questions people ask about the Data Storage Converter
How many bytes are in a gigabyte?
In decimal mode, 1 GB is 1,000,000,000 bytes, which is what drive manufacturers and the SI prefixes mean. In binary mode, 1 GiB is 1,073,741,824 bytes. The difference is about 7.4 percent and is the usual cause of a drive seeming smaller than advertised.
How do I convert GB to GiB?
In two steps. In Decimal mode convert the GB figure to bytes, note the result, switch to Binary mode and convert those bytes to GiB. 500 GB becomes 500,000,000,000 bytes, which is 465.6612873077 GiB.
Is a kilobyte 1000 or 1024 bytes?
Both meanings are in use, which is why the tool makes you choose. Decimal mode treats KB as 1000 bytes, following SI; Binary mode offers KiB for 1024 bytes, the IEC unit. Older software and Windows still call 1024 bytes a KB.
Why is there no megabit unit for internet speeds?
Only the plain bit is included. Enter the number of bits in full: a 100 Mbit/s line is 100000000 bits per second, which converts to 12.5 MB per second in decimal mode. The per-second part applies equally to both sides.
Why does my result show 0?
The display is rounded to ten decimal places. Converting a very small amount into a very large unit, such as 1 bit to TB (0.000000000000125), falls below that and shows 0. Convert to an intermediate unit such as MB or KB instead.
Does switching modes change the number I typed?
No. The value and the two list positions stay where they are; only the unit labels and factors change. 1 MB to GB (0.001) becomes 1 MiB to GiB (0.0009765625) when you switch to Binary.
Sources and further reading
- NIST, Prefixes for binary multiples: the kibi, mebi, gibi and tebi prefixes approved by the IEC in December 1998 and the reason they exist
- NIST, Metric (SI) Prefixes: kilo, mega, giga and tera as powers of 1000 and the lowercase k symbol
- Wikipedia, Binary prefix: IEC 80000-13, how Windows, macOS and Linux report sizes, and the history of the 1000 versus 1024 ambiguity
- MDN Web Docs, Number.prototype.toLocaleString(): the locale-dependent grouping and decimal separators used in the result