Decimal to Hexadecimal Converter

Your details

Enter any whole number (positive or negative). Decimals are truncated to the integer part.
Choose how to format the hex output. Plain, 0x-prefixed (programming), or #-prefixed (CSS/HTML colors).
Hexadecimal
FF

Base-16 representation of the decimal number

Binary11111111
Octal377
Hex digit count2
Binary bit count8

255 decimal = FF hexadecimal

  • 255 in decimal is FF in hexadecimal.
  • It requires 2 hex digits and 8 bits in binary.
  • 255 (0xFF) is the maximum value of an 8-bit unsigned byte, commonly used in RGB color channels.

Next stepIn programming, hex values are commonly prefixed with 0x (e.g., 0xFF). In CSS and HTML colors, the # prefix is used (e.g., #FF6347 for tomato red).

= Powered by OnlyCalculators