hex_string = "0x616263"[2:] #Slice string to remove leading `0x` ascii_string = hex_string.decode("hex") #Convert to ASCII representation print(ascii_string) # abc