I want to convert 1fd93d1cf1f13d0d to 00011111 11011001 00111101 00011100 11110001 11110001 00111101 00001101

hex2= 0x1fd93d1cf1f13d0d
spec="{fill}{align}{width}{type}".format(fill="0", align='>', width=64, type="b")
bin_representation = format(hex2, spec)
print(bin_representation)

represent your string into hexformat.hope it solves. format further according to your desired output

Leave a Comment