Text to Hex — Online Text to Hex Converter
🔒 Runs in your browser — nothing is sent to a serverText to hex converter that turns any text, password, snippet or paragraph into clean hexadecimal bytes in a single click. Paste English text, a phrase with diacritics, CJK glyphs, Arabic or emoji; pick an output format (space-separated `48 69`, compact `4869`, C-style `\x48\x69` or prefixed `0x48, 0x69`), choose lower or upper case, and switch between UTF-8 (default — handles every Unicode character) and strict 7-bit ASCII. This hex encoder runs 100% inside your browser; your input never leaves your device, nothing is uploaded, logged or sent to any server.
Lowercase is the default in most libraries (Python `binascii`, Node `Buffer`).
When to use a text to hex converter
Converting text to hex is a daily chore in low-level programming, embedded work, network debugging and CTFs. Hand-feeding bytes into a hex editor, building a fixture for a binary parser test, embedding a magic constant into C source as `\x..\x..`, decoding what the network monitor printed when it captured an ASCII payload, hashing a deterministic string and comparing against a known digest, or simply teaching how UTF-8 widens non-English text — all of these begin with "show me the hex." A trustworthy, browser-local converter means the text never leaves your machine, which matters when the input is a credential or a proprietary protocol field.
How text becomes hexadecimal bytes
Text to hex conversion is a two-step pipeline. First the string is encoded into bytes — UTF-8 (variable-width, 1–4 bytes per character) by default, or ASCII (1 byte per character, 0–127 only) if you pick the ASCII option. The browser `TextEncoder` API runs this step natively. Second, each byte is formatted as a two-digit hexadecimal pair, optionally separated by a space, prefixed with `\x`, or wrapped as `0x…, 0x…`. Reversing the process is exactly the same pipeline backwards: the hex-to-text tool strips the chosen separators, parses each two-digit group into a byte, then runs `TextDecoder` to rebuild the Unicode string.
Examples
Hello48 65 6c 6c 6ftext to hex7465787420746f20686578café63 61 66 c3 a9Γειαce 93 ce b5 ce b9 ce b1