Skip to content
Convertto
decimalhex

Decimal to Hexadecimal Converter

Convert decimal numbers to hexadecimal instantly, with the working shown.

To convert decimal to hexadecimal, enter your value above and the result appears as you type. 255 in decimal is FF in hexadecimal. Conversion uses arbitrary-precision integers, so very large values do not lose their low digits the way floating-point arithmetic would.

Runs in your browser

About converting DECIMAL to HEX

Decimal is base 10 — the everyday notation, and the one every other base is usually being translated back into. Hex is base 16 and maps exactly four bits per digit, which is why one byte is always two hex digits and why colours, memory addresses and hashes are written this way. As a worked example, 255 equals 255 in decimal and therefore FF in hexadecimal.

Open the full Number Base Converter

Share this converter