Skip to content
Free developer tool

Hex encoder

This hex encoder shows the bytes behind your text as pairs of hexadecimal digits, so café becomes 63 61 66 c3 a9. Developers use it to debug encoding problems, build test data and compare bytes across systems.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

7 characters

Between bytes
Letters

Result

63 61 66 c3 a9 20 f0 9f 99 82

The short answer

Hex encoding writes each byte as exactly two hexadecimal digits, 00 to ff. Text is first converted to UTF-8, so plain letters take 1 byte but accented letters take 2 and emoji take 4. That is why the hex of a short phrase can look longer than expected.

FormulaEach byte (0 to 255) becomes two hex digits, for example 99 = 63

Worked exampleThe text café 🙂 is 10 UTF-8 bytes, so it becomes 63 61 66 c3 a9 20 f0 9f 99 82, where c3 a9 is é and f0 9f 99 82 is the emoji.

Example

Input
café 🙂
Result
63 61 66 c3 a9 20 f0 9f 99 82

How to use the hex encoder

  1. Enter text in the Text to encode box.
  2. Set Between bytes to Spaces or Nothing.
  3. Set Letters to Lowercase or Uppercase.
  4. The hex updates as you type. Press Copy result or Download.

How it works

Text is encoded as UTF-8, and every byte becomes exactly two hex digits.

ASCII characters take one byte, while accented letters and emoji take two to four, so the output can be longer than you expect.

Spaces puts one space between bytes. Nothing returns one continuous string.

No 0x prefix is added to the output.

Input with a lone surrogate code unit, usually a cut-off emoji, is refused with an error.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

Is hex encoding a kind of encryption?

No. Hex is just another way to write the same bytes, and anyone can turn it back into text.

Why does é become two bytes?

In UTF-8, characters outside basic ASCII use more than one byte. The letter é is stored as c3 a9.

How do I convert hex back to text?

Use the hex decoder. It accepts both the spaced and the unspaced output of this tool.

Is my text uploaded?

No. The conversion runs in your browser.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools