Convert UTF-8 text into HEX bytes

For a technical exchange, a coding lesson or a conversion check, this gives learners and developers a readable result. Convert UTF-8 text into HEX bytes.

Convert UTF-8 text into HEX bytes. The result appears instantly in your browser, ready to copy, with no account, upload or storage involved.

How to use

  1. Type or paste the UTF-8 text you want to convert into the input area, and avoid including unnecessary sensitive data.
  2. Choose the direction: encode readable text into hexadecimal bytes or decode a hexadecimal string back into text.
  3. Turn on any available option you need, such as no spaces, uppercase output, a 0x prefix or prefix decoding.
  4. Run the conversion, review the result, then copy it into your document, test case or learning notes.

Example

With the sample text, the tool turns each UTF-8 character into hexadecimal bytes. Check whether spaces or prefixes match the option you selected, then reuse the output in a technical exchange or a coding exercise.

Input

Hello world

Output

48 65 6c 6c 6f 20 77 6f 72 6c 64

Limits and formats

Where processing happens

Encoding and decoding happen in your browser. The text you enter stays on your device and is not transmitted to any outside service.

Frequently asked questions

When should I convert text to hexadecimal?

It is useful for preparing a technical example, checking how UTF-8 text is represented as bytes, or comparing a value with another tool. The output is a hexadecimal string, not an encrypted file.

What is the difference between encoding and decoding?

Encoding changes readable text into hexadecimal bytes. Decoding reverses the operation by reading a valid hexadecimal string and restoring the original text when possible.

Do the options change the meaning?

They change the presentation: spaces, uppercase letters, prefixes or prefix reading. The underlying bytes stay the same, but the final format may be easier to use in a given context.

Tools in the same category