Skip to main content

Text to Hex Converter

Convert text to its hexadecimal byte representation (UTF-8), with your choice of separator and upper- or lower-case output.

Input

Output

Hexadecimal
Was this helpful?

Guides

Turn any text into its hexadecimal byte representation. Type or paste your text, choose how you want the bytes separated and whether the letters are upper- or lower-case, and the hex appears instantly. Everything runs in your browser — nothing is uploaded.

What does "text to hex" actually mean?

Computers store text as numbers. This tool encodes your text as UTF-8 bytes — the standard used across the modern web — and shows each byte as two hexadecimal digits. The letter H, for example, is byte 72, which is 48 in hex; Hi becomes 48 69.

How are non-English characters handled?

Correctly. UTF-8 uses one byte for basic ASCII and two to four bytes for everything else, so café becomes 63 61 66 C3 A9 — the é is the two bytes C3 A9. An emoji like 😀 is four bytes (F0 9F 98 80). This matches how the text is actually stored and transmitted.

What are the separator options?

  • Space48 69, the most readable and the usual default.
  • None4869, a continuous string, handy for pasting into code.
  • Comma48, 69.
  • Dash48-69.
  • 0x prefix0x48 0x69, the form many programming languages use for byte literals.
  • \x prefix\x48\x69, common in escape sequences and shell input.

Uppercase or lowercase?

Purely cosmetic — 4A6F and 4a6f are the same bytes. Choose whichever matches the convention of wherever you are pasting the result; many tools and languages prefer lowercase.

Is this the same as a hash or encryption?

No. Hex is a representation, not a transformation — it is fully reversible and hides nothing. Anyone can turn the hex straight back into the original text. For that reverse direction, use the Hex to Text Converter. If you need to obscure or protect data, you want hashing or encryption instead, not hex.

Does it work offline / is my text private?

The conversion happens entirely in your browser with no network request, so your text never leaves your device.

hexhexadecimaltextencodingutf-8bytes

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.