Nifty Dev Tools
  1. Home
  2. Number Converter
  3. Hex to Decimal
Convert

Hex to Decimal Converter

We never upload what you paste ✨

Type a hex number and get it in decimal instantly. Any size, negative numbers and two's complement included.

Hex
Decimal

The result will appear here as you type.

How to convert hex to decimal

Multiply each digit by its place value (powers of 16) and add them up. For 2F3:

2 × 16^2 + F × 16^1 + 3 × 16^0
= 512 + 240 + 3
= 755

Remember: A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.

Hex to decimal table

HexDecimal
00
11
22
33
44
55
66
77
88
99
A10
B11
C12
D13
E14
F15
1016
2032
4064
64100
7F127
80128
FF255
100256
4001024
10004096
FFFF65535

FAQ

How are negative numbers converted?

Without a bit width, the sign is kept: −255 becomes −FF. Choose a bit width and turn on Signed to use two's complement, the way computers store negative numbers: −1 in 8 bits is FF.

Is there a size limit?

No practical one. Arbitrary-precision integers (BigInt) convert even 100-digit numbers exactly. Fractions aren't supported.

Can I paste 0x, 0b or 0o prefixes, spaces or underscores?

Yes. Prefixes are recognized, and spaces or underscores between digits (like 1111_0000) are ignored. Put several numbers on separate lines to convert them all at once.

Is my data uploaded?

No. Everything is converted in your browser. Privacy