Hex Calculator
Repeated division by 16: remainder at each step gives hex digits (0-9, A-F).255÷16=15 r15(F); 15÷16=0 r15(F) → FF
Free online tool
Enter a decimal integer to see its hex equivalent.
Instant calculation
Enter a decimal integer to see its hex equivalent.
Your numbers stay in this browser. Nothing is uploaded or saved.
Three clear steps
Type the decimal integer to convert.
See the hexadecimal representation.
Digits use 0-9 then A=10 through F=15.
The formula
Divide by 16 repeatedly. Remainders 10-15 become A-F. Read remainders in reverse order.
Repeated division by 16: remainder at each step gives hex digits (0-9, A-F).255÷16=15 r15(F); 15÷16=0 r15(F) → FF
Check the method
Each example follows the same formula used by the calculator.
255÷16=15 r15(F); 15÷16=0 r15(F) → FFFFCommon questions
The Hex Calculator helps you convert a decimal number to its hexadecimal representation. Enter your values and select Calculate to get an instant result.
Divide by 16 repeatedly. Remainders 10-15 become A-F. Read remainders in reverse order.
Example: What is 255 in hex? — FF.
No. All calculations run locally in your browser. Your inputs and results are never uploaded, stored or shared with anyone.
Yes. The Hex Calculator is completely free. No account, sign-up or payment is required. It works on mobile, tablet and desktop.
Continue calculating