Data Storage Converter

Convert bytes, KB, MB, GB and TB to KiB, MiB, GiB and TiB, and see why a 1 TB drive shows 931 GB.

1 kB =

0.000001 GB

Formula: GB = kB × 0.000001

KB is read as 1000 bytes; choose KiB for 1024.

In every unit of data storage

Precision
UnitValueCopy
Bits
Bit8,000 bit
Kilobit8 kbit
Megabit0.008 Mbit
Gigabit0.000008 Gbit
Bytes, decimal (1000)
Byte1,000 B
Kilobyte1 kB
Megabyte0.001 MB
Gigabyte0.000001 GB
Terabyte1 × 10⁻⁹ TB
Petabyte1 × 10⁻¹² PB
Bytes, binary (1024)
Kibibyte0.9765625 KiB
Mebibyte0.0009536743164 MiB
Gibibyte9.313225746 × 10⁻⁷ GiB
Tebibyte9.094947018 × 10⁻¹⁰ TiB
Pebibyte8.881784197 × 10⁻¹³ PiB

Converts data sizes between bits and bytes, the decimal units — kB, MB, GB, TB and PB — and the binary ones — KiB, MiB, GiB, TiB and PiB — plus kilobits, megabits and gigabits. One entry shows the result, the formula behind it and the same size in every other unit.

How to use it

Type a value and choose the units to convert from and to. The pickers accept gigs, bytes and other common spellings. Case tells bits from bytes: Mb is the megabit and MB the megabyte. KB is read as the decimal kilobyte of 1000 bytes, with a note beside the result; choose KiB for 1024.

Precision is Auto (up to 10 significant figures, and every whole-number digit) or Fixed (0 to 10 decimal places), and applies to the result and the table alike. Sizes cannot be negative.

Why a 1 TB drive shows 931 GB

Drive makers count in decimal units: a terabyte is a trillion bytes and a gigabyte a billion. The binary units count in powers of 1024 instead, so a gibibyte is 1,073,741,824 B and every step up the scale widens the gap.

A 1 TB drive is therefore 931.3225746 GiB, or 0.9094947018 TiB. Software that counts in binary units shows it as 931 GiB — or as 931 GB, where it keeps the decimal names for binary units. Nothing is missing. Formatting the drive takes some space on top of that.

A byte is 8 bits. The symbols tell them apart — b for bits, B for bytes — so a gigabit is 125 MB.

GiB = TB ÷ 0.001073741824
GiB = GB ÷ 1.073741824
MB = MiB × 1.048576
bit = B × 8

Examples

A 1 TB drive

1 TB is 931.3225746 GiB. Formula: GiB = TB ÷ 0.001073741824.

A file size in MiB

700 MiB is 734.0032 MB. Formula: MB = MiB × 1.048576.

Gigabits to megabytes

8 Gbit is 1,000 MB. Formula: MB = Gbit × 125.

Conversion tables

Drive sizes in binary units
Sold asGiBTiB
128 GB119.20928960.1164153218
256 GB238.41857910.2328306437
500 GB465.66128730.4547473509
512 GB476.83715820.4656612873
1 TB931.32257460.9094947018
2 TB1,862.6451491.818989404
4 TB3,725.2902983.637978807
8 TB7,450.5805977.275957614
16 TB14,901.1611914.55191523
Decimal and binary units
Binary unitDecimal unit1 binary unit is
KiBkB1.024 kB
MiBMB1.048576 MB
GiBGB1.073741824 GB
TiBTB1.099511628 TB
PiBPB1.125899907 PB

Definitions and sources

The decimal prefixes are the SI ones, counting in thousands. The binary prefixes — kibi, mebi, gibi, tebi and pebi — were standardised by the IEC to count in powers of 1024, so that kilo, mega and giga keep their decimal meaning. Storage makers state capacity in decimal units, while some operating systems and apps report it in binary ones.

Sources

Reviewed

See also