Basics

There are 16 base characters in hexadecimal. These are:

- 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
The letters are used because there are only 10 possible numeric digits (0-9). One hexadecimal digit is the equivalent to four binary digits or either 1 or 2 decimal digits. for example 10 is equal to 1010 in binary (uses four digits).

Hexadecimal representation is useful for develops because the converting process is simple and easy to understand, therefore it can be used for tasks such as examining the contents of memory. This Conversion Tool may be useful in further understanding the conversion process between hexadecimal, binary and decimal conversion.

Converting from Binary

In relation to Binary numbers, hexadecimal digits have these simple values:
0 = 0
1 = 1
2 = 2
3 = 3
4 = 4
5 = 5
6 = 6
7 = 7
8 = 8
9 = 9
10 = A
11 = B
12 = C
13 = D
14 = E
15 = F

The conversion itself is a relatively easy task. We need to this binary premises:
0001 = 1
0010 = 2
0100 = 4
1000 = 8

Here we have a binary number:
- 11110100
- To convert to hexadecimal values, we firstly must split the number into groups of four, leaving this:
- 1111 0100
- We now gather all the appropriate digits from the 0's and 1's
- 8+4+2+1 & 4
- And find the sum if necessary.
- 15 & 4
- Then convert the digits into hexadecimal (if required).