What is Binary?
Binary is a base-2 numeral system that uses only two digits: 0 and 1. It is the fundamental language of computers and digital electronics. Every piece of data stored or processed by a computer — text, images, audio, video — is ultimately represented as sequences of binary digits (bits). A single bit can be either 0 or 1, and groups of 8 bits form a byte, which can represent 256 different values (0 to 255).
How Text is Represented in Binary
Text is converted to binary through character encoding schemes. The most common encoding is ASCII (American Standard Code for Information Interchange), which assigns a numeric value to each character. For example, the uppercase letter “A” has an ASCII value of 65, which is 01000001 in binary. The lowercase “a” has a value of 97 (01100001 in binary).
Modern systems use UTF-8, a variable-width encoding that is backward compatible with ASCII. Standard ASCII characters (0-127) use a single byte, while international characters and emoji may use 2 to 4 bytes. This tool converts each character to its Unicode code point and then to its binary representation.
ASCII Encoding Explained
ASCII defines 128 characters, including uppercase and lowercase letters, digits 0-9, punctuation marks, and control characters. Each character maps to a 7-bit binary number (commonly stored in 8 bits with a leading zero). Here are some key ranges:
Digits (0-9)
ASCII 48-57 → 00110000 to 00111001
Uppercase (A-Z)
ASCII 65-90 → 01000001 to 01011010
Lowercase (a-z)
ASCII 97-122 → 01100001 to 01111010
Text to Binary Conversion Examples
| Character | ASCII Code | Binary |
|---|---|---|
| A | 65 | 01000001 |
| B | 66 | 01000010 |
| Z | 90 | 01011010 |
| a | 97 | 01100001 |
| z | 122 | 01111010 |
| 0 | 48 | 00110000 |
| 9 | 57 | 00111001 |
| Space | 32 | 00100000 |
| ! | 33 | 00100001 |
| @ | 64 | 01000000 |
Frequently Asked Questions
Each character in the text is mapped to its ASCII or Unicode code point (a numeric value). That number is then converted to its base-2 (binary) representation. For example, the letter 'A' has ASCII code 65, which is 01000001 in binary. With 8-bit padding enabled, each character produces exactly 8 binary digits.
ASCII is a 7-bit encoding standard that defines 128 characters including English letters, digits, and basic punctuation. Unicode is a much larger standard that encompasses over 150,000 characters from virtually every writing system in the world, including emoji. UTF-8 is the most common Unicode encoding and is backward compatible with ASCII.
A group of 8 binary digits is called a byte, which is the fundamental unit of data in computing. One byte can represent 256 different values (0-255), which is enough to encode any ASCII character. Grouping binary into bytes makes it easier to read and aligns with how computers store data internally.
Yes. This tool converts any character to binary using its Unicode code point. However, emoji and characters outside the basic ASCII range (code points above 127) may produce binary values longer than 8 bits. The tool will still convert them correctly using the character's full code point value.
Switch to 'Binary to Text' mode, then paste your binary string. If the binary digits are space-separated (e.g., '01001000 01101001'), the tool splits on spaces. If there are no spaces, it splits the input into groups of 8 bits. Each group is then converted to a decimal number and mapped back to the corresponding character.
Absolutely. All conversions happen entirely in your browser using client-side JavaScript. No data is sent to any server, stored, or logged. You can even use this tool offline once the page has loaded.
When enabled, each character's binary representation is padded with leading zeros to ensure it is exactly 8 digits long. For example, the letter 'A' (65 in decimal) would be '1000001' without padding but '01000001' with 8-bit padding. This matches the standard byte representation and makes the output easier to read.
The space-separated option adds a space between each character's binary representation in the output. This makes it much easier to visually distinguish individual characters. When converting binary back to text, the tool uses these spaces to know where one character ends and the next begins.