Data Storage Converter
Convert between 26 data storage units: bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes and binary KiB, MiB, GiB and TiB.
How to use this calculator
Enter a data size, choose the unit you have and the unit you want. Decimal (SI) units such as MB and GB use powers of 1,000; binary (IEC) units such as MiB and GiB use powers of 1,024. Drive makers and networks use decimal units, while many operating systems report binary sizes, which explains why a "1 TB" drive shows about 931 GB.
Formula
Every unit is defined by its exact size in bits (bit). Result = value × (size of the unit you convert from ÷ size of the unit you convert to). For example, 1 GB = 0.9313225746 GiB.
Decimal and binary data units
This data storage converter includes 26 units grouped as Bits & bytes, Decimal (SI) bytes, Binary (IEC) bytes, Decimal (SI) bits and Binary (IEC) bits. It removes the confusion between MB and MiB, GB and GiB, and bits and bytes when comparing drives, memory, downloads and internet plans.
Common data storage conversions
| From | To |
|---|---|
| 1 B | 8 bit |
| 1 kB | 1,000 B |
| 1 KiB | 1,024 B |
| 1 GB | 1,000 MB |
| 1 GiB | 1,024 MiB |
| 1 TB | 931.3225746 GiB |
| 1 GB | 0.9313225746 GiB |
| 1 MB | 8 Mbit |
All 26 data storage units in this converter
| Unit | Symbol | Value |
|---|---|---|
| Bits & bytes | ||
| Bit | bit | 1 bit = 1 bit |
| Nibble (4 bits) | nibble | 1 nibble = 4 bit |
| Byte (8 bits) | B | 1 B = 8 bit |
| Decimal (SI) bytes | ||
| Kilobyte | kB | 1 kB = 8,000 bit |
| Megabyte | MB | 1 MB = 8,000,000 bit |
| Gigabyte | GB | 1 GB = 8,000,000,000 bit |
| Terabyte | TB | 1 TB = 8,000,000,000,000 bit |
| Petabyte | PB | 1 PB = 8 × 10¹⁵ bit |
| Exabyte | EB | 1 EB = 8 × 10¹⁸ bit |
| Zettabyte | ZB | 1 ZB = 8 × 10²¹ bit |
| Yottabyte | YB | 1 YB = 8 × 10²⁴ bit |
| Binary (IEC) bytes | ||
| Kibibyte | KiB | 1 KiB = 8,192 bit |
| Mebibyte | MiB | 1 MiB = 8,388,608 bit |
| Gibibyte | GiB | 1 GiB = 8,589,934,592 bit |
| Tebibyte | TiB | 1 TiB = 8,796,093,022,208 bit |
| Pebibyte | PiB | 1 PiB = 9.007199255 × 10¹⁵ bit |
| Exbibyte | EiB | 1 EiB = 9.223372037 × 10¹⁸ bit |
| Decimal (SI) bits | ||
| Kilobit | kbit | 1 kbit = 1,000 bit |
| Megabit | Mbit | 1 Mbit = 1,000,000 bit |
| Gigabit | Gbit | 1 Gbit = 1,000,000,000 bit |
| Terabit | Tbit | 1 Tbit = 1,000,000,000,000 bit |
| Petabit | Pbit | 1 Pbit = 1 × 10¹⁵ bit |
| Binary (IEC) bits | ||
| Kibibit | Kibit | 1 Kibit = 1,024 bit |
| Mebibit | Mibit | 1 Mibit = 1,048,576 bit |
| Gibibit | Gibit | 1 Gibit = 1,073,741,824 bit |
| Tebibit | Tibit | 1 Tibit = 1,099,511,627,776 bit |
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewWasiMathematics and Physics Instructor, Mechanical Engineer
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
How many MB are in a GB?
In decimal (SI) units, 1 GB = 1,000 MB. In binary (IEC) units, 1 GiB = 1,024 MiB. Many apps write GB when they mean GiB.
Why does my 1 TB drive show 931 GB?
The drive is 1,000,000,000,000 bytes. The operating system divides by 1,024³ and shows the result as "GB", which is really 931.3225746 GiB.
What is the difference between a bit and a byte?
A bit is a single 0 or 1. A byte is 8 bits. Internet speeds are given in bits per second (Mbps), file sizes in bytes (MB), so divide Mbps by 8 to get MB per second.
What are KiB, MiB and GiB?
They are binary prefixes defined by the IEC in 1998: kibi (2¹⁰ = 1,024), mebi (2²⁰), gibi (2³⁰), tebi (2⁴⁰). They remove the ambiguity of using kilo, mega and giga for powers of two.
How many bytes are in a kilobyte?
1 kB (kilobyte) is 1,000 bytes; 1 KiB (kibibyte) is 1,024 bytes.
How many GB is a terabyte?
1 TB = 1,000 GB in decimal units; 1 TiB = 1,024 GiB in binary units.
What is a nibble?
A nibble is 4 bits, half a byte. One hexadecimal digit represents exactly one nibble.
How many megabits are in a megabyte?
One megabyte is 8 megabits. A 100 Mbps connection can move at most 12.5 MB per second, before overheads.
Which units does RAM use?
Memory is built in powers of two, so 16 GB of RAM is really 16 GiB (17,179,869,184 bytes).
How big is a petabyte?
A petabyte is 1,000 terabytes, or 10¹⁵ bytes. A pebibyte is 2⁵⁰ bytes, about 12.6% larger.
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- National Institute of Standards and Technology. (n.d.). Prefixes for binary multiples. NIST Reference on Constants, Units, and Uncertainty. View source
- International Electrotechnical Commission. (2025). IEC 80000-13: Quantities and units—Part 13: Information science and technology (2nd ed.). View source
- Bureau International des Poids et Mesures. (2019). The International System of Units (SI) (9th ed.). View source
- Institute of Electrical and Electronics Engineers. (n.d.). Bit rate. View source