Text to Hex
Encode the UTF-8 bytes of a string as hexadecimal.
Your workspace
Processed in your browserThis utility converts your text into a hexadecimal string by encoding the input as UTF-8 bytes. Each character is represented by its corresponding hex byte pair, which is useful for low-level data inspection, debugging encoding issues, or preparing strings for binary protocols.
How to convert text to hex
- Enter the text you wish to convert into the input field.
- The tool automatically processes the input and displays the resulting hexadecimal string, where each pair of characters represents one byte of the original text.
Understanding the output
The output is a continuous string of hexadecimal digits. Because UTF-8 is a variable-width encoding, common ASCII characters will appear as single-byte pairs (e.g., 'A' becomes '41'), while special characters or emojis may span multiple bytes. This tool does not encrypt data; it simply changes the representation format.
Example conversion
Hello
48656c6c6f
Questions about hex conversion
Why do some characters result in more than two hex digits?
UTF-8 uses multiple bytes for non-ASCII characters, such as accented letters or emojis. Each byte is represented by two hex digits, so a single character might result in four or six digits.
Can I reverse this process?
Yes, you can use a hex-to-text tool to decode the hexadecimal string back into its original UTF-8 text, provided the hex string represents valid byte pairs.
Continue your workflow
Explore more tools in this category for your next step.