Decimal to Hexadecimal Converter | Convert Decimal to Hex

Free online decimal to hexadecimal converter. Convert decimal numbers to hex with step-by-step explanations. Includes conversion tables and examples.

Hex Digits (10-15)

Dec: 10
Hex: A
Dec: 11
Hex: B
Dec: 12
Hex: C
Dec: 13
Hex: D
Dec: 14
Hex: E
Dec: 15
Hex: F

Powers of 16

160
= 1
161
= 16
162
= 256
163
= 4,096
164
= 65,536

Step-by-Step Examples

255₁₀ = FF₁₆

Maximum 8-bit value

255 ÷ 16 = 15 remainder 15 (F)
15 ÷ 16 = 0 remainder 15 (F)
Result: FF

256₁₀ = 100₁₆

Power of 16 (16²)

256 ÷ 16 = 16 remainder 0
16 ÷ 16 = 1 remainder 0
1 ÷ 16 = 0 remainder 1
Result: 100

4095₁₀ = FFF₁₆

Maximum 12-bit value

4095 ÷ 16 = 255 remainder 15 (F)
255 ÷ 16 = 15 remainder 15 (F)
15 ÷ 16 = 0 remainder 15 (F)
Result: FFF

How Decimal to Hex Conversion Works

Division Method

  1. Divide the decimal number by 16
  2. Convert remainder (0-15) to hex digit (0-F)
  3. Divide quotient by 16
  4. Repeat until quotient becomes 0
  5. Read the hex digits from bottom to top

Tips

  • Remember: A=10, B=11, C=12, D=13, E=14, F=15
  • Each hex digit represents 4 binary digits
  • Two hex digits = one byte

Common Values

255 = FF (max byte)

16 = 10 (single hex digit)

15 = F (max single digit)

256 = 100 (power of 16)

Practice Problems

Convert: 42₁₀

Answer: 2A₁₆

Convert: 160₁₀

Answer: A0₁₆

Convert: 255₁₀

Answer: FF₁₆

Real-World Applications

Color Codes

RGB colors use hex codes:

255, 0, 0 = #FF0000 (Red)
0, 255, 0 = #00FF00 (Green)
0, 0, 255 = #0000FF (Blue)

Memory Addresses

Computer memory addresses are often shown in hex:

65535 = 0xFFFF
4096 = 0x1000
256 = 0x100

About this Calculator

Free online decimal to hexadecimal converter. Convert decimal numbers to hex with step-by-step explanations. Includes conversion tables and examples.

Related Searches

decimal to hexdecimal to hexadecimalconvert decimal to hexbase-10 to base-16decimal hex converterhex conversion