Hex to Decimal Converter

Type a hexadecimal number to see it in decimal and the other common bases, with the working shown step by step.

Decimal
255
Binary
1111 1111
Octal
377
Hexadecimal
FF
Other base (36)
73

Bits: 8

Working
positional expansion / repeated division / bit grouping
  1. F×16¹ + F×16⁰
  2. = 240 + 15
  3. FF₍16₎ = 255₍10₎

How to convert

  1. Positional expansion: multiply each digit by 16 to the power of its position (rightmost is 0) and add.
  2. In hex, A=10, B=11, C=12, D=13, E=14, F=15. Example: FF = 15×16¹ + 15×16⁰ = 240 + 15 = 255.

Notes

  • Integers of any length are converted exactly — no scientific notation.
  • Prefixes are accepted: 0x for hex, 0b for binary, 0o for octal; spaces and underscores are ignored.
  • Negative numbers: prefix with "-". Fractions are not supported yet.

Hex to Decimal table

HexDecimalBinary
000
111
2210
3311
44100
55101
66110
77111
881000
991001
A101010
B111011
C121100
D131101
E141110
F151111
10161 0000
203210 0000
4064100 0000
64100110 0100
7F127111 1111
801281000 0000
FF2551111 1111
1002561 0000 0000
3E8100011 1110 1000
4001024100 0000 0000
100040961 0000 0000 0000
FFFF655351111 1111 1111 1111

Frequently Asked Questions

Related