Data Size Converter (Bytes, KB, MB, GB, TB, MiB vs MB)

Convert MB to GB, GB to MB, bytes to MB, KB to MB and more. See every answer in both decimal (MB) and binary (MiB) units. It runs in your browser.

Convert a data size

Result

1 GB = 1,000 MB

Decimal units (1,000 steps)

Bits
8,000,000,000 bit
Bytes
1,000,000,000 B
Kilobytes
1,000,000 KB
Megabytes
1,000 MB
Gigabytes
1 GB
Terabytes
0.001 TB
Petabytes
0.000001 PB

Binary units (1,024 steps)

Kibibytes
976,562.5 KiB
Mebibytes
953.6743 MiB
Gibibytes
0.9313 GiB
Tebibytes
0.0009 TiB
Pebibytes
8.9e-7 PiB

MB to GB table

MBGB (÷1,000)GiB (MiB ÷1,024)
10.0010.001
50.0050.0049
100.010.0098
250.0250.0244
1000.10.0977
5000.50.4883
1,00010.9766
1,0241.0241
5,00054.8828
10,000109.7656

Why a 500 GB drive shows less space

Drive makers count 1 GB as 1,000,000,000 bytes. Windows reports in 1,024-based units but still writes "GB". So the same drive reads smaller:

Advertised (GB)Shown by Windows (GiB)
128 GB119.21
256 GB238.42
500 GB465.66
512 GB476.84
1,000 GB931.32
2,000 GB1,862.65
4,000 GB3,725.29

How to convert data sizes

  1. Type the size. Decimals and commas are fine.
  2. Choose the unit you have and the unit you want, or press Swap.
  3. Read the answer, or see the same size in every decimal and binary unit below it.

MB vs MiB

  • Decimal (SI): 1 KB = 1,000 B, 1 MB = 1,000 KB, 1 GB = 1,000 MB, 1 TB = 1,000 GB.
  • Binary (IEC): 1 KiB = 1,024 B, 1 MiB = 1,024 KiB, 1 GiB = 1,024 MiB, 1 TiB = 1,024 GiB.
  • 1 byte = 8 bits. This tool converts storage sizes, not network speeds.

Related tools

Estimate text size in tokens with the AI tokens calculator, size embeddings with the vector database storage calculator, work out network ranges with the subnet calculator, or convert other units with the length converter.

See also

Frequently Asked Questions (FAQ)

How many MB are in a GB?

In decimal (SI) units, 1 GB = 1,000 MB. In binary units, 1 GiB = 1,024 MiB. Storage makers and most network tools use the decimal figure.

How do I convert MB to GB?

Divide the megabytes by 1,000. For example 2,500 MB ÷ 1,000 = 2.5 GB. For binary units divide MiB by 1,024 to get GiB.

How do I convert GB to MB?

Multiply the gigabytes by 1,000. For example 4 GB × 1,000 = 4,000 MB.

How many bytes are in a MB?

One MB is 1,000,000 bytes. One MiB (mebibyte) is 1,048,576 bytes (1,024 × 1,024).

How do I convert KB to MB?

Divide the kilobytes by 1,000 (decimal) or 1,024 (binary KiB to MiB). For example 5,000 KB = 5 MB.

What is the difference between MB and MiB?

MB means 1,000,000 bytes. MiB means 1,048,576 bytes. The same split applies to KB/KiB, GB/GiB and TB/TiB. The binary gap grows with each step: about 2.4% at KB, 4.9% at MB, 7.4% at GB and 10% at TB.

Why does my 500 GB drive show only 465 GB?

The maker counts 1 GB as 1,000,000,000 bytes, but Windows reports sizes in 1,024-based units while labelling them GB. 500 GB is 465.66 GiB. No space is missing; it is two definitions of GB.

Is my data uploaded?

No. The conversion runs in your browser and nothing you type leaves your device.