Text to Hex
Convert text to hexadecimal values using UTF-8 encoding. This Text to Hex converter transforms plain text into hexadecimal representation using 8-bit ASCII encoding for each character.
Whether you call it hex converter or string to hex, this free tool handles it instantly in your browser.
Online hexadecimal encoder tool for converting text strings into hex values.
Example usage
Example input
hello
Example output
68 65 6c 6c 6f
Batch Processing
Enter multiple inputs, one per line. Each line will be processed separately.
Why this tool?
Everything runs right in your browser — no uploads, no sign-up, no waiting. Your text never leaves your device.
Quick tips
- •Outputs update live as you type.
- •Use the sticky copy button to grab results quickly.
- •Bookmark this page for fast access.
More like this
Discover related tools and step-by-step guides for this kind of task.
How it works
- Text is encoded as UTF-8 bytes.
- Each byte is rendered as a two-digit hex value.
- Spacing keeps the output readable and copy-friendly.
Use cases
What you are actually seeing: UTF-8 bytes
This converter shows the UTF-8 byte representation of your text, two hex digits per byte. Plain English letters map one byte each — "hello" becomes 68 65 6c 6c 6f — because ASCII characters occupy a single byte in UTF-8. The mapping is systematic: lowercase letters run from 61 (a) to 7a (z), uppercase from 41 (A) to 5a (Z), digits from 30 (0) to 39 (9), and space is 20.
Non-ASCII characters expand: é becomes two bytes (c3 a9), the euro sign € three (e2 82 ac), and emoji four (😀 is f0 9f 98 80). If your output is longer than expected, invisible characters or multi-byte symbols are the reason — which is precisely why developers hex-dump strings when debugging.
Real debugging scenarios
Hex inspection answers questions plain text cannot: Is that space a normal 20 or a non-breaking c2 a0 that breaks my string comparison? Did that CSV import add a UTF-8 byte-order mark (ef bb bf) at the start of the file? Are those quotes straight (22) or curly (e2 80 9c) after passing through Word? Paste the suspicious text here and read the bytes — mysteries that cost hours in a debugger are often visible in seconds as hex.
Encoding
Explore all encoding and decoding tools
Browse every tool for this kind of task, along with helpful guides that show you how to get the most out of them.
Related tools
Supporting guides
Conversion History
Loading...
FAQ
Which encoding is used?
UTF-8 byte encoding is used consistently.
Does it include 0x?
No, values are space-separated for clarity.

