Type a decimal number below to get its hexadecimal form instantly. The output uses uppercase A–F for clarity, and the whole conversion runs locally in your browser with nothing uploaded.

Decimal to hex examples
DecimalHexNote
10Afirst letter digit
15Flargest single digit
1610rolls over to two digits
255FFmax 8-bit value
4096100016³
Worked example
255FF

255 ÷ 16 = 15 remainder 15, so both digits are F.

Frequently asked questions

How do I convert decimal to hex manually?

Divide the number by 16 repeatedly and record each remainder, mapping 10–15 to A–F. Reading the remainders from last to first gives the hex value. 255 → 15,15 → FF.

Why use hex instead of decimal?

Hex aligns cleanly with bytes — two hex digits equal one byte — so it is the natural notation for memory addresses, color codes, and binary data dumps.

Does the output include a 0x prefix?

This tool outputs the bare hex digits. You can prepend 0x yourself when writing source code that expects it, such as in C or JavaScript.

Is the conversion private?

Yes. It runs entirely in your browser; your number is never transmitted.

Related conversions

Need more options? Try the full Number Base Converter.