Decimal to Hex Converter

Enter a decimal number to get its hexadecimal form, with the divide-by-16 steps.

Result 1A3F.

Hexadecimal (base 16)1A3F

Step by step

  1. Divide by 16 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    6,719 ÷ 16419F
    419 ÷ 16263
    26 ÷ 161A
    1 ÷ 1601
  2. Read the remainders from bottom to top: 1A3F
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 decimal to hex

Divide by 16 and keep the remainders (10–15 become A–F); read them from the bottom up. 6,719 ÷ 16 = 419 r15 (F), 419 ÷ 16 = 26 r3, 26 ÷ 16 = 1 r10 (A), 1 ÷ 16 = 0 r1 → 1A3F.

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 255 in hex?

FF.

What is 6719 in hex?

1A3F.