EthicalFusion

Text to Binary

Convert plain text into binary code.

Was this tool helpful?

Thanks for the feedback!

Text to Binary converts each character of your text into a string of 0s and 1s, with a space between characters, so Hi becomes 01001000 01101001. It is used in computer science classes, puzzles and coded greetings, and it shows clearly how a computer represents letters as numbers.

How a letter becomes eight bits

Each character is first turned into its character code, then that number is written in base 2 and padded with zeros on the left to at least eight digits. For the letter H:

  1. H has the ASCII code 72.
  2. 72 = 64 + 8, so the bits for 64 and 8 are on: 1001000.
  3. Padded to eight digits it becomes 01001000.

The letter i is 105 = 64 + 32 + 8 + 1, which gives 01101001. A space is 32, written 00100000. Compare A (01000001) with a (01100001): capitals and small letters differ by a single bit, the one worth 32.

Non-English characters: longer groups, not UTF-8 bytes

For plain English text every group is exactly eight bits, one byte per character. Anything outside ASCII behaves differently, and the difference matters if another program will read the output:

CharacterThis toolUTF-8 bytes
é1110100111000011 10101001
₹1000001011100111100010 10000010 10111001
😀two 16-bit groupsfour bytes

The tool writes the character's UTF-16 code in binary, so the rupee sign becomes one 14-bit group rather than the three bytes a file would store. Its output converts back correctly in the site's Binary to Text decoder, but a decoder that expects strict 8-bit UTF-8 bytes will misread it.

Where this fits in your studies

The CBSE Class 11 Computer Science syllabus covers number systems and encoding schemes such as ASCII, ISCII and Unicode, and converting a short word by hand is a common exercise. Use the tool to check your working: write your name in binary on paper, then compare. To practise the reverse skill, convert decimal values with the binary-decimal converter, or see the same text as decimal codes with Text to ASCII Codes.

Size and practical notes

  • A 100-character English message produces 800 bits plus 99 separating spaces, so binary is about nine times longer than the original text.
  • Reading binary quickly: split each 8-bit group into two halves of four bits. 0100 1000 is hex 4 and 8, and hex 48 is decimal 72, the letter H. Programmers use this shortcut to read binary dumps without adding up powers of two.
  • Line breaks are converted as well (00001010), so a multi-line message stays multi-line after decoding.
  • Binary is an encoding, not encryption. Anyone with a converter can read a binary message in seconds, which is fine for a birthday puzzle but not for anything private.

Frequently asked questions

What is Hello in binary?
Hello is 01001000 01100101 01101100 01101100 01101111, one 8-bit group for each letter.
Why do some characters produce more than 8 bits?
Characters outside ASCII, such as the rupee sign or Hindi letters, have codes larger than 255, so their binary form needs more digits.
Is the output the same as UTF-8?
Only for plain ASCII text. For other characters the tool writes the UTF-16 code in binary, which differs from UTF-8 byte sequences.
How do I convert the binary back to text?
Paste the space-separated groups into a binary to text decoder. The site's decoder reads this tool's longer groups correctly.
What is the difference between A and a in binary?
A is 01000001 and a is 01100001. They differ only in the bit worth 32.

Related tools

Embed this tool on your site

Paste it into any blog or website. Free, with a credit link.