UTF-8 Text to Hex Converter

Inspect the byte representation of text.

Text inputPreview and copyRuns in your browser

Enter your text

Result

How to use

  1. Paste the text you want represented as hexadecimal bytes and compare with a short known sample.
  2. Select Convert to generate the output.
  3. Review the output before copying it.

How it works

Inspect the byte representation of text. Encode the input as UTF-8 bytes and write each byte as two hexadecimal digits.

Formula or processing rules

Encode the input as UTF-8 bytes and write each byte as two hexadecimal digits.

Worked example

AB encodes as bytes 41 42 in hexadecimal.

Example text lengths in UTF-16 code units
Input · 2
Output · 5
Worked example
MeasureValue
Source textAB
Result41 42

Pros and cons

Pros

Inspect the byte representation of text. The sample provides an immediate check of the expected output.

Cons

Unicode characters can occupy more than one byte. Hex is an encoding, not protection for sensitive text.

Limitations and troubleshooting

Check the required character encoding before comparing with an external byte dump.

Decode the hex result as a check

Frequently asked questions

Why can one character produce several byte pairs?

Some characters use multiple bytes in UTF-8. Hex shows the encoded bytes, so its length need not match the number of characters.

What rule does the UTF-8 Text to Hex Converter apply?

Encode the input as UTF-8 bytes and write each byte as two hexadecimal digits.

What should I see in the UTF-8 Text to Hex Converter example?

AB encodes as bytes 41 42 in hexadecimal.

What should I verify after using UTF-8 Text to Hex Converter?

Unicode characters can occupy more than one byte. Hex is an encoding, not protection for sensitive text.

Is my input stored by the tool?

The transformation is computed in the open page. The tool does not save the submitted text.