Data Size Converter

Convert between digital storage units — bits, bytes, kilobytes (KB), megabytes (MB), gigabytes (GB), terabytes (TB), plus the binary kibibyte/mebibyte/gibibyte (KiB/MiB/GiB). Pick any two; it runs entirely in your browser.

Try:

Decimal vs binary: this converter uses the SI/decimal convention for KB/MB/GB/TB (1 KB = 1,000 bytes), as storage makers and networks do. The binary units — KiB = 1,024 bytes, MiB = 1,048,576 bytes, GiB = 1,073,741,824 bytes — are listed separately, because operating systems often display binary sizes under the decimal names. 8 bits = 1 byte.

Popular data-size conversions

All data-size conversions

Show all 16 data-size conversions

Units in this converter

UnitWhat it is
Bit (bit)A bit is a single binary digit (0 or 1). 8 bits = 1 byte.
Byte (B)A byte is 8 bits — the basic addressable unit of computer storage.
Kilobyte (KB)A kilobyte is 1,000 bytes in the SI/decimal convention used by storage makers and networks. The 1,024-byte unit is the kibibyte (KiB).
Megabyte (MB)A megabyte is 1,000,000 bytes (decimal). The binary 1,048,576-byte unit is the mebibyte (MiB).
Gigabyte (GB)A gigabyte is 1,000,000,000 bytes (decimal). The binary unit is the gibibyte (GiB) = 1,073,741,824 bytes.
Terabyte (TB)A terabyte is 10¹² bytes (decimal). The binary unit is the tebibyte (TiB).
Kibibyte (KiB)A kibibyte is exactly 1,024 bytes (2¹⁰) — the binary (IEC) unit operating systems often label "KB".
Mebibyte (MiB)A mebibyte is exactly 1,048,576 bytes (2²⁰) — the binary unit often shown as "MB" by operating systems.
Gibibyte (GiB)A gibibyte is exactly 1,073,741,824 bytes (2³⁰) — the binary unit often shown as "GB" by operating systems.

Sources and standards

Every factor on these pages is computed from each unit's definition in terms of the category's base unit, then re-verified automatically on each build. The references below are the authorities those definitions come from.