How to Use the Decimal to Hexadecimal Converter Online
- 1Paste one whole number written in base 10. Check that its digits belong to that base.
- 2Use 0 through 9 for the source magnitude, with an explicit sign when your integer is negative.
- 3Read the equivalent hexadecimal digits and check any minus sign before copying the result into a fixture.
- 4Record both bases with the example. Add any field width, prefix, or spacing separately when the destination requires a particular display.
Input & Output Examples
The result represents the same integer, 42 in base ten, written in base 16.
422AThis whole number is above the range of exactly represented consecutive JavaScript Number integers. The exact hex result still ends in 1.
9_007_199_254_740_99320000000000001Practical Developer Workflows
- Translate a decimal fixture value to the hex spelling expected by a parser.
- Use a larger number to check that the result stays exact.
- Compare the value of a positive integer and its negative magnitude in hex.
Zero Server Uploads & Complete Privacy
Runs 100% in your browser; no data is uploaded to any server.
Let us know directly so our engineering team can fix it.