HEX→DECRuns in your browser
Hex Converter
Hexadecimal to decimal, binary, octal and text — and back. Shows the color for a 6-digit hex code.
By using the product, you agree to our Terms of Service and have read our Privacy Policy.
How to use the Hex Converter
1
Type a value
A hex number like FF or 0x1A2B, a decimal, a binary string or plain text.
2
Pick what it is
The other bases appear instantly.
3
Colors too
A 3- or 6-digit hex code shows its RGB value and a swatch.
Questions
How do I convert hex to decimal?
Each hex digit is worth 16 times the one to its right: FF = 15×16 + 15 = 255. The converter handles numbers of any length.
What is 0x?
A prefix meaning 'the number that follows is hexadecimal'. You can type it or leave it out.
Can I convert text to hex?
Yes — choose Text as the input and every character is shown as its UTF-8 bytes in hex, decimal and binary.
Related converters