Hex to Decimal Converter

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

How to Use

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

Use Cases

Web Development

Convert hex color codes to decimal RGB values for use in CSS functions like rgb() or JavaScript color manipulation.

Programming

Translate hex memory addresses, register values, and byte constants to decimal for easier arithmetic and debugging.

Computer Science Learning

Practice base conversion between hex and decimal to understand how computers store and display numeric values.

FAQ

Multiply each hex digit by its positional power of 16 and sum the results. For example, 1A = 1×16 + 10 = 26.

Hex digits go from 0–9 then A–F, where A=10, B=11, C=12, D=13, E=14, F=15. This allows representing 0–15 with a single character.

No. This tool accepts both uppercase (FF) and lowercase (ff) hex digits and always outputs uppercase.

Related Tools