CalcThis CalcThis
Bytes, KB, MB, GB, TB, KiB, MiB, GiB and bits

Data Storage Converter

Convert bits, bytes, KB, MB, GB, TB and PB — and the binary units KiB, MiB, GiB and TiB. Decimal and binary sizes are shown side by side, so you can see why a 1 TB drive reads about 931 GB in Windows.

Convert

Converter
From
To
Result
—
Enter a value to convert.
Result
—

How to convert data storage

There are two systems. Storage makers and the SI system use decimal prefixes: 1 GB = 1,000 MB. Computers address memory in powers of two, so the IEC created binary units: 1 GiB = 1,024 MiB. A byte is 8 bits. A 1 TB drive holds 1,000,000,000,000 bytes, which is 931.32 GiB — the number Windows shows, labelled “GB”.

The formula

1 GB = 1,000 MB (decimal) · 1 GiB = 1,024 MiB (binary)1 BYTE = 8 BITS · 1 KB = 1,000 BYTES · 1 KiB = 1,024 BYTES

Common conversions

Gigabytes to megabytes

GigabytesMegabytes
1 GB1,000 MB
2 GB2,000 MB
5 GB5,000 MB
10 GB10,000 MB
100 GB100,000 MB

Megabytes to gigabytes

MegabytesGigabytes
100 MB0.1 GB
500 MB0.5 GB
1,000 MB1 GB
2,500 MB2.5 GB
5,000 MB5 GB

Terabytes to gigabytes

TerabytesGigabytes
0.5 TB500 GB
1 TB1,000 GB
2 TB2,000 GB
4 TB4,000 GB
8 TB8,000 GB

Gigabytes to gibibytes

GigabytesGibibytes
1 GB0.93132257 GiB
128 GB119.20929 GiB
256 GB238.41858 GiB
512 GB476.83716 GiB
1,000 GB931.32257 GiB

Sources: factors are the exact international definitions — BIPM SI Brochure, NIST Special Publication 811 and, for binary data units, IEC 80000-13.

Use the data storage converter

Type a value, pick the unit you have and the unit you want, and the answer appears with every other unit in the same family listed below it. Use the swap button to flip the two units. Under Go advanced you can set how many digits the result shows.

Popular conversions

Other converters

All unit converters

Also see the Recipe Converter, which scales and converts a whole recipe at once.

Common questions

How many MB are in a GB?

1 GB = 1,000 MB in the decimal system used by storage makers and networks, and 1 GiB = 1,024 MiB in the binary system.

Why does my 1 TB drive show less than 1 TB?

The drive is sold in decimal units: 1 TB is 931.32 GiB. Windows divides by 1,024 but still writes “GB”, so a 1 TB drive shows about 931.3 GB. macOS uses decimal units, so it shows 1 TB.

How many bytes are in a kilobyte?

1,000 bytes in the decimal system (1 KB = 1,000 B) and 1,024 bytes in the binary system (1 KiB = 1,024 B).

What is the difference between MB and Mb?

A capital B is bytes and a small b is bits: 1 MB = 8 Mb. Internet speeds are sold in megabits per second, so a 100 Mbps connection moves at most 12.5 MB of data per second.

How many GB are in a TB?

1 TB = 1,000 GB decimal, or 1 TiB = 1,024 GiB binary. A 256 GB phone is 238.42 GiB.