How to convert megabytes to gigabytes
- 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.
- 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.
- Choose how many decimal places you want. Auto keeps up to seven significant digits and drops trailing zeros; a fixed setting pads with zeros.
- 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
- 2,048 MB ÷ 1000 = 2.048 GB. In decimal units 2,048 MB is 2.048 GB; in binary units it is exactly 2 GB.
- 700 MB ÷ 1000 = 0.7 GB. A CD-R holds about 700 MB: 0.7 GB decimal, or 0.6836 GB binary.
- 5,000 MB ÷ 1000 = 5 GB. A 5,000 MB data plan is 5 GB in decimal units, which is how mobile carriers count.
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 |
|---|---|---|---|
| 1 | 0.0010 | 0.0010 | |
| 10 | 0.0100 | 0.0098 | |
| 25 | 0.0250 | 0.0244 | the usual email attachment limit (Gmail: 25 MB) |
| 50 | 0.0500 | 0.0488 | |
| 100 | 0.1000 | 0.0977 | |
| 250 | 0.2500 | 0.2441 | |
| 500 | 0.5000 | 0.4883 | |
| 512 | 0.5120 | 0.5000 | 512 MB |
| 700 | 0.7000 | 0.6836 | a CD-R holds about 700 MB |
| 1,000 | 1.0000 | 0.9766 | |
| 1,024 | 1.0240 | 1.0000 | 1.024 GB decimal, exactly 1 GB binary |
| 2,048 | 2.0480 | 2.0000 | |
| 4,096 | 4.0960 | 4.0000 | |
| 4,700 | 4.7000 | 4.5898 | a single-layer DVD holds 4.7 GB |
| 5,000 | 5.0000 | 4.8828 | |
| 8,192 | 8.1920 | 8.0000 | |
| 10,000 | 10.0000 | 9.7656 | |
| 16,384 | 16.3840 | 16.0000 | |
| 25,000 | 25.0000 | 24.4141 | a single-layer Blu-ray disc holds 25 GB |
| 50,000 | 50.0000 | 48.8281 | |
| 65,536 | 65.5360 | 64.0000 | |
| 100,000 | 100.0000 | 97.6562 | |
| 1,000,000 | 1,000.0000 | 976.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
- KG to lbs converter: Kilograms to pounds both ways, with pounds and ounces and a full table.
- KM to miles converter: Kilometers to miles both ways, with 5K, 10K and marathon distances and a table.
- Celsius to Fahrenheit converter: Celsius to Fahrenheit both ways, with the formula and a table of everyday temperatures.
- Liters to gallons converter: Liters to US or UK gallons, both ways, with a table of tank and container sizes.
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.