1/12
This work is licensed with a
Creative Commons Attribution 4.0 International LicenseEndFragment
Hexadecimal Numbers
This material was developed with funding
from the National Science Foundation
1/8
Back
Next
Restart
Engineering Notation
0000
Converting Hexadecimal to
Binary
The hexadecimal value is 3AB2
1. Separate each hex digit
3 - A - B - 2.
2. Replace each hex digit with
the binary equivalent digits.
3. Drop the insignificant leading
Zeros if the binary number
has les that 4 digits.
4. Concatenate (string) all of the
digits together.
Find the binary equivalent for
the hex value 3AB2.
The binary equivalent is
0011:1010:1011:0010.
When you apply steps 3 and 4,
11101010110010 is your answer.
1
16
1010
0111
1011
1100
0011
0001
2
0010
1000
1101
3
0100
1001
1110
0101
0110
1111
:
4/12
Click on each arrow to express a hexadecimal value in binary
0
Mastering Decimal to Hexadecimal
1,280
Decimal
18,169
Hexadecimal Equivalent
31,593
Element
with Audio
HTML
60,581
Enter the hexadecimal value for each decimal value given
11/12
8,181
13,543
9901
AAAA
Enter the decimal value for each hexadecimal value given
Mastering Hexadecimal to Decimal
9/12
Hexadecimal
Decimal Equivalent
CABA
FEED
80F2
7653
New Number in common EN nano
0010:0001:0010:0100
1001:0110:1011:1000
Enter the hexadecimal value for each binary value given
Mastering Binary to Hexadecimal
1111:1001:1100:0011
1101:1010:0000:1110
7/12
0101:0010:0011:0111
0001:1000:0001:1000
Original Number in Bytes
Mastering Hexadecimal to Binary
21DF
D62E
1.4 ZETTA
A9A9
78
5/12
Enter the binary value for each hexadecimal value given
B0A4
75.25 Gigahertz or 75,250,000,000 or 75.25 x 109
5.25 Kilometers or 5,250 or 5.25 x 103
25.2 Megabytes or 25,200,000 or 25.2 x 106
1.25 millisecs or 0.00125 or 1.25 x 10-3
9.7 micrograms or 0.0000097 or 9.7 x 10-6
5.25 nanometers or 0.00000000525 or 5.25 x 10-9
4096
2048
Hexadecimal to Decimal
Convert by using the base number of 16 to a power starting with 16 to the zero.
Identify the value of each power of 16:
Multiply the hexadecimal value by the power of 16.
Sum the result.
12288
36864
24576
3840
13
6
12
2560
Total
53248
61440
4
118
176
45056
10
1792
9
+
240
102
8
40960
Click on each arrow to convert a hexadecimal value in decimal
224
1536
3584
32768
208
7
Button
3072
64
160
96
2816
15
3328
=
20480
768
2304
192
1280
49152
80
14
8192
5
28672
8/12
57344
48
1024
32
11
16384
512
144
256
Software developers and system designers use hexadecimal numbers to represent binary-coded values. Each
hexadecimal digit represents four bits (binary digits) which is also known as a nibble.
3/12
E
A
Hexadecimal is a numbering system used to write and share numerical values. Hexadecimal, also known as hex or base 16, uses the characters 0 thru 9 and A thru F.
Hex is no different than the most famous of numeral systems (the one that we use every day): decimal.
F
B
Click here to count in hexadecimal
C
2/12
1
D
Binary is very easy to convert to hex. We will start with the binary value 101001111111011
Click to continue
3. Replace each group of four binary digits with the equivalent hexadecimal digit.
Converting Binary to Hexadecimal
Click to begin
2. Add zeros to the left of the last group to form complete groups of four digits.
1. Separate binary digits into groups of 4 starting from the least significant bit (LSB) on the right.
6/12
10/12
4. Multiply the remainder by 16. Since the answer is < 9, use the value in your answer.
1. Divide the decimal number by 16. The value to the left of the decimal point is the integer, to the right is the remainder.
Converting Decimal to Hexadecimal
Write the answer starting with the final result (2) and then the remainders (9, 1, and finally F).
Converting decimal to hex requires keen math skills. We will start with the decimal value 10,591.
3. Divide the integer from Step 1 by 16. The result is another integer and remainder.
2. Multiply the remainder by 16. If the result is > 9, covert it to the hexadecimal value. If the result is < 9, use that value in your answer.
5. Repeat steps 1 and 2 until the integer result is < 16.
12/12
You will ususally see a hexadecimal number prefixed (or suffixed) with one of the identifiers listed in the table to avoid confusion with decimal numbers.
Hexadecimal Identifiers: Formats