Hex to Decimal Converter

Base 16
Base 10

Conversion table

SourceResult

Convert Hex integers to Decimal with exact arbitrary-precision arithmetic. Signed values, long integers, common source prefixes, spaces, and underscore separators are accepted, and the result updates as the input changes.

How to convert Hex to Decimal

Multiply each source digit by its place value, which is a power of the source base, then add those values. The rightmost digit has a place value of one.

Hex to Decimal example

2af in base 16 equals 687 in base 10. The converter supports values much larger than JavaScript's ordinary safe integer range because it uses integer arithmetic rather than floating-point numbers.

Common conversions: Binary to Decimal · Decimal to Binary · Binary to Hex · Hex to Binary · Decimal to Hex · Hex to Decimal · Binary to Octal · Octal to Binary