Skip to content

Hex to Decimal Converter

Turn a hex value like ff or 1a2b into the decimal number it represents — handy for reading RGB colours, status codes, or hex offsets. Everything runs locally in your browser.

=
255

Hex (base 16) in, Decimal (base 10) out.

How it works

Multiply each digit by 16 raised to its position from the right and sum: 1a = 1×16 + 10 = 26.

Examples

FAQ

How do I convert hexadecimal to decimal?

Multiply each digit by 16 raised to its position from the right and sum: 1a = 1×16 + 10 = 26. Or just paste your hexadecimal value into the box above and the decimal result appears instantly.

Does this Hex to Decimal converter run in my browser?

Yes. The conversion happens entirely client-side — nothing you type is uploaded — and it uses big-integer math, so even very long hexadecimal numbers convert exactly.

What is the largest number I can convert?

There is no practical limit. Because the converter works with arbitrary-precision integers, a hexadecimal value of any length converts without rounding or overflow.

Need other bases, custom radixes, or two-way editing? Use the full Number Base Converter.

Other conversions