Home / Tools / Decimal to Hexadecimal Converter
Computer Science & Number Systems

Decimal to Hexadecimal Converter & Hex Calculator

Convert base-10 denary numbers to base-16 hexadecimal and decode hex back to decimal in real-time. Features step-by-step division by 16 remainder tracking, synchronous multi-base representations (Binary, Octal, ASCII), two's complement, and a live hexadecimal reference table.

Quick Presets:
Decimal (Base 10 / Denary)
Hexadecimal (Base 16)

Multi-Base Number System Representation

Hexadecimal (16):
1D8A
Decimal / Denary (10):
7562
Binary (Base 2):
0001 1101 1000 1010
Octal (Base 8):
16612
Step-by-Step Mathematical Division by 16:
Step Division Operation Quotient Remainder (Decimal) Remainder (Hex)

Decimal to Hexadecimal Conversion Chart (0 to 255)

Standard reference table for 8-bit bytes, ASCII codes, and color values. Type to search any decimal, hex, or binary value.

Decimal (Denary) Hexadecimal (8-bit) Binary (8-bit) Octal ASCII / Glyph

Complete Guide to Decimal to Hexadecimal Conversion

The decimal (base 10 / denary) system is the standard numbering system used in everyday human counting, utilizing the ten digits 0 through 9. The hexadecimal (base 16) system is widely employed in computer science, software development, memory addressing, color representation (CSS hex codes), and digital electronics because each hexadecimal digit neatly represents exactly 4 binary bits (a nibble).

How to Convert Decimal to Hexadecimal (Division by 16 Method)

The standard manual algorithm to convert any positive integer from base 10 to base 16 is successive integer division by 16:

  1. Divide the decimal number by 16 to find the integer quotient and the remainder.
  2. Write down the remainder. If the remainder is between 10 and 15, substitute the appropriate hexadecimal letter:
    • 10 = A
    • 11 = B
    • 12 = C
    • 13 = D
    • 14 = E
    • 15 = F
  3. Replace the original number with the integer quotient.
  4. Repeat steps 1 through 3 until the quotient becomes zero.
  5. Read the hex digits from bottom to top (most significant digit to least significant digit).
Example: Convert Decimal 7562 to Hexadecimal

• 7562 ÷ 16 = 472 remainder 10 → A
• 472 ÷ 16 = 29 remainder 8
• 29 ÷ 16 = 1 remainder 13 → D
• 1 ÷ 16 = 0 remainder 1
Reading remainders in reverse order: 1D8A₁₆

How to Convert Hexadecimal Back to Decimal (Powers of 16)

To go from hexadecimal to decimal, multiply each hexadecimal digit by 16 raised to the power of its position index (starting at 0 for the rightmost digit):

Decimal = (dₙ × 16ⁿ) + ... + (d₁ × 16¹) + (d₀ × 16⁰)

Example: Convert 1D8A₁₆ to decimal:
• (1 × 16³) = 1 × 4096 = 4096
• (D × 16²) = 13 × 256 = 3328
• (8 × 16¹) = 8 × 16 = 128
• (A × 16&sup0;) = 10 × 1 = 10
Sum = 4096 + 3328 + 128 + 10 = 7562₁₀

Frequently Asked Questions

How do you convert decimal to hexadecimal quickly?
Use our free real-time converter above by entering any decimal integer. For manual mental math, divide by 16 successively and write down the remainders, replacing 10 through 15 with letters A through F.
What is denary in computer science?
Denary is simply another word for decimal (the base-10 numbering system). The term 'denary' is commonly taught in British computer science curriculums (GCSE / A-Levels) to differentiate base 10 from binary (base 2) and hexadecimal (base 16).
Why do computers and programmers use hexadecimal?
Binary strings like 11111111 are long and error-prone for humans to read. Since 16 is 2⁴, exactly four binary bits correspond to one hexadecimal character. For example, 11111111₂ simplifies directly to FF₁₆, making it ideal for memory addresses, IPv6, and CSS color codes.
How do you convert decimal to octal and hexadecimal together?
Our converter calculates Hexadecimal, Octal (base 8), and Binary simultaneously. In manual conversion, you can convert decimal to binary first, then group bits into chunks of 3 for octal and chunks of 4 for hexadecimal.
What is decimal 255 in hexadecimal?
Decimal 255 in hexadecimal is FF. 255 / 16 = 15 remainder 15 (F), and 15 / 16 = 0 remainder 15 (F). FF represents the maximum value of an 8-bit unsigned byte.
Copied to clipboard!