Decimal to Hex Converter

Convert decimal numbers to hexadecimal.

Keep or share the finished result Copy or share after running the tool. Saved tools and settings stay in this browser.
More

Convert decimal to hex

Type a base 10 number to see its hexadecimal form, the base 16 notation that uses 0 to 9 then A to F, with the reverse conversion available as well. Hex is the compact way developers write byte values, colour codes and memory offsets, since two hex digits cover one byte exactly. The output appears in uppercase as you type.

How it reads

The decimal 255 becomes FF in hex, and 16 becomes 10.

Frequently asked questions

Why convert decimal to hex?

Hex is shorter and lines up with bytes, so colours, memory addresses and binary data are far easier to read in base 16 than in long decimal.

What is 16 in hex?

The decimal 16 is 10 in hexadecimal, because hex rolls over to a new place after F, which is 15.