My Learning

Keep this for later

Sign in or create a free account to save it. You’ll return to this page afterward.

Sign inCreate an account

Decimal to HEX

Convert a nonnegative decimal integer to hexadecimal precisely.

Enter one nonnegative whole number, not a list of bytes.

How to use this tool

Enter one decimal whole number and process it.

Important to know

Convert a nonnegative decimal integer to hexadecimal precisely.

Negative numbers and fractions are not supported. Output uses uppercase A–F.

Formula and methodology

Divide by 16 repeatedly, map remainders 10–15 to A–F, and reverse the digits.

Example

255 in decimal is FF in hexadecimal.

Frequently asked questions

Is this the same as text-to-hex?

No. This converts one number; Text to Hex encodes the bytes of text.