Free online tool

Hex Calculator

Enter a decimal integer to see its hex equivalent.

Instant calculation

Hex Calculator

Enter a decimal integer to see its hex equivalent.

Your numbers stay in this browser. Nothing is uploaded or saved.

Three clear steps

How to use this calculator

  1. 01

    Enter decimal number

    Type the decimal integer to convert.

  2. 02

    Calculate

    See the hexadecimal representation.

  3. 03

    Read hex

    Digits use 0-9 then A=10 through F=15.

The formula

How this calculation works

Divide by 16 repeatedly. Remainders 10-15 become A-F. Read remainders in reverse order.

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

Check the method

Worked examples

Each example follows the same formula used by the calculator.

What is 255 in hex?

255÷16=15 r15(F); 15÷16=0 r15(F) → FFFF

Common questions

Questions about this calculation

What is the Hex Calculator?

The Hex Calculator helps you convert a decimal number to its hexadecimal representation. Enter your values and select Calculate to get an instant result.

How is the result calculated?

Divide by 16 repeatedly. Remainders 10-15 become A-F. Read remainders in reverse order.

Can you show an example?

Example: What is 255 in hex? — FF.

Is my data saved when I use the Hex Calculator?

No. All calculations run locally in your browser. Your inputs and results are never uploaded, stored or shared with anyone.

Is the Hex Calculator free to use?

Yes. The Hex Calculator is completely free. No account, sign-up or payment is required. It works on mobile, tablet and desktop.