Free online tools
English EN, Choose a language

MB to GB converter

Convert megabytes to gigabytes and back as you type, in decimal (1,000) or binary (1,024) units, with a table.

Common values

Result

2.048 GB

2,048 MB = 2.048 GB

Rate
Reverse rate

Runs in your browser. Nothing you type is sent.

Related tools

All converters →

How to convert megabytes to gigabytes

  1. Type the number of megabytes in the first box (or the number of gigabytes in the second: the converter works both ways). The other box fills in as you type.
  2. Use the switch above the decimals setting to choose decimal (1 GB = 1,000 MB) or binary (1 GB = 1,024 MB) units: the result, the table and the formula all follow it.
  3. Choose how many decimal places you want. Auto keeps up to seven significant digits and drops trailing zeros; a fixed setting pads with zeros.
  4. Read the formula and the worked example under the result, then press Copy result (the full sentence) or Copy number (the value alone).

Formula: gigabytes = megabytes ÷ 1000. Dividing is the tidy form here, because 1 gigabyte is exactly 1000 megabytes. As a multiplier the same step is × 0.001 (rounded).

Worked examples

There are two conventions, so the converter has a switch. Decimal (SI): GB = MB ÷ 1,000. Binary: GB = MB ÷ 1,024, which strictly should be written GiB and MiB. Pick the one that matches the source of your number: storage makers, networks and phones use decimal; Windows file sizes and RAM use binary.

MB to GB conversion table

Each row shows megabytes in gigabytes twice: decimal (divide by 1,000) and binary (divide by 1,024). The gap between the two columns grows with size, which is why a drive sold as 500 GB looks smaller in an operating system that counts in binary units.

Megabytes (MB)Gigabytes (decimal)Gigabytes (binary)Good to know
10.00100.0010
100.01000.0098
250.02500.0244the usual email attachment limit (Gmail: 25 MB)
500.05000.0488
1000.10000.0977
2500.25000.2441
5000.50000.4883
5120.51200.5000512 MB
7000.70000.6836a CD-R holds about 700 MB
1,0001.00000.9766
1,0241.02401.00001.024 GB decimal, exactly 1 GB binary
2,0482.04802.0000
4,0964.09604.0000
4,7004.70004.5898a single-layer DVD holds 4.7 GB
5,0005.00004.8828
8,1928.19208.0000
10,00010.00009.7656
16,38416.384016.0000
25,00025.000024.4141a single-layer Blu-ray disc holds 25 GB
50,00050.000048.8281
65,53665.536064.0000
100,000100.000097.6562
1,000,0001,000.0000976.5625

Where MB and GB meet

File and storage sizes jump between megabytes and gigabytes constantly. An email provider that caps attachments at 25 MB, a phone plan that gives 5,000 MB a month, a game that needs 18,000 MB free, and a video file that is 1,536 MB are all easier to compare in one unit. Decimal and binary give different answers, so the switch matters: 5,000 MB is exactly 5 GB in decimal units and 4.8828 GB in binary units.

Cloud quotas, upload limits and backup sizes are the practical cases. A site that limits uploads to 2,048 MB is stating a binary 2 GB; a plan with 2 GB of data is usually decimal, 2,000 MB. Type megabytes in the first box or gigabytes in the second, flip the switch to see the other convention, and copy the number you need.

Why a 500 GB drive shows 465 GB, and other pitfalls

Drive makers count in decimal: a 500 GB drive holds 500,000,000,000 bytes. Windows divides by 1,024 three times, so it reports 500,000,000,000 ÷ 1,073,741,824 = 465.66 and labels it "GB" even though it means GiB. A 256 GB phone shows about 238 GiB in the same way. macOS has reported decimal sizes since version 10.6, so the same drive looks bigger on a Mac. Nothing is missing; the unit is different, and some of the space is also used by formatting and system files.

Another frequent slip is mixing megabytes (MB) with megabits (Mb). Network speeds are in megabits per second and files are in megabytes, with 8 bits to the byte. Downloading a 500 MB file on a 100 Mbit/s link takes about 500 × 8 ÷ 100 = 40 seconds at best. If the units on a spec sheet are written MiB and GiB, choose the binary setting; if they say MB and GB with no other hint, assume decimal unless the program is Windows or a memory spec.

How the prefixes are defined

In the International System of Units, mega means 1,000,000 and giga means 1,000,000,000, so one gigabyte is exactly 1,000 megabytes. In 1998 the IEC introduced the binary prefixes mebi (Mi, 2²⁰) and gibi (Gi, 2³⁰) so that 1 GiB = 1,024 MiB = 1,073,741,824 bytes could be named without ambiguity; both definitions are exact. See NIST on the prefixes for binary multiples.

Related unit converters

MB to GB converter FAQ

How many MB are in a GB?

In decimal (SI) units 1 GB is 1,000 MB. In binary units 1 GB is 1,024 MB, which strictly is 1 GiB = 1,024 MiB. Use the switch above the decimals box to pick the one your source uses.

Why does my drive show less space than the label says?

The maker counts in decimal gigabytes (1 GB = 1,000,000,000 bytes) while Windows reports binary units (1 GiB = 1,073,741,824 bytes) but still labels them GB. A 500 GB drive therefore shows about 465 GB.

What is the difference between MB and Mb?

MB is megabytes and Mb is megabits. A byte is 8 bits, so 8 Mb equals 1 MB. Network speeds are quoted in megabits per second and file sizes in megabytes.

How many GB is 1,000 MB?

1,000 MB = 1 GB, which is exactly 1 GB in decimal units. In binary units 1,000 MB = 0.9765625 GB, a little under 1 GB.

How many gigabytes are in one megabyte?

decimal: 1 megabyte = 0.001 GB. binary: 1 megabyte = 0.0009765625 GB. The switch above the converter picks the one you need.

What is the formula to convert megabytes to gigabytes?

Divide the number of megabytes by 1000. For example, 2,048 MB ÷ 1000 = 2.048 GB.

How do I convert gigabytes back to megabytes?

Do the reverse step: multiply the number of gigabytes by 1000. Typing into the second box of the converter does it for you.

Missing something in the MB to GB converter?Suggest an idea. It takes 20 seconds and we read every one.Suggest an idea

Sends only what you type here, never the text you work with. Your email is used only to reply about this idea.

Free online tools