Decimal to Hex
Convert any base 10 number to hexadecimal instantly. Type a value and watch the conversion happen in real time with an interactive visual breakdown.
⚡ Quick Convert
Invalid characters for the selected base
⚙️ Live Conversion Diagram
🕑 Recent Conversions
What Is Decimal to Hexadecimal
Converting decimal to hexadecimal means changing a number from the base 10 numeral system to the base 16 numeral system. The decimal number system uses ten digits (0–9). The hexadecimal number system adds six more symbols — the hex digits A–F — to represent values 10 through 15.
Programmers and engineers prefer hexadecimal because it maps cleanly to binary numbers. Each hex digit represents exactly four binary bits. A single byte (8 bits) fits in just two hex digits. Memory addresses, color codes, and machine instructions become much easier to read than raw binary.
🔄 Base Comparison — See One Number in Every Base
Decimal Number System
The decimal number system is the base 10 numeral system you use every day. Each digit position represents a power of 10. The rightmost digit is the ones place (10⁰), the next is tens (10¹), then hundreds (10²), and so on. The radix — the base of the number system — is 10.
📊 Decimal Place Values — Interactive Breakdown
Hexadecimal Number System
The hexadecimal number system is a base 16 numeral system. It uses sixteen symbols: digits 0–9 plus the hex digits A–F, where A = 10, B = 11, C = 12, D = 13, E = 14, and F = 15. Each position represents a power of 16.
🔢 Hex Digit Explorer — Click Any Digit
Click a hex digit above to see its details
How to Convert Decimal to Hexadecimal
The standard method is the repeated division and remainder algorithm. Take the integer, divide it by 16, and record the remainder. That remainder maps to a hex digit. Then take the quotient and repeat until it reaches zero. Read the remainders from bottom to top — that's your hexadecimal result.
For example, converting the integer 255: divide 255 by 16 to get quotient 15 and remainder 15. Since 15 maps to F, the hex result is FF. Two divisions, two hex digits.
⚡ Try It — Interactive Division Diagram
Decimal to Hexadecimal Formula
The decimal to hexadecimal formula uses repeated division by the radix (16). At each step, the remainder becomes one hex digit, and the quotient carries forward to the next step.
Step-by-Step Conversion Method
Use the visualizer below to watch the repeated division and remainder algorithm in action. Enter any decimal integer, then play or step through each division.
Enter a decimal number above and click "Visualize"
to see the conversion animated step by step.
All Conversion Tools
Instantly convert between number systems, encodings, and formats with interactive step-by-step breakdowns.
Decimal to Hexadecimal
Base 10 → Base 16
Try Now →Hexadecimal to Decimal
Base 16 → Base 10
Try Now →Decimal to Binary
Base 10 → Base 2
Try Now →Binary to Decimal
Base 2 → Base 10
Try Now →Decimal to Octal
Base 10 → Base 8
Try Now →Octal to Decimal
Base 8 → Base 10
Try Now →Octal to Hexadecimal
Base 8 → Base 16
Try Now →Hexadecimal to Octal
Base 16 → Base 8
Try Now →Octal to Binary
Base 8 → Base 2
Try Now →Binary to Octal
Base 2 → Base 8
Try Now →Hexadecimal to Binary
Base 16 → Base 2
Try Now →Binary to Hexadecimal
Base 2 → Base 16
Try Now →Decimal to BCD
Convert decimal numbers to Binary Coded Decimal (B...
Try Now →Decimal to 2's Complement
Convert decimal integers (including negatives) to ...
Try Now →Binary to ASCII
Convert binary numbers to ASCII text characters. D...
Try Now →Binary to Gray Code
Convert standard binary to Gray code (reflected bi...
Try Now →Hex to ASCII
Convert hexadecimal values to ASCII text. Decode h...
Try Now →Hex to RGB
Convert hex color codes to RGB values instantly. S...
Try Now →RGB to Hex
Convert RGB color values to hexadecimal color code...
Try Now →ASCII to Hex
Convert ASCII text to hexadecimal representation. ...
Try Now →Hex to Text
Convert hexadecimal strings to readable text. Deco...
Try Now →Decimal to Fraction
Convert decimal numbers to simplified fractions. S...
Try Now →Decimal to Percent
Convert decimal values to percentages instantly wi...
Try Now →Number Base Converter
Convert numbers between any bases (2-36). Universa...
Try Now →Hexadecimal Reference
Complete hexadecimal reference with conversion tab...
Try Now →Hex to Unicode
Convert hexadecimal code points to Unicode charact...
Try Now →ASCII to Binary
Convert ASCII text to binary representation. See e...
Try Now →