# Megabit to Gibibyte - *300 Mbit* to GiB Conversion

Copy Link & Share
### Excel Formula to convert from Mbit to GiB

Apply the formula as shown below to convert from 300 Megabit to Gibibyte.

A | B | C | |
---|---|---|---|

1 | Megabit (Mbit) | Gibibyte (GiB) | |

2 | 300 | =A2 * 0.000116415321826934814453125 | |

3 |

Download - Excel Template for Megabit to Gibibyte Conversion

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

### Python Code for Mbit to GiB Conversion

You can use below code to convert any value in Megabit to Gibibyte in Python.

megabit = int(input("Enter Megabit: "))

gibibyte = megabit * (1000*1000) / (8*1024*1024*1024)

print("{} Megabit = {} Gibibyte".format(megabit,gibibyte))

gibibyte = megabit * (1000*1000) / (8*1024*1024*1024)

print("{} Megabit = {} Gibibyte".format(megabit,gibibyte))

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