Text to Binary Converter: Encode and Decode Binary Strings
At the lowest level, computers represent everything as binary — sequences of 0s and 1s. Our text to binary converter shows you exactly how text is represented in binary, and can decode binary sequences back to readable text.
How Text Becomes Binary
Each character has a numeric code (its ASCII or Unicode code point). That number is then represented in binary (base 2):
| Character | ASCII Code | Binary |
|---|---|---|
| A | 65 | 01000001 |
| B | 66 | 01000010 |
| a | 97 | 01100001 |
| 0 | 48 | 00110000 |
| ! | 33 | 00100001 |
| Space | 32 | 00100000 |
Example
"Hi" → 01001000 01101001
H → 72 → 01001000
i → 105 → 01101001
Each character becomes an 8-bit (1 byte) binary number, padded with leading zeros.
How to Use Our Converter
Text to Binary
- Select Text → Binary mode
- Type or paste text in the input area
- View the binary output instantly
- Choose a separator: space (default), none, or newline
Binary to Text
- Select Binary → Text mode
- Paste binary string (e.g.,
01001000 01101001) - The tool decodes it back to readable text
- Non-binary characters (anything besides 0 and 1) are ignored
Common Use Cases
- Learning — understand how character encoding works at the byte level
- CTF challenges — decode hidden binary messages in cybersecurity puzzles
- Data representation — visualize how strings are stored in memory
- Fun — encode secret messages in binary for friends
Frequently Asked Questions
What about emoji and non-ASCII characters? Our tool uses the character’s Unicode code point. For basic ASCII characters (English letters, numbers, common symbols), each character is one byte (8 bits). Multi-byte characters (like emoji) use their charCodeAt(0) value.
Why are there 8 bits per character? ASCII uses 7 bits (128 characters), but the standard representation pads to 8 bits (1 byte) for consistency. This is the most common binary text format.
Try our free Text to Binary converter to encode and decode binary strings instantly.
Try Ghost Image Hub
The Chrome extension that makes managing your Ghost blog images a breeze.
Learn More