Text to Hex

Convert text characters to hexadecimal values.

Convert text to hexadecimal bytes: "Hello" becomes 48 65 6c 6c 6f. Text is encoded as UTF-8, so letters outside basic English and emoji become two to four bytes each. Choose a separator (space, comma or none), uppercase or lowercase, and whether to put 0x in front of each byte for code. The hex to text converter turns it back.

Need the reverse? Hex to Text

Common use cases

  • Put a string into code as a byte array
  • Check exactly which bytes a piece of text contains
  • Spot hidden characters such as non-breaking spaces or zero-width joiners
  • Encode text for a protocol, a test or a puzzle

How to use

  1. Type or paste your text.
  2. Choose the separator, letter case and 0x prefix.
  3. Copy the hex.

FAQ

How can I find invisible characters with this?

A normal space is 20; a non-breaking space shows as c2 a0 and a zero-width space as e2 80 8b. Bytes you don't expect point to hidden characters.

Is this the same as a hex colour code?

No. Colour codes are three numbers written in hex. Use the HEX to RGB converter for colours.

What encoding is used?

UTF-8, the encoding used by almost every web page and modern file.