Text to Binary

Convert text to binary and binary back to text.

Text

Type or paste text in the first box — it is instantly converted to 8-bit binary (zeros and ones). Edit the binary in the second box to decode back to text. Each character is shown as a group of 8 bits separated by spaces. All conversion happens in your browser.

About Text to Binary

Computers store text as numbers, and those numbers are stored in binary (base-2: only 0 and 1). Each character has a numeric code (e.g. "A" = 65); in binary that becomes a string of bits (e.g. 01000001). This tool converts text to that binary form and back again — so you can see exactly how letters and symbols look as 0s and 1s. Useful for learning, teaching, or low-level debugging.

How to use

  1. Text to binary: Type or paste in the Text box. The Binary box updates automatically with 8-bit groups separated by spaces.
  2. Binary to text: Type or paste binary in the Binary box (only 0 and 1, in groups of 8 with spaces). The Text box shows the decoded characters.
  3. Use Copy Binary or Copy Text to copy the result. Clear resets both boxes.

When to use

  • Learning how computers represent text (ASCII/Unicode in binary)
  • Quick encoding/decoding for exercises or tutorials
  • Checking binary representation of a character or short string
  • Fun or curiosity: see your name or a message in 0s and 1s

Details

Each character is represented by 8 bits (one byte) in the output. The conversion uses the character's code point. Standard ASCII characters (letters, digits, common symbols) fit in 0–127 and need 7–8 bits. The tool shows 8 bits per character for consistency and readability.

Frequently Asked Questions

How does the conversion work?
Each character is converted to its numeric code (ASCII/Unicode code point), then that number is written in binary (base-2) using 8 bits (e.g. "A" is 65, which is 01000001 in binary). Spaces separate each character's 8-bit group so you can read them clearly.
Can I convert binary back to text?
Yes. Type or paste binary in the Binary box — use groups of 8 bits separated by spaces (e.g. 01001000 01100101 01101100 01101100 01101111 for "Hello"). The Text box updates automatically with the decoded characters.
Is my text sent to a server?
No. All conversion runs in your browser using JavaScript. Your text and binary data never leave your device.
What character encoding is used?
The tool uses the character code of each character in JavaScript (UTF-16 code units). For basic Latin letters and numbers (ASCII), this matches 8-bit ASCII. Each character is shown as 8 bits; for characters with code > 255, the conversion still produces binary from that code.