Skip to content
Converters

Decimal to Hexadecimal Converter — With Step-by-Step Solution

Convert decimal (base 10) numbers to hexadecimal (base 16) instantly, with a step-by-step explanation of the method — perfect for ICT and computer science students.

Example156 → 9C

Loading converter…

Files never leave your deviceInstant resultsFree & unlimitedReverse: Hexadecimal to Decimal

How to convert decimal to hexadecimal (example: 156)

Use repeated division: divide the decimal number by 16, write down the remainder, and repeat with the quotient until it reaches 0. Then read the remainders from bottom to top.

  1. 156 ÷ 16 = 9 remainder C
  2. 9 ÷ 16 = 0 remainder 9

Reading the remainders upward gives 9C.

Place value chart

Every digit of 156 (base 10) is worth its value multiplied by a power of 10. Adding the last column gives the decimal value 156.

DigitPlace valueContribution
1102 = 100100
5101 = 1050
6100 = 16

Remember: in base 16 the allowed digits are 0123456789ABCDEF; in base 10 they are 0123456789.

Decimal to Hexadecimal table

DecimalHexadecimal
00
11
22
33
44
55
77
88
10A
15F
1610
2519
3220
5032
6440
10064
1277F
12880
255FF
256100
512200
10003E8
1024400
20267EA

Where number systems are used

  • Binary — how CPUs, memory and network packets store every value.
  • Octal — Unix/Linux file permissions such as chmod 755.
  • Hexadecimal — colour codes (#FF5733), MAC addresses, memory dumps and Unicode code points.
  • Decimal — everyday arithmetic, prices and measurements.

About these number systems

Decimal

Decimal (base 10) is the everyday number system using digits 0–9.

Hexadecimal

Hexadecimal (base 16) uses 0–9 and A–F, common in programming, colour codes and memory addresses.

Frequently asked questions

What is 156 (decimal) in hexadecimal?

156 in base 10 equals 9C in base 16.

Can it convert very large numbers?

Yes. The converter uses arbitrary-precision integers (BigInt), so large numbers convert exactly.

Is this useful for HSC ICT?

Yes. Number systems are part of the HSC ICT syllabus in Bangladesh, and the step-by-step method matches textbook solutions.