Hexadecimal Calculator
Use the following calculators to perform hexadecimal operations and conversions between hexadecimal and decimal number systems.
Hexadecimal Calculation—Add, Subtract, Multiply, or Divide
=
Convert Hexadecimal Value to Decimal Value
=
Convert Decimal Value to Hexadecimal Value
=
About Hexadecimal Numbers
Hexadecimal (or "hex") is a base-16 number system that uses 16 distinct symbols: the numbers 0-9 and the letters A-F (or a-f). It is commonly used in computing as a more human-friendly way to represent binary values.
Hexadecimal Digits
Decimal | Hex | Binary |
---|---|---|
0 | 0 | 0000 |
1 | 1 | 0001 |
2 | 2 | 0010 |
3 | 3 | 0011 |
4 | 4 | 0100 |
5 | 5 | 0101 |
6 | 6 | 0110 |
7 | 7 | 0111 |
8 | 8 | 1000 |
9 | 9 | 1001 |
10 | A | 1010 |
11 | B | 1011 |
12 | C | 1100 |
13 | D | 1101 |
14 | E | 1110 |
15 | F | 1111 |
Hex to Decimal Conversion
To convert a hex number to decimal, multiply each digit by its corresponding power of 16 and sum the results:
Hex 1A3 = 1×162 + 10×161 + 3×160
= 256 + 160 + 3 = 419 (decimal)
= 256 + 160 + 3 = 419 (decimal)
Decimal to Hex Conversion
To convert a decimal number to hex, divide the number by 16 repeatedly and record the remainders in reverse order:
Decimal 419:
419 ÷ 16 = 26 remainder 3
26 ÷ 16 = 1 remainder 10 (A)
1 ÷ 16 = 0 remainder 1
Hex: 1A3
419 ÷ 16 = 26 remainder 3
26 ÷ 16 = 1 remainder 10 (A)
1 ÷ 16 = 0 remainder 1
Hex: 1A3
Applications of Hexadecimal
- Memory addresses and debugging in computer programming
- Color representation in web design (e.g., #FF5733)
- Assembly language programming
- Representing binary data in a more compact form
- Network MAC addresses (e.g., 00:1A:2B:3C:4D:5E)