TC

Hex Encoder / Decoder

Free hex encoder and decoder. Convert text to hexadecimal and back.

About Hex Encoder

Hexadecimal is base-16 numbering using 0-9 and A-F. It is commonly used in computing for color codes, memory addresses, and representing binary data in a more compact form. Each hex digit represents 4 bits (half a byte).

How It Works

Each character is converted to its ASCII value, then to hexadecimal (two digits). The process reverses to decode hex back to text. For example, "A" becomes "41" in hex.

Common Uses

  • Programming and development
  • Color codes (CSS/web design)
  • Memory addresses
  • Debugging
  • Data representation

FAQ

Why use hex?

Hex is compact and maps neatly to bytes (2 hex digits per byte). It's easier to read than binary.

What is the hex alphabet?

0-9 and A-F (or a-f). 0-9 represent values 0-9, and A-F represent values 10-15.

How do you decode hex?

Each pair of hex digits is converted back to its ASCII character code.