Text to Hex Converter
Convert text to hexadecimal and hex back to text, with correct UTF-8 so emoji an...Convert text to hexadecimal and hex back to text, with correct UTF-8 so emoji and accented characters round-trip. Choose your separator, case, and 0x ...
Updated
Text input
Hex output
Live counts
Character breakdown
Common characters in hex
| Character | Decimal | Hex | With 0x |
|---|---|---|---|
| A | 65 | 41 | 0x41 |
| Z | 90 | 5A | 0x5A |
| a | 97 | 61 | 0x61 |
| z | 122 | 7A | 0x7A |
| 0 | 48 | 30 | 0x30 |
| 9 | 57 | 39 | 0x39 |
| space | 32 | 20 | 0x20 |
| ! | 33 | 21 | 0x21 |
Quick answer
To convert text to hex, type your text into the box and read the hexadecimal on the right. Each character is encoded as its UTF-8 bytes, and every byte becomes two hex digits, so the letter A is 41 and Hi is 48 69. Switch to Hex to Text and paste byte pairs (with or without spaces or 0x prefixes) to decode them back. Because it uses real UTF-8 bytes, emoji and accented letters like é (c3 a9) round-trip exactly. Everything runs in your browser, so no text is ever uploaded.
Converter Features
Why Use Text to Hex Converter?
Both Directions, Live
Type text to see its hex as you type, or paste hex to decode it straight back to text. One tool, either way, with a one-tap swap.
Correct UTF-8 Encoding
Text is encoded as real UTF-8 bytes, so emoji and accented letters like é round-trip exactly. Each byte becomes two hex digits, the way computers store it.
Your Format, Your Way
Choose a space, comma, newline, or no separator, switch between lowercase and uppercase, add a 0x prefix, and group bytes for a clean hex dump.
Friendly Error Checks
Paste an odd number of digits or a stray non-hex character and the decoder names the exact problem instead of guessing, so you fix bad hex in one read.
Live Byte and Digit Counts
See the character count, the UTF-8 byte count, and the total hex digit count update instantly, so you always know how big the output really is.
100% In Your Browser
Every conversion runs on your device in JavaScript. No text you type is ever uploaded, logged, or sent to a server, and it works offline.
Common Uses for Text to Hex
Debugging and Data Inspection
Read the exact byte pattern behind a string to diagnose encoding issues and hidden characters.
Programming and Protocols
Paste 0x-prefixed bytes straight into source, or verify an encoding while working on parsers.
Security and Cryptography
Prepare hex input for hashing and encryption workflows where every byte has to be exact.
Learning How Text Is Stored
See how a character becomes UTF-8 bytes and hex, the foundation of every encoding lesson.
How It Works
Pick a direction
Choose Text to Hex to encode, or Hex to Text to decode. The input and output panels relabel to match the direction you picked.
Type or paste your input
Enter text (emoji welcome) or paste hex. The result appears instantly. Optionally set the separator, case, 0x prefix, and byte grouping.
Copy or download
Press Copy to put the result on your clipboard, or Download to save it as a plain text file. Swap the panels to convert the result back again.
Tips and Best Practices
Two Hex Digits Per Byte
Read hex in pairs. Each pair of digits is one byte, so 48 69 is two bytes, which decode to the two letters Hi.
Separators Are Optional When Decoding
You can paste hex with spaces, commas, 0x prefixes, or as one long string. The decoder splits it into byte pairs either way, so 4869 also decodes to Hi.
Emoji Take More Than One Byte
In UTF-8 an emoji is four bytes, which is eight hex digits, so it shows as four pairs. That is correct, not a bug, and it decodes back to the same emoji.