how to convert a hexadecimal value to int in python 3 code example Example: python convert hex number to decimal print(int("61", 16)) # output 97 (ascii value "a")