Skip to content

Data Storage Converter

Bytes, KB, MB, GB and TB, binary or decimal.

Reviewed by the Calculation Machine team · Updated 24 October 2026 · How we check our maths

Your values

ⓘ Live results

Results
Bytes
1,000,000,000,000
Megabytes
1000000
Gigabytes
1000
Shown by Windows (binary)
931.32 GB
UnitValue
B1000000000000
KB1000000000
MB1000000
GB1000
TB1

Quick answer

Storage units step up by 1,000 in the decimal (SI) system used by drive makers — 1 GB = 1,000 MB — and by 1,024 in the binary (IEC) system used by Windows and RAM — 1 GiB = 1,024 MiB. The gap grows with size: a drive sold as 1 TB holds 1,000,000,000,000 bytes, which Windows displays as 931.32 GB.

What the Data Storage Converter does

This converter turns an amount of data in bytes, kilobytes, megabytes, gigabytes or terabytes into every other unit, using either the decimal standard (powers of 1,000) or the binary standard (powers of 1,024). It also shows how Windows would report a decimal size, which answers the most common question about storage: why a new drive, phone or memory card shows less space than advertised.

No space is missing. Manufacturers, macOS, iOS and network speeds use decimal units; Windows and RAM sizes use binary units but label them with the decimal names KB, MB and GB. The formal binary names — KiB, MiB, GiB, TiB — exist to remove the ambiguity, but are rarely shown to consumers.

Formatting a drive also reserves some space for the file system, and phones and computers set aside room for the operating system, so usable space is a little lower again. To estimate how long a file takes to transfer, use the download time calculator.

The formula

Decimal: 1 KB = 1,000 B, 1 MB = 1,000² B, 1 GB = 1,000³ B, 1 TB = 1,000⁴ B Binary: 1 KiB = 1,024 B, 1 MiB = 1,024² B, 1 GiB = 1,024³ B, 1 TiB = 1,024⁴ B Size shown by Windows (GB) = bytes ÷ 1,073,741,824

Formula variables
SymbolMeaningUnit
BByte, 8 bitsbytes
1,000SI decimal prefix step (kilo, mega, giga, tera)—
1,024IEC binary prefix step (kibi, mebi, gibi, tebi), 2¹⁰—
1,073,741,824Bytes in one gibibyte, 1,024³bytes

The decimal prefixes are SI prefixes defined by the BIPM; the binary prefixes were standardized by the International Electrotechnical Commission in 1998 and are now part of IEC 80000-13. The "Shown by Windows" figure applies the binary divisor to the bytes, which is what Windows File Explorer does even though it labels the result GB. Data rates (Mbps, Gbps) always use decimal prefixes and bits, not bytes.

Worked examples

Why a 500 GB SSD shows 465 GB

A new SSD sold as 500 GB, using the decimal standard the manufacturer uses.

Inputs

  • Amount500
  • FromGigabytes
  • StandardDecimal (SI)

Result

  • Bytes500,000,000,000
  • Megabytes500000
  • Gigabytes500
  • Shown by Windows (binary)465.66 GB

500 billion bytes is 465.66 GB in Windows' binary units — about 7% less on screen, with every byte still there. File-system overhead then takes a little more.

RAM in bytes

A computer with 16 GB of memory, which is always sized in binary units.

Inputs

  • Amount16
  • FromGigabytes
  • StandardBinary (IEC)

Result

  • Bytes17,179,869,184
  • Megabytes16384
  • Gigabytes16
  • Shown by Windows (binary)16 GB

16 GiB is 17,179,869,184 bytes. RAM chips are built in powers of two, so memory sizes are true binary gigabytes, unlike drive sizes.

External backup drive capacity

A 2 TB external drive bought to back up a laptop, checked against the space Windows will report.

Inputs

  • Amount2
  • FromTerabytes
  • StandardDecimal (SI)

Result

  • Bytes2,000,000,000,000
  • Megabytes2000000
  • Gigabytes2000
  • Shown by Windows (binary)1862.65 GB

Windows will show about 1,862 GB, or 1.82 TB. Plan backups on the smaller figure and leave 10–20% free for versions and growth.

How far decimal and binary units drift apart

The difference is small for kilobytes but grows by about 2.4 percentage points with each step up, which is why it is most noticeable on large drives.

Decimal versus binary units
Decimal unitBinary unitBinary is larger by1 decimal unit shown as
1 KB = 1,000 B1 KiB = 1,024 B2.4%0.977 KiB
1 MB = 1,000,000 B1 MiB = 1,048,576 B4.9%0.954 MiB
1 GB = 10⁹ B1 GiB = 1,073,741,824 B7.4%0.931 GiB
1 TB = 10¹² B1 TiB = 1,099,511,627,776 B10.0%0.909 TiB
1 PB = 10¹⁵ B1 PiB = 1,125,899,906,842,624 B12.6%0.888 PiB

Which systems use which units

  • Decimal (1,000): hard drive, SSD, USB stick and memory card capacities; macOS (since Mac OS X 10.6) and iOS storage displays; most Linux desktop file managers; internet and network speeds; cloud storage plans.
  • Binary (1,024): Windows File Explorer, RAM and cache sizes, and many command-line tools.

Because Windows and macOS count differently, the same file can show as different sizes on each. A video that macOS reports as 4.3 GB appears as about 4.0 GB in Windows.

Bits versus bytes

Storage is measured in bytes (B) and connection speeds in bits (b) per second. One byte is 8 bits, so a 100 Mbps connection moves at most 12.5 MB of data per second. Watch the capital B: 1 MB is a megabyte, 1 Mb a megabit. For estimating how much space recordings take, the video file size calculator converts bitrates into file sizes, and the base converter shows why powers of two such as 1,024 are round numbers in binary.

How to use the Data Storage Converter

  1. 1Enter the amount of data.
  2. 2Choose its unit: bytes, KB, MB, GB or TB.
  3. 3Choose the standard: decimal (SI) for drive and card capacities and download sizes, binary (IEC) for RAM and sizes reported by Windows.
  4. 4Read the value in other units, and the size Windows would show for that number of bytes.

Frequently asked questions

Why does my 1 TB drive show only 931 GB?

The maker counts 1 TB as 1,000,000,000,000 bytes, while Windows divides by 1,024³ and still calls the result GB. 10¹² ÷ 1,073,741,824 = 931.32, so no space is actually missing.

Is 1 GB 1,000 MB or 1,024 MB?

Officially, 1 GB is 1,000 MB, and 1,024 MiB make 1 GiB. In everyday use, Windows and RAM sizes still call 1,024 MB a gigabyte, so check which convention a figure uses.

How many bytes are in a gigabyte?

1,000,000,000 bytes in the decimal standard, or 1,073,741,824 bytes for a binary gigabyte (gibibyte).

How many GB are in a TB?

1,000 GB in decimal units, as drives are sold, or 1,024 GiB in binary units.

What is the difference between MB and MiB?

A megabyte (MB) is 1,000,000 bytes; a mebibyte (MiB) is 1,048,576 bytes, about 4.9% more. The "i" names were created to make binary units unambiguous.

References

  • IEC 80000-13, Quantities and units — Information science and technology — International Electrotechnical Commission
  • The International System of Units (SI Brochure) — SI prefixes — Bureau International des Poids et Mesures (BIPM)
  • Prefixes for binary multiples — National Institute of Standards and Technology

About this calculator