Hex Converter
Hexadecimal (base 16) shows up in color codes, GUIDs, error codes, memory addresses and encoded data. This hex converter changes a number between hexadecimal, decimal, binary and octal as you type, and converts text to its hex bytes and back. It uses arbitrary-precision math, so long values such as a 64-bit ID convert exactly.
Also known as: hex to decimal, decimal to hex, hex to binary, hexadecimal converter, hex to text.
Number converter
Type in any box. Prefixes like 0x, 0b and 0o are accepted.
Text and hex bytes (UTF-8)
Your data is processed locally in your browser and is not uploaded to our servers.
Features
- Hex, decimal, binary and octal update together as you type
- Exact results for very large numbers
- Text to hex and hex to text with UTF-8
- Accepts 0x prefixes, spaces and lower or upper case
- Runs in your browser, nothing is uploaded
How to use the Hex Converter
- Type a number into any of the four boxes: hex, decimal, binary or octal.
- The other three boxes update instantly. Copy the one you need.
- To convert words, type text in the Text box to see its hex bytes, or paste hex bytes to read them as text.
Where hex appears in Power Platform work
Dataverse and Dynamics 365 error messages often include codes such as 0x80040220. Convert that to decimal (2147746336) when you search logs or documentation that list the decimal form.
Color codes are hex too: #742774 is the three bytes 74, 27 and 74. For colors, the HEX to RGB converter gives you the Power Apps RGBA() formula directly.
When a flow returns binary data or a hash as hex, the text box shows whether those bytes are readable text.
Example input and output
Hex to decimal
0x80040220 -> 2147746336
Decimal to hex and binary
255 -> FF -> 11111111
Text to hex (UTF-8)
Ninja -> 4E 69 6E 6A 61
Frequently asked questions
How do I convert hex to decimal by hand?
Multiply each digit by 16 raised to its position, counting from 0 on the right, then add them up. For 1F: 1×16 + 15×1 = 31. Letters A to F stand for 10 to 15.
Why does a hex number start with 0x?
0x is a prefix used in code to show that the number is hexadecimal. The converter accepts values with or without it.
Can it convert negative numbers?
Yes, a leading minus sign is kept, for example -FF is -255. It does not show two's complement form.
Is this the same as a HEX color converter?
A color code is three hex bytes. For colors, use HEX to RGB or RGB to HEX, which also give CSS and Power Apps formulas.