Math calculator

Free hex to decimal calculator

Convert hexadecimal numbers to decimal — enter any hex value to see the equivalent base-10 number, updated live, as you type.

InputsLive
Hex value
Enter hex digits (0-9, A-F). Optionally prefix with 0x.
Result
Decimal value
6,719
1A3F = 6,719 in decimal
Hex input1A3F
Decimal output6,719
Binary equivalent1101000111111

Hexadecimal to decimal conversion. Base-16 → base-10.

Results are estimates. Consult a professional.

How it's calculated

How the hex-to-decimal calculator works

Hexadecimal (base-16) is a positional numeral system. Each digit's contribution to the total equals its face value multiplied by 16 raised to the power of its position, where positions are counted from zero starting at the rightmost digit. The letter digits A through F stand for the numeric values 10 through 15.

Decimal = Σ (digit value × 16^position)
Positions: rightmost digit = position 0, next = 1, next = 2, …
Letter values: A=10 B=11 C=12 D=13 E=14 F=15
Positional notation in base-16 is standardised in ISO/IEC 80000-2:2019, Mathematical signs and symbols.
Example

Worked example: 2F₁₆ and 1A3₁₆

Example: convert 2F₁₆ and 1A3₁₆ to decimal

Two conversions of increasing length to show the positional method: a two-digit hex value (2F) and a three-digit value (1A3).

2F₁₆:
2 × 16¹ = 2 × 16 = 32
F × 16⁰ = 15 × 1 = 15
Total = 32 + 15 = 47
1A3₁₆:
1 × 16² = 1 × 256 = 256
A × 16¹ = 10 × 16 = 160
3 × 16⁰ = 3 × 1 = 3
Total = 256 + 160 + 3 = 419
2F₁₆ = 47
2F in hexadecimal equals 47 in decimal. 1A3₁₆ = 419.
Quick reference

Common hex values and their decimal equivalents

These values recur constantly in programming, color codes, and network addressing. Recognising them on sight eliminates the need for manual calculation in everyday work.

HexDecimalCommon use
0F15Maximum single hex digit
1016First two-digit hex number; 2⁴
1F31Lower 5 bits all set
2032Space character (ASCII); 2⁵
3C60Minutes / seconds in an hour
64100Full percentage; common opacity value
7F127Max signed byte (two's complement)
80128Min negative signed byte; 2⁷
FF255Max unsigned byte; full color channel
1002562⁸; one byte overflow point
40010241 kibibyte (KiB); 2¹⁰
FFFF65535Max 16-bit unsigned integer

Source: standard computing reference values. ASCII table per ANSI X3.4-1986.

Practical tips

Tips for hex-to-decimal conversion

With practice, common hex values become instantly recognisable. Until then, these techniques keep manual conversion accurate and fast.

  • Write positions under each digit — Label each digit with its position (0 at the right) before multiplying. This prevents the most common error: miscounting positions.
  • Substitute letters first — Replace A–F with 10–15 before doing any arithmetic. Mixing letter and numeric representations mid-calculation leads to mistakes.
  • Use 16¹ = 16, 16² = 256, 16³ = 4096 — Memorise these three powers and you can handle any value up to 0xFFFF (65,535) from memory.
  • Break long strings into byte pairs — A 6-digit hex string like #1A2B3C splits naturally into 1A, 2B, 3C — each pair converts independently to a decimal value 0–255.
  • Verify with the nibble method — Convert each hex digit to its 4-bit binary nibble, concatenate all nibbles, then evaluate the binary number. Both routes should give the same decimal.
Accuracy & limits

Accuracy and limitations

The positional calculation is mathematically exact for non-negative integers of any length. For very large hex values (more than 13 hex digits, exceeding 2⁵³ − 1 in JavaScript), precision may be lost in environments using 64-bit floating-point arithmetic. Use a BigInt-based implementation when working with cryptographic hashes, UUIDs, or other large identifiers.

Glossary

Key terms

A numeral system with 16 distinct symbols (0–9, A–F). Each digit position represents a power of 16.
A system where each digit's value is its face value multiplied by the base raised to that digit's position.
A single character in the range 0–9 or A–F. Represents a value from 0 to 15 and encodes exactly 4 binary bits.
4 bits — the exact equivalent of one hexadecimal digit. Two nibbles form a byte.
A whole number with no negative values. An unsigned byte spans 0–255 (00₁₆–FF₁₆); an unsigned 16-bit integer spans 0–65,535.
The standard computer representation for signed integers. For an 8-bit value, 0x80 (128) represents −128 and 0xFF (255) represents −1.
About

About this calculator

Part of our math calculators suite — explore all calculators.

Questions

Frequently asked questions about the free hex to decimal calculator

A hex to decimal calculator is a free online tool that helps you convert hexadecimal to decimal. Standard base conversion. It runs entirely in your browser with instant results and no sign-up.
JavaScript double-precision floating-point — accurate to about 15-17 significant digits. For arbitrary precision, use the Big Number calculator.
The statistics calculator computes population variance (divides by n). For sample variance, multiply variance by n/(n-1).

Want a calculator built for your business?

Customize any of our 400+ tools to match your brand, or commission a new one tailored to how your business actually calculates — pricing, payroll, quotes, anything. Deployed on your domain, math runs in your visitors' browsers.