Skip to content

Text to Hex Converter

Convert text to hexadecimal bytes (UTF-8) in several styles, or decode hex bytes back into text.

Text and hex
Choose a direction and a hex style.

Result
Result
48 65 6c 6c 6f
5
UTF-8 bytes

Private: Everything runs in this page. Nothing you type is sent anywhere or saved.

On this page
  1. Text to hex examples
  2. Formula
  3. How the text and hex works
  4. What this tool does not do
  5. Frequently asked questions
  6. Related tools

Text to hex examples

TextHex bytes
A41
Hi48 69
abc61 62 63
Hello48 65 6c 6c 6f
éc3 a9

Formula

each byte of the UTF-8 text is written as two hex digits (00 to ff)

How the text and hex works

  1. Step oneChoose Text to hex or Hex to text.
  2. Step twoPick how the bytes are written. Decoding accepts any of the styles.
  3. Step threeCopy the result from the box.

What this tool does not do

  • It writes the UTF-8 bytes of the text, not another character set.
  • It does not encrypt anything: hex is only another way of writing the same bytes.
  • Hex to text needs complete pairs of digits.

Frequently asked questions

What is hexadecimal?

A way to write numbers with 16 digits: 0 to 9 and a to f. One byte is always exactly two hex digits.

Can I paste hex with 0x or backslash-x prefixes?

Yes. Decoding ignores 0x and \x prefixes, spaces, commas and colons.

Why do accented letters give two bytes?

In UTF-8 they take two bytes, so the e with an accent becomes c3 a9.