This tool converts text to binary, hex, decimal or octal codes and decodes them back into readable words. Type "Hi" and you get 01001000 01101001. It uses UTF-8, so Urdu letters and emoji work as well as English. Use it as a binary translator for homework, puzzles, coding lessons or secret messages.
How do I convert text to binary?
- Choose the direction: text to code, or code to text.
- Choose the format: binary, hex, decimal or octal.
- Type or paste your text or codes.
- Copy the result.

How does it work?
Computers store every character as a number. UTF-8 is the standard that decides which number each character gets and how it is stored as bytes. The tool takes each byte and writes it in the base you choose.
| Character | Decimal | Hex | Binary |
|---|---|---|---|
| A | 65 | 41 | 01000001 |
| a | 97 | 61 | 01100001 |
| 0 | 48 | 30 | 00110000 |
| space | 32 | 20 | 00100000 |
English letters take one byte each. Urdu letters take two bytes, and most emoji take four, so they produce longer codes.

Binary to text
To go back, paste binary groups of 8 digits separated by spaces, choose "code to text" and the tool shows the message. If you get strange symbols, check that each group has exactly 8 digits and that nothing was lost when copying.
Text to hex
Hex, short for hexadecimal, uses the digits 0–9 and letters A–F. It is shorter than binary, which is why programmers prefer it. Each byte becomes two hex characters, so "Hi" is 48 69. You will see text to hex conversions in colour codes, network tools and debugging output.
Spaces, line breaks and punctuation
Every character is converted, not just letters. A space becomes 00100000, a full stop becomes 00101110 and a new line becomes 00001010. That is why a short sentence produces a long string of digits. When you decode, those characters come back exactly as they were.
Where binary and hex are used
- Computer science lessons on how data is stored.
- Puzzle hunts and escape rooms with hidden codes.
- Checking file headers and network data while debugging.
- Making a geeky birthday card or T-shirt design.
Decimal and octal
Decimal shows each byte as a normal number from 0 to 255, so "Hi" becomes 72 105. Octal uses the digits 0 to 7 and is mostly seen in older systems and Linux file permissions, where 755 and 644 are octal values. Both are offered so you can match whatever format your lesson or program uses.
Tips
Keep spaces between bytes so the code is easy to read and decode. If you share binary in a chat, send it as a code block so no characters change. To convert single numbers between bases rather than text, use the number base converter.
What to use next
For Morse code instead of binary, try the Morse code translator. To encode text for URLs or email, use Base64 encode and decode. Simple letter-shift ciphers are in the cipher tool, and if you need to scramble text for fun, reverse text flips it backwards in one click.
