Decimal to Hex Converter

A
Decimal to Hexadecimal Converter

Decimal to Hexadecimal Conversion

Dec
Hex

Decimal

Decimal number is a number expressed in the base 10 numeral system. Decimal number’s digits have 10 symbols: 0,1,2,3,4,5,6,7,8,9. Each digit of a decimal number counts a power of 10.

Decimal number example:
65310 = 6×102+5×101+3×100

Hexadecimal

Hexadecimal number is a number expressed in the base 16 numeral system. Hexadecimal number’s digits have 16 symbols: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. Each digit of a hexadecimal number counts a power of 16.

Hexadecimal number example:
62C16 = 6×162+2×161+12×160 = 158010

How to convert from decimal to hex

Conversion steps:

  1. Divide the number by 16.
  2. Get the integer quotient for the next iteration.
  3. Get the remainder for the hex digit.
  4. Repeat the steps until the quotient is equal to 0.

Example #1

Convert 756210 to hex:

Division
by 16
Quotient
(integer)
Remainder
(decimal)
Remainder
(hex)
Digit #
7562/1647210A0
472/1629881
29/16113D2
1/160113

So 756210 = 1D8A16

Example #2

Convert 3563110 to hex:

Division
by 16
QuotientRemainder
(decimal)
Remainder
(hex)
Digit #
35631/16222615F0
2226/16139221
139/16811B2
8/160883

So 3563110 = 8B2F16

Decimal to hex conversion table

Decimal

base 10

Hex

base 16

00
11
22
33
44
55
66
77
88
99
10A
11B
12C
13D
14E
15F
1610
1711
1812
1913
2014
2115
2216
2317
2418
2519
261A
271B
281C
291D
301E
4028
5032
603C
7046
8050
905A
10064
200C8
10003E8
20007D0

Leave a comment
Your email address will not be published. Required fields are marked *