Math & Number Utilities100% Client-Side

Convert Hexadecimal to Decimal

Paste a hexadecimal integer to read its exact value in decimal. The tool uses base-sixteen place values for both the numerical and letter digits, then presents the result in ordinary base-ten notation. It accepts a 0x prefix and hexadecimal letters in either case. This is useful when comparing a compact hex field against a decimal reference or reading a value that exceeds a standard fixed-width integer range.

Input
2 chars•1 lines
Output

Reverse tool

Decimal to Hexadecimal Converter

Convert signed decimal integers to uppercase hexadecimal. Get the exact base-16 result for a whole number and copy it into a test fixture or exercise.

Open Decimal to Hexadecimal Converter
Example input
42
Example output
2A

How to Use the Hexadecimal to Decimal Converter Online

  1. 1Paste one whole hexadecimal number with its sign and optional 0x prefix.
  2. 2Check that its digits are 0 through 9 or A through F. Either case is accepted.
  3. 3Read the normalized decimal result and compare its magnitude and sign with your expected reference.
  4. 4Copy the complete result. Record both bases explicitly when documenting the conversion.

Input & Output Examples

The magnitude is 42 in decimal, so the displayed result is its decimal representation.

Input Sample
2A
Expected Output
42

The grouping underscores are removed before reading the integer. The exact value is one more than 2 to the power 53.

Input Sample
0x20_0000_0000_0001
Expected Output
9007199254740993

Practical Developer Workflows

  • Read the decimal value of an integer from a text hex fixture.
  • Compare equivalent lowercase and uppercase inputs with the same reference total.
  • Translate a signed compact hexadecimal number into decimal for a public exercise.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

They represent decimal ten through fifteen. The position also matters. In 2A, the 2 occupies the sixteens place and A occupies the ones place. The total is two times sixteen plus ten, or 42.

Explore Other Tools

12 suggested tools

View all tools