THE RIGHT TOOL FOR YOUR NEXT BYTE

Hex to Decimal Converter

Enter a hexadecimal whole number and read its decimal value. The converter starts with base 16 as the input and base 10 as the output: 2A becomes 42.

→
Runs locally
2 charactersWhole numbers · exact precision
Ready
Exact integer resultBase 10
Tip: enter a whole number in the selected input base.
Your data stays in your browser Free. No sign-up. Unicode & ASCII support
01 / EXPLAINED SIMPLY

Read a hexadecimal value in decimal

Hexadecimal uses the digits 0–9 and the letters A–F. Each position is a power of 16, so 2A is two sixteens plus ten, or 42. Paste one whole number at a time. Both FF and 0xFF convert to 255, and letter case makes no difference.

02 / EXPLAINED SIMPLY

Convert a value rather than decode bytes

The converter treats a string such as 4869 as one integer. If you meant the two hex bytes 48 and 69 that spell Hi, use the text decoder with hexadecimal input. Number conversion keeps the exact integer value, including values larger than JavaScript's safe integer range.

GOOD QUESTIONS

Before you convert.

A few useful details for this tool.

Do I need a 0x prefix?

No. Both 2A and 0x2A are valid when the input base is hexadecimal.

Can I convert a negative hex value?

Yes. Put the minus sign first: -0xFF converts to -255.

Why are spaces inside a hex value rejected?

Number mode expects one integer. If the spaces separate individual bytes, use a byte-based conversion mode instead.