Convert hex to decimal and binary

Read a hex value from a debugger or a protocol trace as decimal, binary and octal - signed and unsigned, with exact maths on 64-bit values.

Open this example in Number Base Converter

Open the tool, then paste the sample input below. Everything runs locally in your browser.

Open this example in Number Base Converter →

The problem

A hex value from a register dump means nothing until you can see it as a number and as bits. Converting it in a JavaScript console quietly loses precision above 2^53 - exactly where 64-bit values live.

Sample input

Hex value
0xDEADBEEF

Expected output

Converted value
Decimal:            3735928559
Signed (32-bit):    -559038737
Binary:             0b11011110101011011011111011101111
Octal:              0o33653337357
Bytes:              DE AD BE EF

How to do it

  1. Paste the value with its prefix - 0x for hex, 0b for binary, 0o for octal.
  2. Pick the register width so the signed reading matches the system you are debugging.
  3. Read the decimal, binary and octal forms in the result panel.
  4. Open the Bit map tab to inspect individual bytes and flags.
  5. Paste several values on separate lines to convert a whole column.

Common mistakes

  • Reading a 32-bit value as unsigned when the code treats it as signed.
  • Converting a 64-bit value with a Number-based tool and losing the low digits.
  • Forgetting the 0x prefix, so a hex value is read as decimal.
  • Mixing up byte order when comparing against a memory dump.

Related tools

FAQ

How do I convert hex to decimal?

Paste the value with its 0x prefix, or set the input base to hexadecimal for bare digits. The decimal form appears immediately.

What is the signed value of 0xFFFFFFFF?

-1 when read as a 32-bit two's-complement integer, and 4,294,967,295 when read as unsigned. Both readings are shown side by side.

Does it handle 64-bit values exactly?

Yes. Everything runs through BigInt, so values above 2^53 keep every digit instead of being rounded.

Is my data uploaded?

No. All conversion happens locally in your browser.

This guide uses browser-local tooling. Avoid pasting production secrets unless you understand what the tool displays and shares.

Explore related tools

Continue with adjacent browser-based tools for the same workflow.

View security and debugging tools →

Convert hex to decimal and binary: quick answer

Use this when reading a hex value out of a debugger, a packet trace or a log line, and you need it as a decimal number, a bit pattern, or both readings of a signed integer. Set the register width to match the system before trusting the signed value.

What to verify

Check the register width, whether the value is meant to be signed, and whether the byte order matches the source. If the value was truncated to fit the width, the tool says so.

Recommended next steps