How to use the Hex to Decimal Converter
- Type a hex number using 0–9 and A–F (a 0x prefix is fine).
- Read the decimal result and copy it.
- Follow the table to see each digit multiplied by its power of 16.
- Use the swap button to convert decimal back to hex.
About this tool
Convert hex to decimal instantly and see how the answer is calculated. Type a hexadecimal number such as FF, 1A3 or 0x7FFF and the decimal value appears, with a table showing each digit multiplied by its power of 16. It works with upper or lower case and with the 0x prefix programmers use.
Hexadecimal (base 16) uses the digits 0–9 and the letters A–F, where A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15. To convert hexadecimal to decimal, multiply each digit by 16 raised to its position, counting from 0 on the right, and add the results. For example, 2F = 2 × 16 + 15 = 47, and FF = 15 × 16 + 15 = 255.
You will meet hex in colour codes, memory addresses, error codes, MAC addresses and Unicode code points. For hex color values, convert each pair separately: #FF8800 is red 255, green 136 and blue 0. The converter also shows the binary value, handles very large numbers exactly, and includes a hex to decimal table for quick reference. To go the other way, use Decimal to Hex.