String to Hex
Type or paste a string and convert it into hexadecimal UTF-8 bytes instantly. Use separators that fit code samples, payloads, or documentation.
Last updated: May 30, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is String to Hex?
String to hex conversion shows the byte-level hexadecimal representation of text. The input string is encoded as UTF-8 bytes, then each byte is written as two hex digits from 00 to FF. For ordinary ASCII text, each character becomes one byte. For Unicode text, accented letters and emoji may use multiple bytes.
Developers use string-to-hex conversion when documenting binary payloads, preparing protocol examples, debugging encoded data, checking UTF-8 byte sequences, and creating test fixtures where raw bytes are easier to read in hexadecimal than in binary.
How to Use String to Hex
Type or paste the string you want to encode
Choose a separator: space, comma, or newline
Review the generated hexadecimal byte values
Copy the hex output or download it as a text file
Use Hex to String or Hex to UTF8 to decode the bytes back
Common Use Cases
- Encoding short text payloads as hex byte lists for protocol documentation.
- Checking the UTF-8 byte sequence for accented characters, symbols, or emoji.
- Creating test fixtures for parsers that consume hexadecimal byte input.
- Preparing CTF or puzzle strings where a message is hidden in hex.
- Verifying that a hex decoder recovers the original string exactly.
Example Input and Output
The string WebTools is encoded as one two-digit hex value per UTF-8 byte.
WebTools57 65 62 54 6F 6F 6C 73Privacy
String-to-hex encoding is fully client-side. Your text is not sent to a server.
Two digits per byte
Hexadecimal is base 16, so every byte from 0 to 255 is represented by exactly two digits from 00 to FF.

