Home/Hex ⇄ String
Hex

Hex ⇄ String

Convert between hexadecimal and strings (UTF-8)

Input
String
Output
Hex

Overview: Hex ⇄ String is a two-way converter between hexadecimal byte sequences and strings, using UTF-8 as the character encoding. It turns any text into two-digit hexadecimal per byte and can also decode a hex string back to the original text. It is a handy helper for debugging cryptographic algorithms, parsing protocol data or inspecting binary file fragments.

How to use: Step 1 — type the string you want to convert on the left, or click "Sample" to load an example. Step 2 — the hex representation appears on the right in real time; each byte is two lower-case hex digits with a space between bytes for readability. Step 3 — to go the other way, paste a hex string on the right; the tool automatically strips common prefixes and separators such as spaces, commas, 0x and \x before parsing. Step 4 — copy the result to your clipboard.

Typical scenarios: Inspect input / output bytes while debugging cryptographic algorithms; analyse hex data in captured network packets (Wireshark, tcpdump); work with serial, Bluetooth or TCP binary protocols; store or transmit keys and salts as hex strings; analyse file signatures, magic numbers and other binary identifiers; debug the output of crypto or hash functions.

Technical notes: Strings are converted to byte sequences using UTF-8, so a Chinese character usually takes 3 bytes. During parsing, the tool supports spaces, commas, 0x prefixes (for example 0x48 0x69) and \x prefixes (for example \x48\x69) and strips them before decoding. The hex string length must be even, otherwise an error is shown. Non-hex characters (outside [0-9a-fA-F]) also trigger a clear message.

Privacy: All conversion runs locally in your browser and no data is uploaded, so you can safely debug strings that contain secrets, tokens or proprietary protocol data.

Frequently Asked Questions

How do I use Hex ⇄ String?
Step 2 — the hex representation appears on the right in real time; each byte is two lower-case hex digits with a space between bytes for readability. Step 3 — to go the other way, paste a hex string on the right; the tool automatically strips common prefixes and separators such as spaces, commas, 0x and \x before…
What can Hex ⇄ String do?
Typical scenarios: Inspect input / output bytes while debugging cryptographic algorithms; analyse hex data in captured network packets (Wireshark, tcpdump); work with serial, Bluetooth or TCP binary protocols; store or transmit keys and…
Is my data private when I use Hex ⇄ String?
Privacy: All conversion runs locally in your browser and no data is uploaded, so you can safely debug strings that contain secrets, tokens or proprietary protocol data. Privacy: All conversion runs locally in your browser and no data is uploaded, so you can safely debug strings that contain secrets, tokens or…
What technical details should I know about Hex ⇄ String?
During parsing, the tool supports spaces, commas, 0x prefixes (for example 0x48 0x69 ) and \x prefixes (for example \x48\x69 ) and strips them before decoding. The hex string length must be even, otherwise an error is shown.