Text to Hex

Convert any text into hexadecimal UTF-8 bytes, with your own separator and letter case.

Convert text to hex

No text converted yet.
Text is encoded as UTF-8, so accented letters and emoji become several bytes.

How to use the Text to Hex

  1. Type or paste the text you want to convert to hex.
  2. Pick a separator such as a space, comma, newline or 0x prefix.
  3. Copy the hexadecimal bytes with the Copy button.

Features

Advertisement

Frequently Asked Questions

Common questions about the free online text to hex.

Type or paste your text in the box and the hexadecimal bytes appear instantly. Choose a separator or the 0x prefix, then copy the result.
Hex is a compact way to show bytes. Developers use it for colour codes, file headers, network packets and when debugging binary data.
Yes. The text is encoded as UTF-8 first, so accented letters use two bytes and emoji use four, and every one of them converts correctly.
Characters outside plain ASCII need more than one byte in UTF-8. The byte count under the output shows exactly how many bytes were produced.
It writes each byte as 0x41 instead of 41. That is the format used by many languages, including C, JavaScript, Python and Rust.
No. The conversion runs entirely in your browser with the built-in text encoder, so nothing you type ever leaves your device.
Yes. Paste the output into the Hex to Text tool and it rebuilds the original characters, including accented letters and emoji.
There is no fixed limit, but very large documents may feel slow because everything is processed locally inside your browser.

Last updated: October 10, 2026