Guide
How to Convert Text to Hex: Free Online Tool Guide
To convert text to hex, paste your text into hellagape's Text to Hex tool and read the result: each character becomes its UTF-8 bytes written as two lowercase hex digits, so "Hello" becomes 48 65 6c 6c 6f and "café" becomes 63 61 66 c3 a9. The conversion is instant (there is no Convert button to press), runs entirely in your browser with nothing sent anywhere, and is free with no signup. The output format is fixed — lowercase, space-separated, no prefixes — so if you need 0x48 bytes or joined hex for code, you will reformat the result yourself, as explained below.
How to convert text to hex with the tool
- Open the Text to Hex tool. You will see an "Input to convert" box and a RESULT area.
- Type or paste your text. The result updates instantly as you type — there is no Convert button in the tool itself, whatever generic help text elsewhere on the page suggests.
- Read the hex in the RESULT panel. The format is fixed: lowercase hex pairs separated by single spaces. The tool offers no separator, case or prefix options to change.
- Click Copy to copy the hex, or Download to save it as a file. Clear empties both boxes.
Everything runs locally with JavaScript: per the page, "Typing updates the result instantly. Nothing is sent anywhere." There is no daily limit and no account requirement.
Worked examples (verified)
Example 1 — "Hello" → 48 65 6c 6c 6f Five characters, five bytes: H=72=0x48, e=101=0x65, l=108=0x6c, l=0x6c, o=111=0x6f. This exact output was produced by the live tool.
Example 2 — "café" → 63 61 66 c3 a9 Four characters but five bytes: c, a, f are one byte each, while é takes two UTF-8 bytes (0xC3 0xA9). If your hex has more pairs than your text has characters, accented or non-English characters are why — that is correct UTF-8 behavior, not an error. The live tool produced exactly this output, and a Python UTF-8 cross-check matches byte for byte.
Example 3 — "Hi!" → 48 69 21 Punctuation converts like any other character: H=0x48, i=105=0x69, !=33=0x21. Live-verified.
Example 4 — "José García" → 4a 6f 73 c3 a9 20 47 61 72 63 c3 ad 61 Eleven characters, thirteen bytes: both é and í take two bytes each, and the space is 0x20. Count the pairs when you check output length — bytes, not characters, decide the hex length. Python cross-check matches.
The method in plain words
Computers store text as numbers. ASCII assigns each basic character a number (A=65, H=72, a=97), and UTF-8 extends that to every character in every language using one to four bytes per character. Hexadecimal is just those byte numbers written in base 16, which always takes exactly two digits per byte (00 to ff). To convert by hand, divide the byte value by 16: the whole-number answer is the first hex digit and the remainder is the second, with 10–15 written as a–f. H is 72: 72 ÷ 16 = 4 remainder 8, so 48. A space is 32: 32 ÷ 16 = 2 remainder 0, so 20. The tool does this for every byte instantly, which is why long strings take seconds instead of an afternoon.
Tips and common mistakes
- Expect lowercase with spaces. This tool's output is fixed (
48 65 6c). If your destination wants uppercase, joined (48656c) or prefixed (0x48, 0x65) hex, reformat after copying — the bytes are identical, only the presentation differs. - Count bytes, not characters. "café" is 4 characters but 5 hex pairs. Emoji and CJK characters take 3–4 pairs each. A pair count higher than the character count is normal UTF-8.
- Wrong-looking hex usually means the wrong encoding. If another program's hex differs, check whether it used UTF-8 or a legacy encoding (Latin-1, Windows-1252): plain English is identical in all of them, accented text is not.
- Hex is not encryption. Anyone can decode it back instantly — use hellagape's Hex to Text to prove it. Never treat hex output as hiding sensitive data.
- Going the other way? Use Hex to Text to decode, or Text to Binary if you need the same bytes in base 2.
Frequently asked questions
How do I convert text to hex? Paste the text into the Text to Hex tool and read the instant result. By hand: take each character's UTF-8 byte value, divide by 16, and write the quotient and remainder as two hex digits (10–15 = a–f).
What is "Hello" in hex? 48 65 6c 6c 6f — H=0x48, e=0x65, l=0x6c, l=0x6c, o=0x6f. Joined without spaces: 48656c6c6f.
Why does "café" produce five hex pairs from four characters? Because é is two bytes in UTF-8 (0xC3 0xA9). The full output is 63 61 66 c3 a9: c, a, f, then the two bytes of é.
Can I get uppercase or 0x-prefixed hex? Not from this tool — its output is fixed lowercase space-separated pairs. Copy the result and reformat it (uppercase the letters, remove spaces, or add prefixes) to match your destination; the byte values do not change.
Is my text sent to a server? No. Per the page, "This tool processes everything locally with JavaScript" and "Nothing is sent anywhere." Closing the tab clears the data.
How do I convert hex back to text? Use hellagape's Hex to Text tool: each pair of hex digits becomes one byte, and the bytes decode as UTF-8 text — the exact reverse of this tool.
What is the difference between hex and binary? Both write the same bytes in different bases: hex uses two digits per byte (0x48), binary uses eight (01001000). Hex is shorter to read; hellagape's Text to Binary tool produces the binary form.
Related tools: Hex to Text, Text to Binary, Binary to Text, Base64 Encoder.
Try it now
Text to Hex
Convert text into hexadecimal byte values for debugging and protocols.
Keep reading