Text to Hex Converter
Everything runs in your browser. Your data never leaves your device.
What this tool does
This text to hex converter shows the hexadecimal bytes behind any text and turns hex back into readable text. Programmers use it to inspect data, debug encodings, build test values and read byte dumps, and students use it to learn how characters are stored. It supports English, Arabic and emoji through UTF-8.
How to use it
- Type or paste your text, or your hex values, in the first box.
- Choose Text → hex or Hex → text.
- Tick Uppercase hex digits if you prefer A–F to a–f.
- Copy the result.
How the conversion works
Your text is encoded as UTF-8 bytes. Each byte, a number from 0 to 255, is written as two hexadecimal digits and the pairs are separated by spaces. Decoding removes spaces, commas and 0x prefixes, reads the digits in pairs, turns each pair into a byte and decodes the bytes as UTF-8 text.
Example: “Hello” becomes 48 65 6c 6c 6f. The Arabic letter م becomes d9 85, and the emoji 😀 becomes f0 9f 98 80.
Notes
The number of hex digits must be even, because every byte needs two. If decoding gives bytes that are not valid UTF-8, for example from an image or a program, the tool shows an error instead of unreadable symbols. This tool shows bytes, not Unicode code points, so a character such as م is d9 85 here and U+0645 in a character table. Everything runs in your browser and your text is never uploaded.
Frequently asked questions
What is hexadecimal?
Hexadecimal, or hex, is a base-16 number system that uses the digits 0 to 9 and the letters A to F. One byte (0 to 255) is always written with exactly two hex digits, from 00 to ff.
How is text turned into hex?
The text is converted to UTF-8 bytes and each byte is written as two hex digits. For example the letter A is byte 65, which is 41 in hex.
What input formats can I decode?
Hex digits with spaces, commas or 0x prefixes, in upper or lower case. For example "48 65 6c", "0x48,0x65,0x6c" and "48656C" all decode to the same text.
Why do Arabic letters show as two bytes?
In UTF-8, each Arabic letter uses two bytes, so it appears as two pairs of hex digits. The letter م is d9 85.