Text to Hex Converter
Convert text to hexadecimal, or decode hex back to readable text.
Encode any text as hexadecimal bytes, or decode hex into readable text. Accents, Arabic and emoji are supported through UTF-8.
Features
Use Cases: When This Tool Helps
-
Debug encoding problems
See the exact bytes behind garbled characters like "é" to find UTF-8 and Latin-1 mix-ups.
Read the guide → -
Write escape sequences in code
Get \x or 0x byte values for strings in C, Python, JavaScript, or shell scripts.
-
Inspect network and file data
Compare text with hex dumps from Wireshark, hex editors, or firmware files.
-
Learn how Unicode works
See how Arabic, emoji, and accented letters take two, three, or four bytes in UTF-8.
-
Create CTF and puzzle challenges
Hide flags or clues as hex strings for capture-the-flag competitions.
-
Prepare data for hardware and IoT
Convert commands or messages into hex for serial devices, LED displays, and microcontrollers.
How to Use
- Choose Text to Hex or Hex to Text.
- Type or paste your input.
- Copy the output.
FAQ
Why does one letter become several bytes?▾
UTF-8 uses more than one byte for characters outside basic English.
What hex formats can I decode?▾
Plain digits, spaces, colons, dashes, 0x and backslash-x prefixes all work.