Decimal to Hex Converter
Put this tool on your site. Paste the code into any page or blog post. No sign-up, no ads inside, and it sizes itself.
The Decimal to Hex Converter takes any integer — positive, negative, or BigInt-large — and gives back the hexadecimal form. Three variants come out at once: bare lowercase ('ff'), prefixed ('0xff'), and uppercase ('FF'), so you can copy whichever the next tool wants. JavaScript's built-in Number type loses precision above 2^53; this converter uses BigInt internally and stays exact.
How to use
- 1
Type or paste the decimal value. Negatives and very large integers welcome.
- 2
Read off all three hex variants — pick the one your downstream tool expects.
- 3
Need the reverse? Use the Hex to Decimal Converter sister page.