Text to Hexadecimal

Convert text into hexadecimal. Every character becomes its two-digit hex byte value.

About the Text to Hexadecimal converter

This tool turns text into hexadecimal byte values. Each character is encoded to its byte and shown as a two-digit hex code, so Hi becomes 48 69. Hex is compact and widely used by developers, so this is handy for inspecting strings, building hex literals, preparing test data, and comparing the raw bytes behind two pieces of text.

How to use it

  • Type or paste your text into the input.
  • The space-separated two-digit hex codes appear immediately, one per byte.
  • Copy the output for use in code, a hex editor, or documentation.

A frequent use is generating the hex bytes for a protocol message or a fixture. Remember that plain ASCII characters map to a single hex pair, while accented letters and emoji are UTF-8 and expand to several byte pairs each. The converter runs entirely in your browser, so the text you enter is never sent to or stored on a server.

Frequently asked questions

Why does each character become two hex digits?

One byte ranges from 0 to 255, which is exactly two hexadecimal digits (00 to FF). So one ASCII character maps neatly to a single two-digit hex pair.

How are emoji and accented characters handled?

They are encoded as UTF-8, which uses several bytes per character. Each of those bytes is shown as its own two-digit hex pair, so one emoji can produce four hex pairs.

Can I get the hex without spaces between the bytes?

The output is space-separated for readability. If you need a continuous string, remove the spaces after copying, for example turning 48 69 into 4869.

Is my text uploaded to compute the hex?

No. Everything is converted locally in your browser, so the text never leaves your device.

Related tools