CONVERTERS
Data Storage Converter
Convert data amounts between bits and bytes, decimal SI units, and binary IEC units. Decimal and binary standards use different factors, so the converter labels every unit unambiguously and shows the factor and formula used.
How data storage conversions work
Each unit is stored as an exact factor in bits. The converter multiplies the source value by its bit factor and divides by the destination factor. Because one byte is exactly 8 bits, converting 1 byte gives 8 bits and converting 8 bits gives 1 byte.
Bits use a lowercase b and bytes use an uppercase B. The decimal SI units are kilobits (kb), megabits (Mb), gigabits (Gb), and terabits (Tb), plus kilobytes (kB), megabytes (MB), gigabytes (GB), and terabytes (TB). The binary IEC units use KiB, MiB, GiB, and TiB for bytes and Kib, Mib, Gib, and Tib for bits. This converter never uses KB, MB, or GB to mean a binary unit.
Decimal versus binary standards
Decimal SI units use powers of 1000, matching the prefixes used for other metric quantities. Binary IEC units use powers of 1024, which matches how computers address memory in powers of two.
1 kB = 1,000 bytes,1 MB = 1,000,000 bytes,1 GB = 1,000,000,000 bytes, and1 TB = 1,000,000,000,000 bytes1 KiB = 1,024 bytes,1 MiB = 1,048,576 bytes,1 GiB = 1,073,741,824 bytes, and1 TiB = 1,099,511,627,776 bytes- The same prefixes apply to bits: for example,
1 Mb = 1,000,000 bitsand1 Mib = 1,048,576 bits
This difference is why a storage device advertised in decimal gigabytes shows a smaller number in an operating system that reports binary gibibytes. Converting 1 GB to GiB gives about 0.9313225746 GiB.
Data storage converter FAQ
Is a kilobyte 1000 or 1024 bytes?
A kilobyte (kB) is 1000 bytes under the decimal SI standard. A kibibyte (KiB) is 1024 bytes under the binary IEC standard. Both are supported here and are never treated as the same unit.
Can I convert fractional data amounts?
Yes. Fractional values are accepted and converted directly, including fractions of a bit or byte. The result is a mathematical value and is formatted with up to 12 significant digits.
Why do very large values use scientific notation?
Values at or above 1e15 and values below 1e-6 use scientific notation so the result stays readable. NaN and Infinity are rejected before any result is shown.
Is my input sent anywhere?
No. The conversion runs locally in this page and nothing is saved between visits. The only external script is the advertising tag described in the privacy policy. You can also try the volume converter or the temperature converter.
Last updated: