Skip to content
Jellykit

Text to Hex

Convert text or a string to hexadecimal. Each UTF-8 byte becomes two hex digits, separated by spaces, commas or nothing. Free online text to hex converter.

Runs in your browser. Nothing is uploaded.

About Text to Hex

Text to Hex encodes your text as UTF-8 and writes each byte as two hexadecimal digits, so Hello becomes 48 65 6c 6c 6f. Pick a space, comma, new line or no separator depending on where the result is going.

Hex is how byte values are usually shown in programming, network captures and file formats, because two digits cover exactly one byte (00 to ff).

How to use Text to Hex

  1. Type or paste your text into the input box. Press Sample to see an example.
  2. Adjust the options. The result updates as you type.
  3. Copy the result, or press Use as input to chain another transformation.

Frequently asked questions

Is this the same as ASCII to hex?

For plain English text, yes. Characters outside ASCII are encoded as UTF-8, which uses two to four bytes each.

Can I get 0x prefixes?

Not directly. Use the Add Prefix & Suffix tool on the new-line output to add 0x to each byte.

Is Text to Hex free and private?

Yes. Text to Hex is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all text tools →