Hex to Decimal Converter

Convert hexadecimal to decimal, binary, and octal. Accepts the 0x prefix and negative values, with exact big-integer math.

Independently verified for accuracy

Calculator by Toolsloft ↗
Decimal
255
Binary
11111111
Octal
377

Convert a hex value to a plain decimal number, and see its binary and octal forms at the same time. You can paste the value with or without the 0x prefix, and negatives are supported. It reads color codes, memory addresses, and byte values without you reaching for a scientific calculator.

How this is calculated

Each hex digit is read using positional notation (16 raised to its place) with big-integer arithmetic, then the total is rewritten in base 10, base 2, and base 8 by repeated division. This is the standard base-conversion method, so results are exact for numbers of any size.

How to use

  1. Enter the hexadecimal value, with or without a 0x prefix.
  2. Read the decimal result, plus its binary and octal forms.
  3. Copy the value you need.

Examples

  • Byte: ff becomes 255
  • With prefix: 0x1A becomes 26

FAQ

Do I need to remove the 0x prefix?
No. A leading 0x or 0X is optional and is ignored during conversion.
Is hex case sensitive here?
No. Upper and lower case hex digits (A to F and a to f) are treated the same.

Embed this calculator

Add this free calculator to your own site. Copy the code and paste it where you want it to appear.