Python Hex String To Int Little Endian, unpack() to decode the little endian value into an int: >>> from binascii import unhexlify.