Skip to content

Data Storage Converter for Bits, Bytes, MB, GB and TB

Convert any file size or capacity between 14 units of bits and bytes, and choose for yourself whether a megabyte means 1,000,000 bytes or 1,048,576.

Runs in your browserFree, no sign-upLast reviewed

Settings

Results update automatically as you type.

Result

0.001 GB

Conversion details

Input
1 MB
Megabyte — SI (1,000 kB)
Formula
1 MB = 0.001 GB
Rounded
0 GB

Same value in every unit

UnitValue
Bit8000000 bit
Kilobit (1,000 bits)8000 kbit
Megabit (1,000 kbit)8 Mbit
Gigabit (1,000 Mbit)0.008 Gbit
Byte (8 bits)1000000 B
Kilobyte — SI (1,000 B)1000 kB
Megabyte — SI (1,000 kB)1 MB
Gigabyte — SI (1,000 MB)0.001 GB
Terabyte — SI (1,000 GB)0.000001 TB
Petabyte — SI (1,000 TB)1.000000e-9 PB
Kibibyte — binary (1,024 B)976.5625 KiB
Mebibyte — binary (1,024 KiB)0.953674 MiB
Gibibyte — binary (1,024 MiB)0.000931 GiB
Tebibyte — binary (1,024 GiB)9.094947e-7 TiB

Quick answers

How many bits are in a megabyte?
One megabyte (MB) is 8,000,000 bits using the SI definition of 1,000,000 bytes. If the megabyte is the binary kind of 1,048,576 bytes, correctly called a mebibyte (MiB), it is 8,388,608 bits. Both come from multiplying the byte count by 8.
How many bytes are in a megabyte?
1,000,000 bytes in an SI megabyte (MB) and 1,048,576 bytes in a binary megabyte, the mebibyte (MiB). The binary figure is 1,024 × 1,024, which is 2 to the power of 20.
How many bits are in a gigabyte?
One gigabyte (GB) is 8,000,000,000 bits, or 8 gigabits. One gibibyte (GiB), the 1,024-based version, is 8,589,934,592 bits. One terabyte (TB) is 8,000,000,000,000 bits and one tebibyte (TiB) is 8,796,093,022,208 bits.
How many megabytes are in a petabyte?
One petabyte (PB) is 1,000,000,000 megabytes in SI units, which is also 1,000,000 GB or 1,000 TB. Going the other way, one megabyte is 0.000000001 PB, which the tool displays as 1.000000e-9 PB.
Is a megabit the same as a megabyte?
No. A megabit (Mbit, often written Mb) is 1,000,000 bits, and a megabyte (MB) is 8,000,000 bits, so a megabyte is eight megabits. Internet speeds are quoted in megabits per second and file sizes in megabytes.
What is a megabyte as a power of 2?
A binary megabyte, the mebibyte, is 2^20 bytes (1,048,576), which is 2^23 bits (8,388,608). An SI megabyte is 10^6 bytes and is not an exact power of 2.

About Data Storage Converter

This data storage converter changes a size between bits, kilobits, megabits, gigabits, bytes, and the byte multiples from kilobyte up to petabyte. One megabyte is 8,000,000 bits when a megabyte means 1,000,000 bytes, the SI definition drive makers use. It is 8,388,608 bits when it means 1,048,576 bytes, the binary size that operating systems often report and that is properly called a mebibyte (MiB). This tool lists SI units (kB, MB, GB, TB, PB) and binary units (KiB, MiB, GiB, TiB) as separate choices, so the answer matches whichever convention your drive label, operating system or config file uses.

Megabytes to bits (MB to bits) conversion table

The middle column uses the Megabyte — SI (1,000 kB) unit. The right column uses Mebibyte — binary (1,024 KiB), for when your megabytes are 1,024-based.

MegabytesBits (SI MB, 1,000,000 bytes)Bits (binary MiB, 1,048,576 bytes)
18,000,0008,388,608
216,000,00016,777,216
540,000,00041,943,040
1080,000,00083,886,080
25200,000,000209,715,200
50400,000,000419,430,400
100800,000,000838,860,800
5004,000,000,0004,194,304,000
1,0008,000,000,0008,388,608,000

The Result line shows plain digits such as 8000000 bit. The Rounded line adds the thousands separators.

Bits to bytes to kilobytes to megabytes to gigabytes: every unit in the tool

What one of each unit equals in bytes and bits.

UnitBytesBitsStep
Bit0.1251Smallest unit
Byte (B)188 bits
Kilobyte (kB)1,0008,00010^3 bytes
Megabyte (MB)1,000,0008,000,00010^6 bytes
Gigabyte (GB)1,000,000,0008,000,000,00010^9 bytes
Terabyte (TB)1,000,000,000,0008,000,000,000,00010^12 bytes
Petabyte (PB)1,000,000,000,000,0008,000,000,000,000,00010^15 bytes
Kibibyte (KiB)1,0248,1922^10 bytes
Mebibyte (MiB)1,048,5768,388,6082^20 bytes
Gibibyte (GiB)1,073,741,8248,589,934,5922^30 bytes
Tebibyte (TiB)1,099,511,627,7768,796,093,022,2082^40 bytes
Kilobit (kbit)1251,00010^3 bits
Megabit (Mbit)125,0001,000,00010^6 bits
Gigabit (Gbit)125,000,0001,000,000,00010^9 bits

Bit units are decimal only, as they are in networking. For one petabyte the Result line switches to scientific notation: 1.000000e+15 B and 8.000000e+15 bit.

Advertised drive size versus the size in binary units

Drives are sold in SI gigabytes and terabytes. Windows counts in binary units but still labels them GB and TB, so the number it reports looks smaller. Convert from Gigabyte — SI (1,000 MB) to Gibibyte — binary (1,024 MiB) to get the figure.

On the boxBytesIn binary units
16 GB16,000,000,00014.901161 GiB
32 GB32,000,000,00029.802322 GiB
64 GB64,000,000,00059.604645 GiB
128 GB128,000,000,000119.20929 GiB
256 GB256,000,000,000238.418579 GiB
500 GB500,000,000,000465.661287 GiB
512 GB512,000,000,000476.837158 GiB
1 TB1,000,000,000,000931.322575 GiB
2 TB2,000,000,000,0001.818989 TiB
4 TB4,000,000,000,0003.637979 TiB
8 TB8,000,000,000,0007.275958 TiB

Windows shows these binary figures with a GB or TB label and may round them differently. Formatting and recovery partitions take a little more on top. No storage is missing; the same bytes are counted in larger units.

The megabyte to bit formula

bits = megabytes × 8,000,000 (SI) or bits = mebibytes × 8,388,608 (binary)

A byte is 8 bits. An SI megabyte is 1,000 × 1,000 bytes, so 1,000,000 × 8 = 8,000,000 bits. A mebibyte is 1,024 × 1,024 bytes, so 1,048,576 × 8 = 8,388,608 bits. For the reverse direction divide: 8,000,000 bits is exactly 1 MB and 8,388,608 bits is exactly 1 MiB. The same pattern scales up: multiply by 1,000 per step for kB, MB, GB, TB and PB, and by 1,024 per step for KiB, MiB, GiB and TiB.

Worked conversions

1 MB to bits

Value 1, From Megabyte — SI (1,000 kB), To Bit

8000000 bit, with Formula 1 MB = 8000000 bit

Switch From to Mebibyte — binary (1,024 KiB) and the Result becomes 8388608 bit.

Megabytes to gigabytes (the default pair)

Value 1500, From Megabyte — SI (1,000 kB), To Gigabyte — SI (1,000 MB)

1.5 GB

In binary units, 1,024 MiB is exactly 1 GiB, while 1,024 MB is 1.024 GB.

Megabytes to petabytes

Value 250000000, From Megabyte — SI (1,000 kB), To Petabyte — SI (1,000 TB)

0.25 PB

A single megabyte is 1.000000e-9 PB, and a single bit is 1.250000e-16 PB.

Bits to gigabytes

Value 8000000000, From Bit, To Gigabyte — SI (1,000 MB)

1 GB

One bit on its own is 1.250000e-10 GB, and 1,000,000,000 bits is 0.125 GB.

Broadband speed to download rate

Value 100, From Megabit (1,000 kbit), To Megabyte — SI (1,000 kB)

12.5 MB

A 100 Mbit/s line therefore moves at most 12.5 MB each second, or 11.920929 MiB. A 4 GB file is 32,000 Mbit, which takes 320 seconds at that speed.

An upload limit in bytes

Value 25, From Megabyte — SI (1,000 kB), To Byte (8 bits)

25000000 B

If the software means mebibytes, 25 MiB is 26214400 B. Using the wrong one makes the limit about 4.9 percent off.

Why a megabyte has two sizes

Computer memory is addressed in binary, so its sizes fall on powers of two. Early engineers noticed that 2^10, or 1,024, is close to 1,000 and borrowed the metric prefix kilo for it. The habit carried up through mega and giga, even though SI prefixes are strictly decimal.

The gap grows at each step. A kibibyte is 2.4 percent larger than a kilobyte, a mebibyte 4.9 percent larger than a megabyte, a gibibyte 7.4 percent larger than a gigabyte and a tebibyte about 10 percent larger than a terabyte.

In 1998 the IEC introduced the names kibibyte, mebibyte, gibibyte and tebibyte (KiB, MiB, GiB, TiB) for the 1,024-based sizes, leaving kB, MB, GB and TB to mean powers of 1,000. Usage is still mixed. Drive, SSD and memory card makers use the decimal units. Windows reports binary quantities but labels them KB, MB and GB. macOS has shown decimal units since 2009, so a drive's advertised size matches what Finder reports. RAM is sold in binary sizes, so 16 GB of RAM is really 16 GiB, or 17.179869 GB. Network speeds and data caps are decimal.

What this converter does not cover

  • Nothing larger than a petabyte or a tebibyte: there is no exabyte, zettabyte or pebibyte option.
  • No binary bit units. Kilobit, megabit and gigabit are 1,000-based only; kibibit and mebibit are not offered.
  • No transfer times. It converts sizes, not speeds, so work out seconds yourself by dividing megabits by megabits per second.
  • Results are shown to six decimal places. Anything smaller than 0.000001 or at least 1,000,000,000,000,000 is written in scientific notation, such as 1.250000e-7.
  • The Rounded line keeps only two decimals, so small results show as 0 there even when the Result line is correct.

Step by step

  1. 1

    Enter the size in the Value box, for example 1.

  2. 2

    In the From list choose the unit you have, for example Megabyte — SI (1,000 kB) or Mebibyte — binary (1,024 KiB). Each option states its size in brackets.

  3. 3

    In the To list choose the unit you want, such as Bit or Gigabyte — SI (1,000 MB).

  4. 4

    Read the Result. The Formula line under Conversion details shows how many of the target unit make one of the source unit.

  5. 5

    Scroll to the Same value in every unit table to compare the SI and binary answers side by side without changing the lists.

Frequently asked questions

Does this converter use 1,000 or 1,024?
Both, as separate units. Kilobyte, megabyte, gigabyte, terabyte and petabyte are 1,000-based SI units. Kibibyte, mebibyte, gibibyte and tebibyte are 1,024-based. Pick the pair that matches your source, or read both from the table under the result.
Why does my 1 TB drive show as 931 GB?
The drive holds 1,000,000,000,000 bytes, which is 1 TB in SI units. Windows divides by 1,024 three times and labels the answer GB, giving 931.32. Converting 1 TB to gibibytes in this tool returns the same 931.322575.
How do I convert MB to GB?
Divide megabytes by 1,000 for SI units: 500 MB is 0.5 GB and 2,048 MB is 2.048 GB. For binary units divide mebibytes by 1,024: 4,096 MiB is exactly 4 GiB.
What is the difference between Mb and MB?
A lower-case b means bits and an upper-case B means bytes. Mb (megabit) is 125,000 bytes; MB (megabyte) is 1,000,000 bytes. The tool writes megabit as Mbit to avoid the mix-up. A 300 Mbit/s connection delivers up to 37.5 MB per second.
Is there such a thing as a millibyte?
Not in practice. Milli means one thousandth, and a thousandth of a byte is smaller than a single bit, so the unit is not used. People searching for millibytes to gigabytes almost always mean megabytes: 1,000 MB is 1 GB.
Which unit should I pick for RAM, SSDs and file sizes?
Use SI units for anything a manufacturer or internet provider quotes: SSD and hard drive capacity, data allowances, bandwidth. Use binary units for RAM and for sizes reported by Windows or by Linux tools that print KiB, MiB and GiB.
How many bits are in a petabyte?
One petabyte is 8,000,000,000,000,000 bits, which is 8 × 10^15. The tool shows this as 8.000000e+15 bit on the Result line and writes it out in full on the Rounded line.
How many kilobytes are in a megabyte?
1,000 kB in an SI megabyte, or 976.5625 KiB. A mebibyte is exactly 1,024 KiB. Older documentation that says 1 MB = 1,024 KB is using the binary sizes with the SI names.

Looking for something else? Browse all converters or see every tool.