How to use
- In Text → hex, type or paste text and it becomes hexadecimal bytes. A sample is already filled in, so you see a result right away.
- Pick the character encoding. The web and most files use UTF-8; older Korean systems and databases use EUC-KR (CP949).
- Choose an output style for where the hex will go. Space-separated is easy to read,
0x48, 0x65fits a C or Arduino array, and%ED%95%9Cfits a URL. - To decode, switch to Hex → text and paste hex.
48 65,4865,0x48,0x65,\x48\x65and%48%65can be mixed. - The hex dump below shows offset, hex and ASCII side by side, 16 bytes per row. Change the encoding to compare how the same text turns into different bytes.
Same text, different bytes
The bytes depend on the encoding. For Hi 한 and 한글:
| Input | Encoding | Hex |
|---|---|---|
| Hi 한 | UTF-8 | 48 69 20 ED 95 9C |
| 한글 | EUC-KR | C7 D1 B1 DB |
| Hi한 | UTF-16 BE | 00 48 00 69 D5 5C |
| Hi한 | UTF-16 LE | 48 00 69 00 5C D5 |
- In UTF-8, English letters take one byte and Hangul takes three. EUC-KR uses one byte for English and two for Hangul, so it is shorter.
- UTF-16 uses two bytes per character (four for emoji). BE puts the high byte first and LE puts it last. The “Unicode” option in Windows Notepad is UTF-16 LE.
- Characters that EUC-KR does not contain, such as emoji, are skipped, and the tool lists which ones.
Output styles
| Style | Example (Hi) |
Typical use |
|---|---|---|
| Space separated | 48 69 |
documents, hex editors |
| Joined | 4869 |
comparing hashes and IDs |
| C array | 0x48, 0x69 |
C, C++, Arduino code |
| \x escape | \x48\x69 |
Python, C, shell strings |
| Percent | %48%69 |
URL percent-encoding |
Notes
- If you want binary or decimal, use Text ↔ Binary Converter. If you need the character’s own number (U+D55C), use the Unicode Converter. This tool focuses on bytes written in hex.
- A single digit such as
ais read as one byte (0A). Joined values are cut into pairs, so an odd number of digits is reported as an error.
Related tools
- Text to Decimal: text as decimal bytes or code points.
- Text to ASCII: ASCII codes with a reference table.
- Number Base Converter: convert numbers between binary, octal, decimal and hex.
- Base64 Encoder / Decoder: turn bytes into a Base64 string.
FAQ
How do I convert text to hex?
Type the text above. It is first turned into bytes using the encoding you chose, and each byte is written as two hex digits. For example A is 41 in UTF-8.
I converted hex to text and it is garbled. Why?
The encoding used to create the bytes differs from the one used to read them. Try UTF-8, EUC-KR and UTF-16 in turn. If it still looks wrong, bytes may be missing or the data may not be text.
Why does Hangul take three bytes in UTF-8?
UTF-8 stores characters from U+0800 upward in three bytes. All Hangul syllables sit above U+AC00, so each takes three.
Is hex the same as hexadecimal?
Yes. Hex is short for hexadecimal, the base-16 system that uses the digits 0 to 9 and the letters A to F.
Is my text uploaded?
No. Conversion happens in your browser and nothing is sent to a server.