Decimal to HEX
Convert decimal numbers to hexadecimal — 255 becomes FF, instantly.
How to use Decimal to HEX
- Enter a decimal number — e.g. 255. Space-separated numbers convert independently.
- Read the hex output instantly: 255 → FF, 3735928559 → DEADBEEF.
- Check the error line if you typed a non-digit — the offending token is named.
- Click “Copy result” and prefix as needed for your context (0xFF in code, #FF6600 in CSS).
What is Decimal to HEX?
A decimal to hex converter rewrites a base-10 number in base 16, where places are worth 1, 16, 256, 4096… and the digits run 0–9 then A–F. Decimal 255 is FF (15 sixteens + 15), and 4096 is a clean 1000 in hex.
The by-hand method mirrors binary conversion: divide by 16, keep remainders, read them backwards — 500 ÷ 16 = 31 r 4, 31 ÷ 16 = 1 r 15 (F), 1 ÷ 16 = 0 r 1 → 1F4. Hex shows up wherever bytes do: colors, memory addresses, Unicode code points, error codes.
About the Decimal to HEX
Type a decimal number and its hexadecimal form appears instantly; several space-separated numbers convert together.
Concrete uses: turning RGB components into a color code (255, 102, 0 → FF, 66, 00 → #FF6600), finding the hex of a Unicode code point (8364 → 20AC, the € sign's U+20AC), reading memory sizes in address terms (65536 → 10000), or converting an HTTP status–style integer an API returned as hex. BigInt math keeps arbitrarily large values exact.
Conversion happens live in your browser with invalid tokens flagged by name. Hex to Decimal reverses the direction; Decimal to Binary gives the base-2 view of the same number.