Text to Hex Converter

Convert text to hexadecimal and decode hex back to text instantly — each character as a two-digit hex code.

Loading tool…

Convert text to hexadecimal and back

The Text to Hex Converter turns text into hexadecimal code and decodes hex back into readable text. Each character becomes a two-digit hex value, separated by spaces for clarity. Type or paste in either direction and copy the result — everything is processed instantly and privately in your browser.

What is hexadecimal?

Hexadecimal (base 16) uses sixteen digits: 0–9 and A–F. It is a compact way to represent the numeric code of each character. The letter "A" has the code 65, which is 41 in hex. Because each byte fits in exactly two hex digits, hex is the standard way programmers read and write raw byte data — far more compact than binary and easier to scan.

How to use it

  1. Choose Text → Hex or Hex → Text.
  2. Type text, or paste hex as space-separated pairs.
  3. Copy the result, or Swap it back into the input.

Hex examples

CharacterDecimalHex
A6541
z1227a
04830
space3220

Where hex is used

  • Debugging — inspecting raw bytes in files and network packets.
  • Colors — web colors are hex byte values (e.g. #FF8800).
  • Encoding — representing binary data compactly as text.
  • Low-level programming — memory addresses and byte literals.

Hex vs binary

Hex and binary represent the same underlying bytes, but hex is far more readable: one byte is two hex digits versus eight binary digits. That is why developers reach for hex when they need to look at raw data. If you need binary specifically, use the text-to-binary converter; for compact, scannable output, hex is the better choice.

Private and free

All conversion happens in your browser, with nothing uploaded and no limits. Use it as much as you like, free.

Frequently asked questions

How is text converted to hex?

Each character's numeric code is written as a two-digit hexadecimal value. For example, A (65) becomes 41.

How do I decode hex to text?

Paste the hex as space-separated pairs and choose Hex → Text. Each pair is converted back to a character.

Why use hex instead of binary?

Hex is far more compact and readable — one byte is two hex digits instead of eight binary digits.

Is it free and private?

Yes. It runs entirely in your browser with nothing uploaded, and it is completely free.