Skip to content

Decimal to hex converter

Enter a whole number and get its hexadecimal form, with the division by 16 shown step by step and each remainder translated to its hex digit.

  • Free, no limits
  • No sign-up
Everything happens in your browser; nothing is uploaded to a server.
  • ✓ Free
  • ✓ No sign-up
  • ✓ Nothing uploaded

Next step

What to do next

How to use it

  1. Type a whole number (commas are fine).
  2. Read the hex result.
  3. Follow the division table, reading remainders from bottom to top.
  4. Copy the result or reverse the conversion.
Try it now

How to convert decimal to hex

Divide the number by 16, note the remainder (0–15), and repeat with the quotient until it reaches 0. Convert remainders 10–15 to the letters A–F and read them from bottom to top.

Example: 500

DivisionQuotientRemainder
500 ÷ 16314
31 ÷ 16115 → F
1 ÷ 1601

Reading up: 1F4. Check: 1 × 256 + 15 × 16 + 4 = 256 + 240 + 4 = 500.

The converter builds this table for your number and shows the letter for any remainder above 9. Results are exact for numbers of any size. Negative numbers are not converted, because their hex form depends on the storage format.

Common values worth remembering: 255 = FF, 256 = 100, 4,095 = FFF, 65,535 = FFFF. Programmers often write hex with a 0x prefix (0x1F4) and web colors with # (#1F4 is shorthand for #11FF44, so mind the context). For the reverse direction, use hex to decimal; for bits, see decimal to binary.

Frequently asked questions

What is 255 in hex?

FF.

What is 16 in hex?
Why use hexadecimal?

Two hex digits describe exactly one byte, so hex is a compact, readable way to write binary data, colors and memory addresses.

Last updated: November 12, 2026

Recommended

Similar tools

If Decimal to hex helped, you may need these too.

See all in category →

People also use