Calculator and Converter

Decimal to hexadecimal converter

Type a whole decimal number and this tool shows it in hexadecimal.

Results

Enter your values to see the result.

About this tool

Hexadecimal is used in programming, colour codes and memory addresses, because it writes long binary numbers in a short form. It works with whole numbers up to 300 digits.

How it is calculated
repeatedly divide by 16 and read the remainders backwards (10 to 15 are A to F); computed exactly for whole numbers up to 300 digits.
Worked example
With Whole number (decimal): 255, the result is: Hexadecimal: FF.
Good to know
The tool repeatedly divides by 16 and reads the remainders backwards, using the letters A to F for 10 to 15. It works exactly for whole numbers up to 300 digits, and it does not convert negative numbers or fractions.

Frequently asked questions

What do the letters A to F mean in hexadecimal?

They stand for the numbers 10 to 15, because hexadecimal needs 16 symbols, and the ten digits are not enough.

Why is hexadecimal used in computing?

One hexadecimal digit stands for exactly four binary digits, so long binary numbers can be written in a compact form that is easy to read.

Related calculators