Decimal to Hex Converter

Convert decimal numbers to hexadecimal and hex to decimal instantly. Also shows binary and octal. Free browser-based tool.

How to Use

  1. 1 Select Decimal → Hex to convert a decimal number to hexadecimal, or Hex → Decimal for the reverse
  2. 2 Enter your decimal number (e.g. 255) or hex number (e.g. FF)
  3. 3 Click Convert to see the hex result along with binary and octal

Use Cases

Web Development

Convert decimal color channel values (0–255) to hexadecimal for CSS color codes like

Programming

Work with memory addresses, byte values, and color codes that are commonly expressed in hexadecimal notation.

Computer Science Learning

Understand the relationship between decimal and hex to read memory dumps, debug sessions, and hardware registers.

FAQ

Divide the decimal number by 16 repeatedly and record remainders (using A–F for 10–15) from bottom to top. For example, 255 ÷ 16 = 15 R15 (F), 15 ÷ 16 = 0 R15 (F) → hex FF.

Each hex digit represents exactly 4 binary bits, so two hex digits represent one byte (8 bits). This makes hex a compact and readable way to write binary values like memory addresses and color codes.

No. Hex digits A–F are case-insensitive. This tool outputs uppercase letters (e.g. FF) but also accepts lowercase input (e.g. ff).

Related Tools