Text to Hex Converter

Convert any text to its UTF-8 byte representation in hexadecimal. Runs entirely in your browser.

Plain text
Hex output

Need to scan documents to real PDFs?

Offline PDF Scanner turns your phone camera into a real PDF scanner — with searchable text, not just photos. Works completely offline.

How text is converted to hex

Each character is first encoded as UTF-8 bytes — one byte for ASCII, two to four bytes for non-ASCII characters. Each byte is then written as two hexadecimal digits (00FF). So the letter "A" (byte 0x41) becomes 41, and "👋" (bytes F0 9F 91 8B) becomes f09f918b.

When to use

  • Producing hex dumps of string contents.
  • Preparing raw byte literals for C/C++/Go source.
  • Debugging non-ASCII data flowing through APIs.
  • Feeding binary values into low-level protocols.

How to use

  1. Type or paste text into the left panel.
  2. Pick your separator and case preference.
  3. Click Encode →, then Copy or Download.

Privacy

All conversion is local. No data leaves your browser.

Frequently Asked Questions