Skip to main content

Decimal to Hex

Convert decimal numbers to hexadecimal.

What does this tool do?

Direct answerConverts a decimal (base-10) integer to hexadecimal (base-16).
Key factEach hex digit maps to 4 bits, which is why hex is common in memory addresses and colors.
ProcessingRuns locally in your browser; no data is sent to a server.

How to use

  1. Type a decimal number like 255.
  2. Click Convert.
  3. See the hex value.

Example

Input

255

Output

FF

Who is this for?

This tool was built for people who need a fast answer in the browser — no install, no account, no data leaving the device.

Programmers working with low-level data, computer science students, and electronics hobbyists reading registers — anyone tired of converting number bases by hand.

Frequently asked questions

What is 255 in hex?

FF — the largest value of one byte.

Is the output uppercase?

Yes, digits A-F are uppercase by convention.

Largest supported value?

Integers up to 2^53 − 1 (JS number precision limit).

More tools in this category