Digital ToolPad.

Runs 100% in your browser

Your data never leaves your device. zero uploads.

Hex to Decimal Converter

Type a hexadecimal number to get its decimal value, with each step of the conversion explained.

  • Binary · Octal · Decimal · Hex
  • Step-by-step working
  • Two’s complement
  • Big numbers

What is a hex to decimal converter?

Hex to decimal conversion turns a base-16 number into base 10. Each hex digit is multiplied by a power of 16 depending on its position, from 16⁰ on the right, and the results are added. A to F stand for 10 to 15, so FF = 15×16 + 15 = 255. This converter accepts 0x, # and h notation, handles numbers of any length, can read a hex value as a signed two’s complement integer, and shows the full place-value working for your number.

How to convert hex to decimal

  1. Type a hex number in the Hexadecimal box. Prefixes, spaces and underscores are ignored.
  2. Read the decimal result instantly. Binary, octal, decimal, hex and a custom base update together.
  3. Scroll to “How to convert hex to decimal” for the step-by-step working with your number.
  4. For negative numbers, tick Signed and choose a bit width to see the two’s complement form. Then copy any result.

Number base cheat sheet

  • Binary (base 2) uses 0–1, octal (base 8) uses 0–7, decimal (base 10) uses 0–9 and hexadecimal (base 16) uses 0–9 then A–F for 10–15.
  • One hex digit is exactly 4 bits (a nibble), so hex and binary convert digit by digit: F = 1111, A = 1010.
  • Common prefixes: 0b for binary, 0o for octal and 0x for hex. They are optional here.
  • In two’s complement, the top bit is the sign: 1111 1111 is −1 as a signed 8-bit number but 255 unsigned.

Why use this hex to decimal converter

  • Converts as you typeNo Convert button: edit either side and the other updates immediately.
  • Shows the workingStep-by-step place values or repeated division for the conversion you choose, ideal for homework and exams.
  • Any size, signed or unsignedArbitrary-precision integers, plus two’s complement for 8, 16, 32 and 64-bit values.
  • Private by designEverything is calculated in your browser. Nothing you type is sent to a server or saved.

Common uses

  • Memory addresses and offsets. Turn 0x1F4 into 500 to compare sizes.
  • Colour codes. Convert each byte of #FF8800 to 255, 136, 0.
  • Error codes. Read Windows and HTTP error codes in decimal.
  • Homework. Check answers with the place-value working.

Related converters: number base converter, decimal to hex, binary to decimal, decimal to binary, hex to binary, binary to hex, binary calculator, hex calculator. Browse all encoding tools.

Example: hex to decimal

2AF (hex) = 2×16² + A×16¹ + F×16⁰ = 2×256 + 10×16 + 15×1 = 512 + 160 + 15 = 687 (decimal)

What to expect from the result

Whole numbers only: fractional values such as 0.1 are not converted. Very long numbers are converted exactly, but the step-by-step working is shown only for numbers up to 24 digits.

Hex to Decimal Converter questions

How do you convert hex to decimal?

Multiply each digit by 16 raised to its position (counting from 0 on the right) and add the results. 1A = 1×16 + 10 = 26.

What is FF in decimal?

255. F = 15, so FF = 15×16 + 15 = 255, the largest value of one byte.

What does 0x mean?

0x is a prefix that marks a number as hexadecimal in code, as in 0xFF. You can include or omit it here.

How do I convert a negative hex value?

Tick Signed and choose the bit width. FFFF as a signed 16-bit value is −1; unsigned it is 65,535.

Can I convert hex to decimal in Excel?

Yes, with =HEX2DEC("2AF"). It works for up to 10 hex digits; this converter has no limit.

100% private — your data never leaves your browser

No registration, no tracking of your content, no server uploads. Don't just take our word for it:

  • No server, no uploads

    Your files and text are processed entirely on your device. Nothing is ever sent to us.

  • Works offline

    Once loaded, this tool keeps working with your Wi-Fi turned off. Try it.

  • Verify it yourself

    Open your browser's DevTools → Network tab. You'll see zero requests carrying your data.

Explore more tools

More utilities for your next task.

Browse all tools