Text to HEX

Convert text to lowercase hexadecimal UTF-8 bytes separated by spaces. Inspect non-ASCII characters correctly and copy or download the byte-pair output.

Inspect the bytes used to encode a text value in UTF-8. The result shows two hexadecimal digits for each byte, separated by spaces. It is not a list of Unicode code points, a colour converter or a way to encrypt a message.

  • 100% free
  • No registration
  • On your device
  • Modern browser
  1. 1Enter details
  2. 2Adjust options
  3. 3View result

Convert UTF-8 text to hexadecimal bytes. Your input stays on this device.

ResultIdle
Your result will appear here.

Your input stays on this device for this operation. We don’t upload or store it.

About Text to HEX

Inspect the bytes used to encode a text value in UTF-8. The result shows two hexadecimal digits for each byte, separated by spaces. It is not a list of Unicode code points, a colour converter or a way to encrypt a message.

UTF-8 byte encoding

Characters outside ASCII can produce multiple output bytes.

Consistent byte-pair layout

Each byte is rendered as two lowercase hex digits with spaces between bytes.

Plain-text result

Copy the byte pairs or save them as a TXT file.

How to use Text to HEX

  1. 1

    Enter the text

    Paste the exact value into Source text. Spaces and newlines are part of the input and are encoded too.

  2. 2

    Process to byte pairs

    Press Process to generate the lowercase, space-separated UTF-8 hex representation.

  3. 3

    Check and export

    Copy the output or download text-to-hex.txt. Use HEX to Text if you want to check the decoded text.

Formats and practical limits

Input: text, up to 100,000 JavaScript string units. Output: lowercase space-separated UTF-8 hex bytes; TXT export.

  • The workspace accepts text, not a binary-file upload or a memory dump.
  • Hexadecimal is an encoding representation and provides no secrecy.

Practical example

Hi becomes 48 69. The text é becomes c3 a9, illustrating why UTF-8 byte output differs from a simple one-byte character table.

Frequently Asked Questions

3 answers
Why does one character produce several pairs?

UTF-8 uses multiple bytes for many characters. For example, é is encoded as c3 a9, not as one byte e9.

Is this showing Unicode code points?

No. It shows an encoding's bytes. A code-point notation such as U+00E9 describes a different representation of é.

Will extra spaces in my source be ignored?

No. Source whitespace is encoded. An ordinary space becomes byte 20; remove unwanted source spaces before processing.