Skip to content

Decimal to Hex Converter

Convert an ordinary decimal number into hexadecimal — the base-16 notation used for colours, memory addresses, and byte values. Everything runs locally in your browser.

=
ff

Decimal (base 10) in, Hex (base 16) out.

How it works

Divide by 16 and read the remainders bottom-to-top, writing 10–15 as a–f. 254 → 15 r14 → "fe".

Examples

FAQ

How do I convert decimal to hexadecimal?

Divide by 16 and read the remainders bottom-to-top, writing 10–15 as a–f. 254 → 15 r14 → "fe". Or just paste your decimal value into the box above and the hexadecimal result appears instantly.

Does this Decimal to Hex converter run in my browser?

Yes. The conversion happens entirely client-side — nothing you type is uploaded — and it uses big-integer math, so even very long decimal numbers convert exactly.

What is the largest number I can convert?

There is no practical limit. Because the converter works with arbitrary-precision integers, a decimal value of any length converts without rounding or overflow.

Need other bases, custom radixes, or two-way editing? Use the full Number Base Converter.

Other conversions