Hex to decimal converter

Type a hexadecimal number such as FF or 0x1A3 and read its decimal value straight away. Upper and lower case both work, and a 0x prefix is optional.

  • Free
  • No sign-up
  • Runs in your browser

Decimal (10)

255

The same number in common bases
BaseValue
Binary (2)11111111
Octal (8)377
Decimal (10)255
Hexadecimal (16)FF

Whole numbers of any size are converted exactly (up to 5,000 digits). Prefixes 0x, 0b and 0o, spaces, underscores and a leading minus sign are accepted. Fractions are not supported.

Runs in your browser — your text is never sent to our servers.

How to use Hex to Decimal

  1. Type or paste your hex value, for example FF or 0xDEADBEEF.
  2. Read the decimal value in the result box.
  3. Check the table for the same number in binary and octal.
  4. Click Copy to copy the decimal value.

Features

  • Accepts upper or lower case and an optional 0x prefix
  • Exact for long hex values, such as 64-bit and larger
  • Also shows the value in binary and octal
  • Clear message when a character is not a hex digit
  • Runs in your browser, so nothing is uploaded

Supported formats and limits

  • Maximum input: 10,000,000 characters

Examples

InputResult
FF255
1A3419
0xDEADBEEF3735928559
12GError: "g" is not a valid digit in base 16.

Limitations

  • Only whole numbers are supported; hex fractions are not.
  • Hex is read as an unsigned number unless you type a minus sign; two’s complement is not applied.
  • Input is limited to 5,000 digits.

Learn more

Hexadecimal is a base-16 number system. It needs sixteen symbols, so after 0–9 it uses the letters A to F. Each position is worth a power of 16: 1, 16, 256, 4,096 and so on.

Programmers like hex because it lines up neatly with binary. One hex digit represents exactly four bits, so a byte is always two hex digits, from 00 to FF. Memory addresses, color codes such as #FF8800, MAC addresses and many file formats are written in hex for that reason.

To read a hex number as decimal, multiply each digit by its power of 16 and add the results: 1A3 is 1 × 256 + 10 × 16 + 3 × 1 = 419. This tool does that with exact integers, so even very long values such as 64-bit identifiers convert without rounding.

Frequently asked questions

What are the digits of hexadecimal?

The digits 0–9 and the letters A–F, where A is 10, B is 11, C is 12, D is 13, E is 14 and F is 15.

How do I convert hex to decimal by hand?

Multiply each digit by 16 raised to its position, counting from 0 on the right, and add. For 1A3: 1×256 + 10×16 + 3 = 419.

Does the 0x prefix matter?

No. It is optional and is ignored when present.

Is my input uploaded?

No. The conversion runs in your browser.

Sources

Last reviewed: September 30, 2026