Hex to Decimal Converter

Convert hexadecimal (base 16) numbers to decimal.

Hex
Decimal
Runs locally in your browser

About the Hex to Decimal Converter

This tool converts hex numbers to decimal with arbitrary precision, accepting an optional 0x prefix and ignoring case. Convert several at once, one per line. It is the everyday tool for reading a hex value, a colour component, a status code or an address, as an ordinary number.

To go the other way, use Decimal to Hex; to decode a hex string as text bytes rather than a number, Hex Decode.

Reading a memory address or a 64-bit identifier is the classic case. A value such as DEADBEEFCAFEBABE is 64 bits wide, well past the 53 bits a double-precision number holds exactly, so the conversion runs in big integers and every digit survives instead of the last few being rounded away.

Case is irrelevant, so DEADBEEF and deadbeef agree, and a leading 0x, 0b or 0o marker is stripped rather than treated as digits. Spaces and underscores inside the value are ignored too, which means a spaced dump such as 4A 6F 68 6E converts as one number. Watch for the letter O standing in for a zero when hex has been retyped from a screenshot or a PDF, since O is not a hex digit and is reported as invalid. For the RGB channels behind a colour value, split it into byte pairs first with Hex to Binary or the Color Converter.

How to use

  1. Paste hex numbers, with or without 0x.
  2. Copy the decimal results.
  3. Case does not matter.

Common questions

Do I need the 0x prefix?
No, it is optional and stripped if present.
Is it case-sensitive?
No, FF and ff give the same result.
What about a hex colour like FFFFFF?
It converts to its decimal value; to split into RGB, use the Hex to RGB tool.