🧮PantoCalc

🔣 Hex Converter

Convert hexadecimal to decimal, binary, and more

How Hexadecimal Conversion Works

Formula

Decimal = Σ(digit × 16^position)

  1. 1Enter a hexadecimal number (using digits 0-9 and letters A-F).
  2. 2Each hex digit represents 4 binary bits (a nibble).
  3. 3Hex to decimal: multiply each digit by its power of 16 and sum.
  4. 4Decimal to hex: repeatedly divide by 16, map remainders to hex digits.
  5. 5The converter shows results in hex, decimal, binary, and octal.

About Hex Converter

Convert between hexadecimal, decimal, binary, and octal. Enter hex color codes, memory addresses, or any hex value. Supports bidirectional conversion with step-by-step work.

Frequently Asked Questions

What is hexadecimal used for?

Hex is widely used in computing for color codes (#FF5733), memory addresses, MAC addresses, and byte values. It's compact — one hex digit represents 4 bits, so a byte is just 2 hex digits.

How do hex color codes work?

A 6-digit hex color code like #FF8800 has three pairs: FF (red=255), 88 (green=136), 00 (blue=0). Each pair ranges from 00 (0) to FF (255), creating 16.7 million possible colors.

What does 0x mean before a hex number?

The 0x prefix is a convention in programming languages (C, JavaScript, Python) to indicate a hexadecimal number. For example, 0xFF = 255 in decimal.