Text to Hex Converter

Convert text into its hexadecimal bytes.

Runs in your browser Free · no account

Text

Hex

This conversion happens locally in your browser. Your files are never uploaded.

About the Text to Hex converter

Hex is how bytes are shown when you need to see them exactly — in a protocol dump, a hex editor, or a test fixture. Converting text to hex shows precisely what those bytes are.

Text is encoded as UTF-8 first, which is what makes the output match what any modern system would actually store or transmit.

Multi-byte characters

ASCII characters are one byte each. Accented Latin letters take two, most CJK characters three, and emoji four — so the hex output is often much longer than the text suggests.

This is a useful way to see why a string that looks short overflows a fixed-length database column: the limit is usually bytes, not characters.

Frequently asked questions

Which encoding is used?

UTF-8, which is the default for essentially everything modern. Text in a legacy encoding would produce different bytes.

Can I convert back?

Yes — the Hex to Text converter accepts this output in any of the separator styles.