What is Text to Binary?

Text to Binary converts any text string into its binary (base-2) representation, showing the 8-bit binary code for each character. You can switch the output to hex, decimal, or octal, and it converts binary back to text too — handy for learning encoding, debugging data, or building binary art.

The converter handles UTF-8, UTF-16, and pure ASCII so accents, emoji, and CJK characters all encode correctly. Group by 4-bit nibbles, 8-bit bytes, 16-bit, or 32-bit, switch the output base between binary, hex, decimal, and octal, and choose space, dash, comma, none, or a custom separator. A byte-by-byte breakdown shows the value and character behind each group, and a built-in reference table maps common characters to their codes. Drop in any .txt file or paste from your clipboard, and the decode side accepts any of those formats while ignoring stray whitespace. Your last input and settings are remembered, so you pick up right where you left off.

How to use

  1. Type or paste text in the input field. The binary output updates instantly, showing each character as an 8-bit binary sequence separated by spaces.
  2. Switch to decode mode to paste binary strings and convert them back to readable text. Both directions work in real time.
  3. Paste in text, upload a .txt file, or hit the Paste button to pull straight from the clipboard. Copy the binary output back out, download it as a file, or use the swap button to flip between encode and decode.

When to use

  • Teaching how characters map to bytes when you start learning programming or data structures.
  • Debugging text that came out garbled, to see what bytes the source actually contained.
  • Making puzzle hints, ARGs, or geeky birthday cards where the message is hidden in 0s and 1s.

Result

Type 'Hi' to see '01001000 01101001' — the 8-bit binary representation of each ASCII character.

FAQ

Why is each character 8 bits long?
ASCII uses 7 bits and was padded to 8 to fit one byte, which became the standard unit on most computers. The leading bit is 0 for plain ASCII. UTF-8 keeps that 8-bit byte but uses two to four bytes for non-Latin characters.
How are emoji and Chinese characters encoded?
They use UTF-8, which spans multiple bytes per character. The smiley emoji is four bytes (32 bits), most CJK characters are three bytes (24 bits). Set the bit length to 8 and you'll see those characters split across several groups.
Can I paste binary that uses commas or no separator at all?
Yes. The decoder reads runs of 0s and 1s and ignores anything else, so you can paste 01001000,01101001 or one long stream like 0100100001101001 and it still works.
Can I see the same text in hex, decimal, or octal too?
Yes — switch the output base to Hex, Decimal, or Octal and the same characters render in that base. Binary is base 2 and shows the actual bits a computer stores; hex is base 16 and packs four bits into one symbol; octal is base 8, the form Unix file permissions use. The letter A is 01000001 in binary, 41 in hex, 65 in decimal, and 101 in octal — same value, four notations.
Does case matter when decoding?
Yes for the text output, no for the binary input. ASCII assigns different codes to upper and lower case (A is 65, a is 97), so 01000001 decodes to A while 01100001 decodes to a.

Related Tools