Skip to content

Data Storage Converter: GB vs GiB, MB, TB, Bits

Convert bytes, kB, MB, GB, TB and their binary KiB, MiB, GiB, TiB, plus bits and megabits.

Inputs

1 TB
931.322575 GiB

Use this calculator on your own site

Free embed

  • Two lines of HTML, unlimited views
  • Shows a small CalculateEveryday bar, with a credit link under the calculator

What each Data Storage input means

Value
The amount of data to convert, such as a drive's advertised size or a file's size.
From
Decimal units (kB, MB, GB, TB — powers of 1,000) are what drives and plans are sold in; binary units (KiB, MiB, GiB, TiB — powers of 1,024) are what many operating systems display. Bits are for network speeds.
To
The unit you want. The table lists the value in every unit, decimal and binary side by side.

Data Storage conversion formula

result = value × (bytes in one 'from' unit ÷ bytes in one 'to' unit) · 1 GB = 10⁹ bytes · 1 GiB = 2³⁰ bytes

xto=xfrom×ffromftox_{\text{to}} = x_{\text{from}} \times \frac{f_{\text{from}}}{f_{\text{to}}}

Two sets of prefixes are in use and they are not the same size. The SI ones — kilo, mega, giga, tera — mean powers of 1,000: 1 GB is 1,000,000,000 bytes, and drive makers and network speeds use them. The binary ones standardised by the IEC — kibi, mebi, gibi, tebi, written KiB, MiB, GiB, TiB — mean powers of 1,024: 1 GiB is 1,073,741,824 bytes, which is how memory and many operating systems count. The gap grows with size, from 2.4% at kilo to 10% at tera. Network speeds are in bits, and a byte is 8 bits. Until 2 Oct 2026 this page labelled the binary units KB, MB, GB; they now carry their IEC names and the decimal units sit beside them.

Data Storage conversion worked example

A 1 TB drive holds 10¹² bytes. In the binary units a computer reports, that is 10¹² ÷ 2³⁰ = 931.32 GiB — the '931 GB' you see after formatting, with nothing missing. Likewise a 100 Mbps connection moves 100,000,000 ÷ 8 = 12.5 MB a second.

More Data Storage examples

A 512 GB phone or SSD in binary units: 512 × 10⁹ bytes ÷ 1,073,741,824 = 476.837158 GiB, which is why the settings screen shows about 477 'GB' before any system files.

A 100 Mbit/s connection moves 100 ÷ 8 = 12.5 MB per second at best — divide by 8 because a byte is 8 bits.

A 1 TB drive as Windows counts it: 10¹² bytes ÷ 2³⁰ = 931.322575 GiB, the '931 GB' it reports.

Where the Data Storage converter can give the wrong answer

  • Windows shows binary sizes but labels them KB, MB, GB; macOS since 2009 uses decimal. The same file can show two sizes.
  • Free space is always less than the label, because the file system and pre-installed software use some; that is separate from the GB/GiB difference.
  • Lower-case b is bits, upper-case B bytes: 100 Mb/s is 12.5 MB/s.
  • Old share links that used KB, MB, GB, TB still open as the binary units they always meant.

Spotted a mistake? Tell us

Data Storage conversion reference table

Advertised capacity and what a binary-counting system shows
AdvertisedIn GiBIn TiB
64 GB59.60.058
128 GB119.210.116
256 GB238.420.233
512 GB476.840.466
1 TB931.320.909
2 TB1,862.651.819
4 TB3,725.293.638
Source: NIST, 'Prefixes for binary multiples' (IEC 60027-2): GiB = 2³⁰ bytes; GB = 10⁹ bytes

Data Storage conversion FAQ

The box counts 1 TB as 10¹² bytes; the computer counts in binary units, and 10¹² bytes is 931.32 GiB. Both describe the same space.