Text to Binary / Hex Translator

Convert text to binary, hex, decimal or octal codes, and turn binary back into readable text.

50 free uses every 24 hoursUnlimited with Pro →

Private by design — your data stays on your deviceEverything runs right here in your browser. What you type is not sent to our server and is not stored.
  • Runs in your browser
  • Not stored
  • No sign-up

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?

  1. Choose the direction: text to code, or code to text.
  2. Choose the format: binary, hex, decimal or octal.
  3. Type or paste your text or codes.
  4. Copy the result.
How to use the Text to Binary Converter on OneHubTools: 4 steps with a real screenshot of the tool
How to use the Text to Binary Converter, step by step.

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.

CharacterDecimalHexBinary
A654101000001
a976101100001
0483000110000
space322000100000

English letters take one byte each. Urdu letters take two bytes, and most emoji take four, so they produce longer codes.

Result from the Text to Binary Converter on OneHubTools
What the Text to Binary Converter gives you.

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.

Limits and specs

PriceFree
Free use50 uses every 24 hours — shared with 178 other tools in the “Basic tools” group
Where it runsIn your browser
Sign-upNot needed
Muhammad Shahwaiz Gillani
Maintained and reviewed by Muhammad Shahwaiz GillaniSoftware engineer and founder of OneHubTools · Last reviewed

How we checked it: We tested it in Chrome with real code and data, including edge cases such as empty input and very long values.

Where the facts come from

According to Wikipedia, Unicode gives a number to every letter, symbol and emoji in the world’s writing systems and was first published more than 30 years ago. Its UTF-8 encoding is used by over 98% of websites.

Spotted a mistake or the tool did not work for you? Tell us and we will fix it.

Rate this tool

Ratings come only from signed-in users, so every rating is verified.

Only signed-in users can rate tools, so every rating shows a ✔ Verified badge.Sign in to rate

Frequently asked questions

How do I convert text to binary?

Choose text to code and binary, then type your text. Each character becomes groups of 8 binary digits.

How do I convert binary to text?

Choose code to text, paste the binary with spaces between bytes, and read the message.

Does it support Urdu and emoji?

Yes. The tool uses UTF-8, so Urdu letters and emoji convert correctly, using more bytes than English letters.

What is the difference between binary and hex?

Both show the same bytes. Binary uses 0 and 1; hex uses 0–9 and A–F and is four times shorter.

Is it free?

Yes. The binary translator is free and works in your browser.

Why do I get odd symbols when decoding?

A group is probably missing a digit. Each byte must have exactly 8 binary digits.