TOP

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.

No signupFree online conversion

Interactive tool

Convert hexadecimal integers to exact decimal integers

Ready

Mode and output format

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.

InputOutputMeaning
A10single digit
FF2558-bit maximum
1F4500positional value
FFFFFFFFFFFFFFFF1844674407370955161564-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

Choose the converter for the direction and representation you need.

Advertisement

Sponsored link