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
- Type or paste your text.
- Choose the separator, letter case and 0x prefix.
- 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.
Related tools
- Hex to TextConvert hexadecimal values to readable text.
- Text to BinaryConvert text characters to binary representation.
- Base64 EncodeConvert text or binary data to Base64 encoded string for safe transmission.
- URL EncodeEncode text for safe use in URLs by converting special characters to percent-encoded format.
- URL DecodeDecode percent-encoded URLs back to readable text with special characters restored.
- Base64 DecodeDecode Base64 encoded strings back to original text or binary data.
- ASCII TableIn Reference