Hex Encode
Encoding ToolsConvert text to hexadecimal representation
About Hex Encode
Converts text to its hexadecimal byte representation. Each character is converted to its UTF-8 byte sequence, and each byte is shown as two hexadecimal digits (00–FF). The output is a continuous string of hex pairs that represent the exact binary content of the input. Hex encoding is the standard format for displaying binary data when you need to inspect it at the byte level. Developers use it for: examining the actual bytes in a string to debug encoding issues, constructing binary protocol messages, representing cryptographic outputs like hashes and signatures, and embedding binary data in source code or configuration files as a hex literal. For ASCII text, the mapping is straightforward — the letter "A" is 0x41, a space is 0x20. For multi-byte Unicode characters, the result depends on the UTF-8 encoding. An emoji like 😀 produces four byte pairs: F0 9F 98 80. This is the correct representation of that code point in UTF-8. The tool shows output as lowercase hex by default, which is the convention in most cryptographic and networking contexts, though both cases are equivalent and interchangeable.
How to Use Hex Encode Online
- Paste your data into the input field above
- The result appears instantly in the output area
- Click "Copy" to copy the result to your clipboard
Convert text to hexadecimal representation. Runs 100% client-side — no data is sent to any server.