1. Home
  2. Developer
  3. Text ↔ Hex Converter

Text ↔ Hex Converter

Turn text into hex bytes, decode hex back to text, and view a hex dump.

For every format and option in one place, use Encoder and Decoder →

Runs in your browser · No upload
Hex result
48 65 6C 6C 6F 2C 20 77 6F 72 6C 64 21
Characters
13
Bytes
13
Hex dump
Hex dump
OffsetHexASCII
0000000048 65 6C 6C 6F 2C 20 77 6F 72 6C 64 21Hello, world!

Conversion happens in your browser; nothing you type is uploaded.

How to use

  1. 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.
  2. Pick the character encoding. The web and most files use UTF-8; older Korean systems and databases use EUC-KR (CP949).
  3. Choose an output style for where the hex will go. Space-separated is easy to read, 0x48, 0x65 fits a C or Arduino array, and %ED%95%9C fits a URL.
  4. To decode, switch to Hex → text and paste hex. 48 65, 4865, 0x48,0x65, \x48\x65 and %48%65 can be mixed.
  5. 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 a is read as one byte (0A). Joined values are cut into pairs, so an odd number of digits is reported as an error.

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.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.