Hex code table for numbers 0 - 15
You can use the following hex code table to convert hexadecimal to binary and back and you can convert numbers of any length. For each nibble of binary data just replace it with the corresponding hex digit. For example: | Binary number : | 1010 | 0110 | 1110 | 1111 | 0111 | 0110 | 1101 | | Hexadecimal number : | A | 6 | E | F | 7 | 6 | D | You can convert any hex number of any length to binary (just remember to start from the right - or LSB) using the hex code table. And you can convert any binary number of any length to hexadecimal (just remember to start from the right - or LSB) using the table. If it does not fit into the last nibble (set of 4 bits) set the left most bits to zero. Hexadecimal table| Decimal | Hex digit | Binary code | Decimal | Hex digit | Binary code | | 0 | 0 | 0000 | 8 | 8 | 1000 | | 1 | 1 | 0001 | 9 | 9 | 1001 | | 2 | 2 | 0010 | 10 | A | 1010 | | 3 | 3 | 0011 | 11 | B | 1011 | | 4 | 4 | 0100 | 12 | C | 1100 | | 5 | 5 | 0101 | 13 | D | 1101 | | 6 | 6 | 0110 | 14 | E | 1110 | | 7 | 7 | 0111 | 15 | F | 1111 |
Best-microcontroller-projects home page

|