Utils365

Text to hex converter

See the hex bytes behind any text, or turn a hex dump back into words.

  • 100% free
  • No sign-up
  • Runs in your browser

Paste text, open a file, or drop one here

Next: Binary translator · Base64 encode / decode · URL encode / decode

Report a problem with this tool

How to use Text to hex

  1. Choose the direction

    Text → Hex shows the bytes of your text; Hex → text reads hex back. Pasting hex on the text side offers to decode it.

  2. Set the format

    Pick spaces, colons, commas, new lines or nothing between bytes, group them in 1, 2 or 4 bytes, and choose the letter case.

  3. Copy or download

    Copy the result or save it as a file. Short text also gets a byte-by-byte table with code points.

Why use Utils365

  • Any separator in

    Decode 48 65 6C, 48:65:6c, 0x48 0x65, \x48\x65 or 48656c without cleaning it up first.

  • Exact UTF-8 bytes

    Non-English text and emoji show their real byte sequences, the same ones a hex editor or network capture shows.

  • Clear errors

    A stray letter or an odd number of digits is pointed out by position, instead of giving garbled text.

Frequently asked questions

How do I convert text to hex?

Each character is turned into its UTF-8 bytes, and each byte is written as two hex digits from 00 to FF. Hi becomes 48 69, because H is byte 72 (0x48) and i is 105 (0x69).

What is 0x in front of hex numbers?

It’s a prefix programmers use to mark a number as hexadecimal, as in 0x41 for 65. The \x form, as in \x41, is used inside strings. Both are ignored when decoding.

Is hex case-sensitive?

No. 4F and 4f are the same byte, 79 in decimal. Upper case is common in hex dumps and lower case in code and hashes; pick either.

Why does é become C3 A9?

UTF-8 writes characters above 127 with several bytes. é is code point U+00E9, which UTF-8 stores as the two bytes C3 A9. The euro sign € is three: E2 82 AC.

What’s the difference between hex and Base64?

Both write bytes as text. Hex uses 2 characters per byte, so it doubles the size but is easy to read. Base64 uses 4 characters per 3 bytes, about a third larger, and is used to embed data.

Why does it say there’s an odd number of digits?

Each byte is exactly two hex digits, so a run like 486 can’t be split into bytes. Look for a missing or extra digit, or separate the bytes with spaces.