Convert between hexadecimal and decimal, add and subtract hex numbers with our free hex calculator
Convert a hexadecimal number to decimal
Convert a decimal number to hexadecimal
Add two hexadecimal numbers together
Subtract one hex number from another
Hexadecimal (hex) is a base-16 number system that uses 16 digits: 0-9 and A-F. It's widely used in computing because it's more compact than binary and easier to read. Each hex digit represents 4 bits, making it perfect for representing binary data in a human-readable format.
Converting between hexadecimal and decimal is essential in computer science and programming. Hex to decimal conversion involves multiplying each digit by its corresponding power of 16, while decimal to hex uses repeated division by 16.
To convert hex to decimal, multiply each digit by 16 raised to its position power:
To convert decimal to hex, repeatedly divide by 16 and collect remainders. Convert remainders 10-15 to A-F, then read from bottom to top.
Here are several everyday situations that show how easy it is to use our hex calculator.
These examples show how our hex calculator can handle:
You can adapt any real-life situation involving hex numbers to one of these patterns and let the calculator do the work for you.