My Learning

Keep this for later

Sign in or create a free account to save it. You’ll return to this page afterward.

Sign inCreate an account

HEX to Decimal

Convert a nonnegative hexadecimal integer to decimal precisely.

Enter one nonnegative whole number, not a list of bytes.

How to use this tool

Enter one hexadecimal whole number, optionally prefixed with 0x.

Important to know

Convert a nonnegative hexadecimal integer to decimal precisely.

Hex digits are 0–9 and A–F. This is an integer conversion, not UTF-8 text decoding.

Formula and methodology

Each hex digit contributes its value times a power of 16; A–F represent 10–15.

Example

FF in hexadecimal is 255 in decimal.

Frequently asked questions

Will large hex numbers lose precision?

No. Conversion uses digit-by-digit arithmetic rather than a fixed-size integer.