Text to Hex Converter

Convert plain text to hexadecimal — and back, in the same tool below. Handles full UTF-8 text by default, so accented characters and emoji encode correctly, not just plain ASCII.

Encoding
Hex Case
Spaces, "0x" prefixes, and colons are all fine — only the hex digits themselves matter.
Result Live

How text to hex conversion works

Each character becomes one or more bytes, shown as hex
H e l l o → 48 65 6c 6c 6f

Every character is first turned into its underlying byte value, then that byte is written as two hex digits. Plain ASCII characters are always exactly one byte each. Characters outside ASCII — accented letters, other alphabets, emoji — take two, three, or four bytes under UTF-8 encoding, which this tool uses by default so those characters encode correctly rather than being rejected.

A character that needs more than one byte
é → c3 a9 (one character, 2 bytes)

Uppercase or lowercase hex

Hex output works exactly the same either way — 6c and 6C represent the identical byte. Use the Hex Case toggle to match whatever convention your own tooling or documentation expects.

Frequently asked questions

How do I convert text to hex?

Type or paste your text above. Each character is converted to its byte value and shown as two hex digits per byte, separated by spaces.

What is "Hello" in hex?

48 65 6c 6c 6f — one hex byte pair per letter, since every character in "Hello" is plain ASCII.

Why does an emoji or accented letter take up more hex bytes than a regular letter?

Because UTF-8 (the standard text encoding used almost everywhere) represents anything outside the original 128 ASCII characters using two to four bytes instead of one. It's not an error — that's simply how those characters are encoded.