Hexadecimal to Decimal Converter

developer · number system

Convert Hexadecimal to Decimal with a fixed input and output format, step-by-step formulas under the result, and reference tables. Parsing matches the main hub (0b, 0x, leading 0 for octal; one optional . for fractional digits on numeric bases; single character for character mode).

Calculator

From: Hexadecimal

To: Decimal

Formulas

Enter a value → place-value expansion + division chain.

About Hexadecimal

Hexadecimal (base 16) uses 0–9 and A–F. This tool accepts an optional 0x prefix. One radix point is allowed; fractional digits use 16⁻¹, 16⁻², …. Each hex digit covers four bits, so it is compact for memory addresses, colors, and byte dumps.

About Decimal

Decimal (base 10) uses digits 0–9; no prefix is required. A single . may separate the fractional part (10⁻¹, 10⁻², …). Values are parsed to a number and re-encoded into the target format; very long fractions are limited by floating-point precision.

How to convert hexadecimal to decimal

Three steps: symbols → the right math move for this pair → worked examples you can copy on paper. Numeric bases (binary, octal, decimal, hex) also support one radix point and digits after it; character mode stays a single code unit.

Step 1 — Identify the symbols

Input (Hexadecimal): Digits 0–9 plus letters A–F for values ten through fifteen.

Output (Decimal): Ordinary digits 0–9; each position is a power of ten.

Hex conversions use this letter-to-number map:

Hex digit → value (for place weights)
DigitValueDigitValue
0088
1199
22A10
33B11
44C12
55D13
66E14
77F15
Dev note
  • 0x is a common prefix (e.g. 0xFF).

Step 2 — Hex Place Weights

A–F mapping: use 10–15 for letters when applying place weights.

Number positions from the right, starting at 0. At each position, multiply that digit by 16 raised to the position index, then add every term. The total is your decimal number.

Digits after the dot: use negative powers of 16 (16−1, 16−2, …). Each place is still (digit × weight); add the fractional side to the whole side.

A–F reminder: treat A as 10, B as 11, …, F as 15 when you multiply by powers of 16 (see Step 1 table).

Step 3 — Worked examples

Two practice values in Hexadecimal, converted to Decimal using the same rules as Step 2. Example 3 uses a fractional part (digits after the radix point); the hub and pair calculators accept a single . on binary, octal, decimal, and hex inputs.

Example 1

"1A" (Hexadecimal) → Decimal.

Toward decimal

Hexadecimal "1A"
= 1×16¹ + A×16⁰
= 16 + 10
= 26  (decimal)

Verify: "1A"26

Example 2

"FF" (Hexadecimal) → Decimal.

Toward decimal

Hexadecimal "FF"
= F×16¹ + F×16⁰
= 240 + 15
= 255  (decimal)

Verify: "FF"255

Example 3

"A.8" (Hexadecimal) → Decimal.

Toward decimal

Hexadecimal "A.8"
Left of . : A×16⁰ = 10
Right of .: 8×16^-1 = 0.5
= 10.5  (decimal)

Verify: "A.8"10.5

Summary

To convert Hexadecimal to Decimal, the tool first parses your input strictly as hexadecimal, producing a decimal value. For binary, octal, decimal, and hex, you may include one radix point and fractional digits; character input remains a single code unit with no dot. That value is formatted as decimal using the same rules as the main Number System Converter (prefixes 0b, 0, 0x where applicable; character output uses symbolic names for common controls and requires a whole-number code point). Long fractional expansions are truncated to a fixed digit cap; ordinary floating-point rounding may appear in extreme cases.

Relationship context

Hexadecimal, Decimal, and the other numeric bases on this site all describe the same numeric value; only the radix changes (including optional fractional digits after one dot). Moving between them is equivalent to changing how the value is written, not to scaling or unit conversion. Binary, octal, and hex align with bit boundaries (powers of two), while decimal is optimized for human arithmetic.

Conversion tables

Hexadecimal (input)Decimal (output)
00
0x11
0x22
0x33
0x44
0x55
0x66
0x77
0x88
0x99
0xa10
0xf15
0x1016
Hexadecimal (input)Decimal (output)
0xb11
0x2032
0x4064
0x80128
0x100256
0x200512
0x4001024
0x8002048
0x10004096
0x20008192
0x400016384
0x800032768
0xffff65535

More number system pairs

Other fixed input/output converters use the same parsing rules as the hub. Open any pair for the same calculator layout and reference tables.