Data Storage Converter

Convert bytes, kilobytes, megabytes, gigabytes and terabytes, in both decimal (GB) and binary (GiB) units, plus bits.

Decimals, fractions (3 1/2) and e-notation (1.5e6) all work.
Common Conversions
Significant Digits
Result
Formula
Reverse
Exact?

In Every Unit

UnitValue

Saved Conversions

Conversions you add are saved in this browser.

NoteConversionRemove

How to Convert Data Storage Units

There are two systems. Decimal (SI) units step by 1,000: 1 GB = 1,000,000,000 bytes, which is what drive makers use. Binary (IEC) units step by 1,024: 1 GiB = 1,073,741,824 bytes, which is what Windows reports but labels "GB".

1 kB = 1,000 B   1 KiB = 1,024 B   1 byte = 8 bits

Worked Example

Common Conversions

FromEquals
1 GB0.9313226 GiB
1 TB931.3226 GiB
1 MB0.9536743 MiB
1 GB1,000 MB
1 TB1,000 GB
1 GiB1.073742 GB
1 B8 bit

Unit Definitions

UnitEqualsExact?
Bits (bit)0.125 byteExact
Bytes (B)1 byteExact
Kilobits (kb)125 byteExact
Megabits (Mb)125,000 byteExact
Gigabits (Gb)125,000,000 byteExact
Kilobytes (kB)1,000 byteExact
Megabytes (MB)1,000,000 byteExact
Gigabytes (GB)1,000,000,000 byteExact
Terabytes (TB)1 × 10¹² byteExact
Petabytes (PB)1 × 10¹⁵ byteExact
Kibibytes (KiB)1,024 byteExact
Mebibytes (MiB)1,048,576 byteExact
Gibibytes (GiB)1,073,741,824 byteExact
Tebibytes (TiB)1.099511628 × 10¹² byteExact
Pebibytes (PiB)1.125899907 × 10¹⁵ byteExact

Factors follow NIST Special Publication 811, Appendix B. "Exact" means the unit is defined as that value; results are rounded only for display.

Tips

That's why a new 1 TB drive shows up as about 931 "GB" in Windows: 10¹² ÷ 1024³ = 931.32 GiB. macOS uses decimal units and shows 1 TB.