Convert text to binary code and back. Free, private, runs in your browser.
100% private — your files and text never leave your browser. All processing happens locally on your device.
Text to binary conversion transforms human-readable text into its binary representation — the fundamental language of computers. Each character in your text is converted to its ASCII or Unicode code point, which is then expressed as a sequence of 0s and 1s (bits). For example, the letter 'A' has ASCII code 65, which in binary is 01000001. This tool converts entire strings, showing the binary representation of each character.
Binary conversion is useful for computer science education, understanding how computers store text, debugging encoding issues, creating binary-themed visuals or art, and technical demonstrations. Developers sometimes need to inspect the binary representation of strings when working with network protocols, file formats, or low-level data manipulation. It's also a popular educational exercise for students learning about number systems and character encoding.
The tool takes each character in your input text, converts it to its character code using JavaScript's charCodeAt() method, and then converts that number to its binary representation using toString(2). Each binary value is padded to 8 bits (one byte) for standard ASCII characters. The results are displayed with spaces between each byte for readability. You can also convert binary back to text.
Yes. All conversion happens locally in your browser using JavaScript. No text is transmitted to any server. Your input is processed entirely on your device.
Each character is converted to its 8-bit binary representation (ASCII/UTF-8). For example, the letter 'A' becomes 01000001.
Yes. Click the Decode button to convert binary (space-separated 8-bit groups) back to readable text.
All Unicode characters including letters, numbers, symbols, and emoji are supported via UTF-8 encoding.