MiB to GB Calculator - Convert Mebibytes to Gigabytes

High Precision Data Unit Conversion

Conversion History (Last 6)

Input Mebibyte - and press Enter

Complete List of Mebibyte Converters

Quick Navigation

MiB to GB - Conversion Formula and Steps

Mebibyte and Gigabyte are units of digital information used to measure storage capacity and data transfer rate. Mebibyte is a binary standard unit where as Gigabyte is decimal. One Mebibyte is equal to 1024^2 bytes. One Gigabyte is equal to 1000^3 bytes. There are 953.67431640625 Mebibytes in one Gigabyte. - view the difference between both units

MiB to GB Converter Image
Source Data UnitTarget Data Unit
Mebibyte (MiB)
Equal to 1024^2 bytes
(Binary Unit)
Gigabyte (GB)
Equal to 1000^3 bytes
(Decimal Unit)

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

GB = MiB x 10242 / 10003

Note : Here we are converting the units between different standards. The source unit Mebibyte is Binary where as the target unit Gigabyte is Decimal. In such scenario, first we need to convert the source unit to the basic unit - Byte - multiply with 1024^2, and then convert to target unit by dividing with 1000^3 .

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


Gigabyte = Mebibyte x 10242 / 10003


Gigabyte = Mebibyte x (1024x1024) / (1000x1000x1000)


Gigabyte = Mebibyte x 1048576 / 1000000000


Gigabyte = Mebibyte x 0.001048576

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

  1. = 10 x 10242 / 10003
  2. = 10 x (1024x1024) / (1000x1000x1000)
  3. = 10 x 1048576 / 1000000000
  4. = 10 x 0.001048576
  5. = 0.01048576
  6. i.e. 10 MiB is equal to 0.01048576 GB.

(Result rounded off to 40 decimal positions.)

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

Popular MiB Conversions

Conversion Units

Definition : Mebibyte

A Mebibyte (MiB) is a unit of digital information that is equal to 1,048,576 bytes (or 8,388,608 bits) and is defined by the International Electro technical Commission(IEC). The prefix "mebi" is derived from the binary number system and it is used to distinguish it from the decimal-based "megabyte" (MB). It is widely used in the field of computing as it more accurately represents the amount of data storage and data transfer in computer systems.
- 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 MiB to GB

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

1Mebibyte (MiB)Gigabyte (GB) 
21=A2 * 0.001048576 

Download - Excel Template for Mebibyte 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 MiB to GB Conversion

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

mebibyte = int(input("Enter Mebibyte: "))
gigabyte = mebibyte * (1024*1024) / (1000*1000*1000)
print("{} Mebibyte = {} Gigabyte".format(mebibyte,gigabyte))

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