Hex to Decimal Converter

Convert hexadecimal to decimal. Prefixes like 0x and # are fine.

Result 6719.

Decimal (base 10)6,719

Step by step

  1. Multiply each digit by its place value (powers of 16) and add: 1 × 163 + 10 × 162 + 3 × 161 + 15 × 160 = 6,719
binary (base 2)1 1010 0011 1111
octal (base 8)15077
decimal (base 10)6,719
hexadecimal (base 16)1A3F
Bits needed13 bits

How to convert hex to decimal

Hex digits run 0–9 then A = 10, B = 11, C = 12, D = 13, E = 14, F = 15. Multiply each digit by 16 raised to its position: 1A3F = 1 × 4096 + 10 × 256 + 3 × 16 + 15 = 6,719.

FF = 255, the largest value of one byte; FFFF = 65,535.

Hex to decimal chart (00–FF)

0123456789ABCDEF
00123456789101112131415
116171819202122232425262728293031
232333435363738394041424344454647
348495051525354555657585960616263
464656667686970717273747576777879
580818283848586878889909192939495
696979899100101102103104105106107108109110111
7112113114115116117118119120121122123124125126127
8128129130131132133134135136137138139140141142143
9144145146147148149150151152153154155156157158159
A160161162163164165166167168169170171172173174175
B176177178179180181182183184185186187188189190191
C192193194195196197198199200201202203204205206207
D208209210211212213214215216217218219220221222223
E224225226227228229230231232233234235236237238239
F240241242243244245246247248249250251252253254255

Row = first hex digit, column = second: 7F = 127, FF = 255.

Frequently asked questions

What is FF in decimal?

255.

What is 0x1A3F in decimal?

6,719.

What does 0x mean?

It marks a hexadecimal number in programming languages.