decimal 14 in hexadecimal is showing b'0000000e' in python code example Example: convert decimal to hex python hex(x) being x the integer you want to convert