# Terabyte to Petabit - *1 TB* to Pbit Conversion

Copy Link & Share
### Excel Formula to convert from TB to Pbit

Apply the formula as shown below to convert from 1 Terabyte to Petabit.

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

1 | Terabyte (TB) | Petabit (Pbit) | |

2 | 1 | =A2 * 0.008 | |

3 |

Download - Excel Template for Terabyte to Petabit Conversion

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

### Python Code for TB to Pbit Conversion

You can use below code to convert any value in Terabyte to Petabit in Python.

terabyte = int(input("Enter Terabyte: "))

petabit = terabyte * 8 / 1000

print("{} Terabyte = {} Petabit".format(terabyte,petabit))

petabit = terabyte * 8 / 1000

print("{} Terabyte = {} Petabit".format(terabyte,petabit))

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