Text to Hex Converter

Convert text to hexadecimal and back. Results appear as you type.

Loading tool…

  • Free
  • No sign-up
  • Runs in your browser

How to use the text to hex converter

  1. Choose the direction with the buttons above the result.
  2. Type or paste your text in the top box.
  3. Copy the converted result.

What is hexadecimal?

Hexadecimal, or hex, is base 16. It uses the digits 0 to 9 and then the letters a to f for the values 10 to 15. One byte, eight binary digits, fits exactly into two hex digits, which makes hex a compact way to write binary data: 01001000 in binary is 48 in hex.

CharacterHexCharacterHex
A41a61
Z5az7a
030939
space20line break0a

Where hex is used

Color codes on the web (#ff8800), memory addresses and byte dumps in programming, MAC addresses, hashes such as MD5 and SHA-256, and escaped characters in URLs (%20 is hex 20, a space).

When decoding, this tool ignores spaces, commas, colons and 0x prefixes, so 48 65 6c 6c 6f, 48656c6c6f and 0x48, 0x65, 0x6c, 0x6c, 0x6f all give Hello.

Frequently asked questions

Is hex the same as a hex color code?

A color code is three hex bytes for red, green and blue. To convert colors, use the color converter.

Why are there two digits per letter?

One character in basic English text is one byte, and one byte is always two hex digits.

Is my text stored or sent anywhere?

No. Everything happens inside your browser. Your text is not uploaded, logged or read by anyone. The page remembers your last text on this device only, so you can pick up where you left off; press Clear to remove it.

Related tools