# MBps to Pbit/Hour Converter - CONVERT Megabytes Per Second to Petabits Per Hour

Copy Link & Share### Excel Formula to convert from MBps to Pbit/Hour

Apply the formula as shown below to convert from Megabytes Per Second to Petabits Per Hour.

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

1 | Megabytes Per Second (MBps) | Petabits Per Hour (Pbit/Hour) | |

2 | 1 | =A2 * 0.000000008 * 3600 | |

3 |

Download - Excel Template for Megabytes Per Second to Petabits Per Hour Conversion

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

### Python Code for MBps to Pbit/Hour Conversion

You can use below code to convert any value in Megabytes Per Second to Petabits Per Hour in Python.

megabytesPerSecond = int(input("Enter Megabytes Per Second: "))

petabitsPerHour = megabytesPerSecond * 8 / (1000*1000*1000) * 60 * 60

print("{} Megabytes Per Second = {} Petabits Per Hour".format(megabytesPerSecond,petabitsPerHour))

petabitsPerHour = megabytesPerSecond * 8 / (1000*1000*1000) * 60 * 60

print("{} Megabytes Per Second = {} Petabits Per Hour".format(megabytesPerSecond,petabitsPerHour))

The first line of code will prompt the user to enter the Megabytes Per Second as an input. The value of Petabits Per Hour is calculated on the next line, and the code in third line will display the result.