MB to GB Calculator - Convert Megabytes to Gigabytes

High Precision Data Unit Conversion

Conversion History (Last 6)

Input Megabyte - and press Enter
MB
 
ADVERTISEMENT

Complete List of Megabyte Converters

Quick Navigation

MB to GB - Conversion Formula and Steps

Megabyte and Gigabyte are units of digital information used to measure storage capacity and data transfer rate. Both are decimal units. One Megabyte is equal to 1000^2 bytes. One Gigabyte is equal to 1000^3 bytes. There are 1,000 Megabytes in one Gigabyte. - view the difference between both units

MB to GB Converter Image
Source Data UnitTarget Data Unit
Megabyte (MB)
Equal to 1000^2 bytes
(Decimal Unit)
Gigabyte (GB)
Equal to 1000^3 bytes
(Decimal Unit)

Below conversion diagram will help you to visualize the Megabyte to Gigabyte calculation steps in a simplified manner.

÷ 8   
÷ 1000   
÷ 1000   
÷ 1000   
÷ 1000   
÷ 1000   
÷ 1000   
÷ 1000   
÷ 1000   
Bit [b]
Byte [B]
Kilobyte [kB]
Megabyte [MB]
Gigabyte [GB]
Terabyte [TB]
Petabyte [PB]
Exabyte [EB]
Zettabyte [ZB]
Yottabyte [YB]
  x 8  
  x 1000  
  x 1000  
  x 1000  
  x 1000  
  x 1000  
  x 1000  
  x 1000  
  x 1000  

The formula of converting the Megabyte to Gigabyte is represented as follows :

GB = MB / 1000

Now let us apply the above formula and, write down the steps to convert from Megabyte (MB) to Gigabyte (GB). This way, we can try to simplify and reduce to an easy to apply formula.

FORMULA

Gigabyte = Megabyte / 1000

STEP 1

Gigabyte = Megabyte x (1 / 1000)

STEP 2

Gigabyte = Megabyte x 0.001

Example : If we apply the above Formula and steps, conversion from 10 MB to GB, will be processed as below.

  1. = 10 / 1000
  2. = 10 x (1 / 1000)
  3. = 10 x 0.001
  4. = 0.01
  5. i.e. 10 MB is equal to 0.01 GB.

(Result rounded off to 40 decimal positions.)

You can use above formula and steps to convert Megabyte to Gigabyte using any of the programming language such as Java, Python or Powershell.

Popular MB Conversions

Conversion Units

Definition : Megabyte

A Megabyte (MB) is a unit of digital information that is equal to 1,000,000 bytes (or 8,000,000 bits) and commonly used to express the size of a file or the amount of memory used by a program. It is also used to express data transfer speeds and in the context of data storage and memory, the binary-based unit of mebibyte (MiB) is used instead.
- Learn more..

Definition : Gigabyte

A Gigabyte (GB) is a unit of digital information that is equal to 1,000,000,000 bytes (or 8,000,000,000 bits) and commonly used to measure the storage capacity of computer hard drives, flash drives, and other digital storage devices. It is also used to express data transfer speeds and in the context of data storage and memory, the binary-based unit of Gibibyte (GiB) is used instead.
- Learn more..

Excel Formula to convert from MB to GB

Apply the formula as shown below to convert from Megabyte to Gigabyte.

 ABC
1Megabyte (MB)Gigabyte (GB) 
21=A2 * 0.001 
3   

Download - Excel Template for Megabyte to Gigabyte Conversion

If you want to perform bulk conversion locally in your system, then download and make use of above Excel template.

Python Code for MB to GB Conversion

You can use below code to convert any value in Megabyte to Gigabyte in Python.

megabyte = int(input("Enter Megabyte: "))
gigabyte = megabyte / 1000
print("{} Megabyte = {} Gigabyte".format(megabyte,gigabyte))

The first line of code will prompt the user to enter the Megabyte as an input. The value of Gigabyte is calculated on the next line, and the code in third line will display the result.