Decimal to hex

This converter can convert decimal numbers to hexadecimal numbers very quickly, both negative and floating-point numbers are supported for conversion. At the same time, you can also choose any conversion between binary to base 36. Hexadecimal to decimal converter

Base(default decimal)
Decimal number
Target base(default hex)
Conversion result

Knowledge of converter

In mathematics and computing, hexadecimal (also base 16, or hex) is a positional numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 0–9 to represent values zero to nine, and A–F (or alternatively a–f) to represent values ten to fifteen.

In the decimal system each decimal place is a power of ten. For example:

8510 = 8 x 101 + 5x 100

In the hex system each place is a power of 16. For example:

21616 = 2 x 162 + 1x 161+ 6x 160

How to convert decimal to hexadecimal

  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

Convert 823610 to hexadecimal:

Division by 16QuotientRemainderBit #
8236/16514c0
514/163221
32/16202
2/16023

So 823610 = 202c16

Decimal to hex conversion table

Decimal NumberHex Number
00
11
22
33
44
55
66
77
88
99
10a
11b
12c
13d
14e
15f
1610
1711
1812
1913
2014
5032
10064
5001f4
10003e8