Runs in this tab · nothing uploaded

EN

English

हिन्दीComing soon

EspañolComing soon

Pinned
HelpyTools

More

Decimal to hex

Convert decimal numbers of any size to hexadecimal, in upper or lower case, with binary and octal shown too.

Runs in your browserNothing uploadedWorks offline

Set up for this job. It runs on Number base converter, where every option is there to change.

Loading Decimal to hexRuns on this device. Nothing is uploaded.

Questions

How is decimal turned into hex?

Keep dividing by 16 and note the remainders, writing 10 to 15 as A to F, then read them bottom to top. 255 gives FF.

Does it add a 0x prefix?

No, it shows the plain digits so you can paste them anywhere. Add 0x yourself if your code needs it.

Can it convert huge numbers?

Yes. It uses BigInt, so large values convert exactly instead of being rounded.

All developer tools

↑ ↓ move↵ openesc close

The tray

Install HelpyTools

Get HelpyTools on your home screen or Dock. It opens in its own window, and tools you have opened once keep working offline.