Decimal to Hex Converter

Convert decimal integers to hexadecimal with a step-by-step division-by-sixteen breakdown showing remainders and the final hex value.

Share this calculator

Results

Enter a valid number Please enter a decimal number to convert.

Also in Number Theory

Number Systems

Decimal to hexadecimal: convert base-10 numbers to base-16

The decimal to hex converter translates decimal (base-10) integers into their hexadecimal (base-16) equivalents. Enter a decimal number and see the hex result with a step-by-step division breakdown.

How the conversion works

Repeatedly divide the decimal number by 16 and record the remainder at each step. Remainders from 10 to 15 are written as A through F. Read the remainders from bottom to top to form the hex result.

For example, decimal 255 divided by 16 gives quotient 15 remainder 15, then quotient 0 remainder 15, producing hex FF.

Where this conversion is used

Decimal-to-hex conversion is used when specifying CSS colour codes, reading memory addresses, writing values to hardware registers, and working with network protocols that display data in hexadecimal.

Frequently asked questions

Why do hex digits go up to F?

Base 16 needs 16 unique symbols. The digits 0-9 provide ten, and letters A-F provide the remaining six, representing values 10 through 15.

Is the result case-sensitive?

No. Uppercase (FF) and lowercase (ff) are equivalent in hexadecimal. The calculator displays uppercase by convention.

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.