Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

hex to binary python3

my_hexdata = "1a"

scale = 16 ## equals to hexadecimal

num_of_bits = 8

bin(int(my_hexdata, scale))[2:].zfill(num_of_bits)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hex #binary
ADD COMMENT
Topic
Name
4+7 =