Decimal to Hex Converter
Convert numbers between binary, octal, decimal and hexadecimal — arbitrary size, entirely in your browser.
Processing...
0%
Validating digits
Converting between bases
Done
Result
This page opens the number base converter set up to turn decimal (base 10) numbers into hexadecimal (base 16) — type a regular number and run the conversion.
The manual route is repeated division by 16, keeping the remainders as hex digits: 255 ÷ 16 is 15 remainder 15, and 15 is the digit f — so 255 becomes ff. Larger remainders 10–15 map to the letters a–f.
The full converter also goes the other way and covers binary and octal, always showing the result in all four bases. BigInt arithmetic removes any size limit, and every conversion happens privately in your browser.