Free browser converter
Hex to Decimal Converter
Convert hexadecimal integers to exact decimal integers in your browser with explicit ASCII, Unicode code point, and UTF-8 byte handling.
Interactive tool
Convert hexadecimal integers to exact decimal integers
Ready
Choose the exact representation you need; the tool does not guess an encoding.
Detailed conversion guide
How to Convert Hex to Decimal
Hexadecimal is base 16. From right to left, each digit is multiplied by a power of 16; 1F4 equals 1×256 + 15×16 + 4, which is 500.
The converter parses the complete value with BigInt. It therefore returns exact decimal output for identifiers, masks, addresses, and integers beyond 2^53−1.
| Input | Output | Meaning |
|---|---|---|
A | 10 | single digit |
FF | 255 | 8-bit maximum |
1F4 | 500 | positional value |
FFFFFFFFFFFFFFFF | 18446744073709551615 | 64-bit maximum |
Hex to Decimal with BigInt
Validate hexadecimal syntax first, remove only supported separators, then pass a 0x-prefixed string to BigInt and render it with toString(10).
// validate first, then convert
const value = Number.parseInt(token, radix);
if (!Number.isInteger(value)) throw new Error("Invalid input");Unsigned Values, Precision, and Unsupported Syntax
This page treats the input as an unsigned magnitude. It does not infer a bit width or decode two's-complement signed values.
Digits G-Z, signs, fractions, empty prefixes, and mixed prose are rejected. Spaces and underscores may separate digits but do not change the value.
Related converters
Continue converting ASCII and Unicode
Choose the converter for the direction and representation you need.