Skip to main content
Skip to main content

What is Hexadecimal?

Image showing decimal digits 0-9 and hexadecimal digits 0-9 and A-F with color coding
Comparing decimal and hexadecimal digits

Decimal is our everyday number system that uses 10 digits (0-9). This is called base-10 because it has 10 possible digits.

Hexadecimal is a number system that uses 16 digits: 0-9 and then A-F (where A=10, B=11, C=12, D=13, E=14, F=15). This is called base-16 because it has 16 possible digits.

Why do we need hexadecimal? Computers use binary (base-2) which is very long to write. Hexadecimal is a shorter way to represent binary numbers. Each hexadecimal digit represents 4 binary digits (bits).

0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F

How to Convert Decimal to Hexadecimal

Infographic showing the conversion process: 1. Divide by 16, 2. Write remainder, 3. Continue with quotient, 4. Read remainders backwards
Visual guide to the conversion process

Converting decimal to hexadecimal is easy once you learn the steps:

Conversion Steps

  1. Divide the decimal number by 16
  2. Write down the remainder (convert to hex digit if needed)
  3. Divide the quotient by 16 again
  4. Repeat until quotient is zero
  5. Read the remainders from last to first
Let's practice with an example:

Example: Convert 25510 to hexadecimal
Step 1: 255 ÷ 16 = 15 remainder 15 → F
Step 2: 15 ÷ 16 = 0 remainder 15 → F
Step 3: Read remainders backwards: FF

So 25510 = FF16

Decimal to Hexadecimal Converter

Use this tool to convert any decimal number to hexadecimal. Enter a number between 0 and 10000 and click "Convert to Hex" to see the result!

Conversion Examples

Chart showing conversion examples: 10 → A, 16 → 10, 32 → 20, 100 → 64, 255 → FF
Common decimal to hexadecimal conversions

Let's practice with more examples:

Example 1: Convert 1010 to hexadecimal
10 ÷ 16 = 0 remainder 10 → A
Result: 1010 = A16

Example 2: Convert 1610 to hexadecimal
16 ÷ 16 = 1 remainder 0 → 0
1 ÷ 16 = 0 remainder 1 → 1
Result: 1610 = 1016

Example 3: Convert 10010 to hexadecimal
100 ÷ 16 = 6 remainder 4 → 4
6 ÷ 16 = 0 remainder 6 → 6
Result: 10010 = 6416

Example 4: Convert 50010 to hexadecimal
500 ÷ 16 = 31 remainder 4 → 4
31 ÷ 16 = 1 remainder 15 → F
1 ÷ 16 = 0 remainder 1 → 1
Result: 50010 = 1F416

Common Decimal to Hexadecimal Conversions

Decimal Hexadecimal
00
11
10A
15F
1610
3220
6440
10064
255FF
512200

Conversion Practice Quiz

Test your conversion skills with this 5-question quiz. Choose the correct answer for each question.

1. What is 15 in hexadecimal?
2. Convert 32 to hexadecimal.
3. How many digits does hexadecimal use?
4. What is the hexadecimal digit for 11?
5. Convert 255 to hexadecimal.

Frequently Asked Questions

Here are answers to common questions about decimal to hexadecimal conversion:

Number System Trivia

Discover interesting facts about number systems:

Copyright © 2025 Workybooks. Made with ♥ in California.