Decimal to Hex Converter

Base 10
Base 16

Conversion table

SourceResult

Convert Decimal integers to Hex with exact arbitrary-precision arithmetic. Signed values, long integers, common source prefixes, spaces, and underscore separators are accepted, and the result updates as the input changes.

How to convert Decimal to Hex

Repeatedly divide the decimal integer by the target base and record each remainder. Reading the remainders from last to first gives the converted value.

Decimal to Hex example

255 in base 10 equals ff in base 16. The converter supports values much larger than JavaScript's ordinary safe integer range because it uses integer arithmetic rather than floating-point numbers.

Common conversions: Binary to Decimal · Decimal to Binary · Binary to Hex · Hex to Binary · Decimal to Hex · Hex to Decimal · Binary to Octal · Octal to Binary