Skip to main content
chain
⇄
Hex to Decimal
⌃⏎ run · ⎋ clear · / focus input
Decimal · base 10
send result to
no matches
Hexadecimal · base 16
Binary · base 2
Octal · base 8
Enter a hexadecimal value above to convert it
// about this tool

Hex to Decimal Online

Updated 2026-10-24

Convert hexadecimal to decimal online for free. Paste a hex value (with or without a 0x prefix) and SnapTools shows its base-10 value instantly, in your browser. Nothing you enter is uploaded.

Hex is everywhere in computing (colour channels, byte values, memory addresses), but to reason about sizes and ranges you often need the plain decimal number. This converter does the positional arithmetic (each digit times a power of 16) in one step, so FF becomes 255 and 0x1A becomes 26. For every base at once, use the Number Base Converter.

// how to use

  1. 1 Paste or type a hexadecimal value into the input (a leading 0x and spaces are fine).
  2. 2 SnapTools converts it to a decimal (base-10) number as you type.
  3. 3 Copy the decimal result, or open the Number Base Converter for all bases at once.

// examples

Byte value
Input
FF
Output
255
With 0x prefix
Input
0x1A
Output
26

// common uses

Turning a hex byte or colour channel into a number Reading memory addresses or status codes as decimals Learning positional notation in base 16 Checking a manual hex-to-decimal conversion

// faq

Is there a point where converting a large hex value to decimal loses precision?
Yes. Once a value exceeds 2^53 - 1 (about nine quadrillion, the limit JavaScript calls Number.MAX_SAFE_INTEGER), standard floating-point math can no longer represent every integer exactly, so extremely large hex numbers can round to the wrong decimal value in ordinary double-precision arithmetic.
How do I convert hex to decimal by hand?
Each hex digit is worth its face value times 16 raised to how many places it sits from the right, and totaling those weighted values across the digits gives the decimal number; 1A breaks down as 1 times 16 plus 10 for A, or 26. Skip the position tracking and let this tool total it for you.
What does the letter A-F mean in hex?
Hexadecimal needs 16 digits, so after 9 it uses A-F for the values 10 through 15. A is 10, B is 11, up to F which is 15.
Does it accept a 0x prefix?
It does. Whether the prefix is written as 0x or 0X, it gets dropped before conversion, and spaces between digit groups are ignored too, so values copied straight from source code convert cleanly.
What if my input is not valid hex?
The allowed characters are the ten digits and the six letters A through F, nothing else; a character outside that range gets flagged right away, since letting it through would just produce a meaningless number.

Use this via API

Get a free API key →
curl -X POST https://thesnaptools.com/api/v1/tools/hex-to-decimal \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"number":"FF"}'