Binary ↔ Text Converter
Convert text to binary and binary to text. Supports ASCII encoding with space-separated bytes.
Paste text to convert each character to its 8-bit binary representation, or paste binary to decode back to ASCII. ASCII characters only (0-127).
Use it for byte-level learning, protocol examples, and puzzles where each character is shown as one binary byte.
Text
Binary
Byte grouping
The converter separates bytes with spaces, so 01001000 01101001 reads as two characters. Removing the spaces makes the boundaries ambiguous.
ASCII range
Standard ASCII values run from 0 to 127. Values above that depend on the text encoding used by the system that produced the bytes.
Common checks
Hello becomes 01001000 01100101 01101100 01101100 01101111. If decoding gives question marks, inspect the byte spacing first.
Reading one byte
01000001 equals 65 in decimal because the 64 place is on and the 1 place is on. ASCII maps decimal 65 to the letter A.
Binary: The Language Computers Actually Speak
Everything on your computer, every file, every image, every message, is stored as sequences of 0s and 1s. That's it. When you type the letter "A", your computer stores 01000001. When you type "Hello", it stores five bytes: 01001000 01100101 01101100 01101100 01101111. Binary is the foundation of all digital data.
This converter translates between human-readable text and its binary representation using ASCII encoding. Each character becomes 8 binary digits (one byte). It's the same encoding your computer uses internally, you're just seeing the raw data format that's normally hidden behind fonts and rendering engines.
Everything runs in your browser. Type text, see binary. Paste binary, see text. Instant, private, and offline-capable.
ASCII Character Reference
| Character | Binary | Decimal | Hex |
|---|---|---|---|
| A | 01000001 | 65 | 41 |
| Z | 01011010 | 90 | 5A |
| a | 01100001 | 97 | 61 |
| z | 01111010 | 122 | 7A |
| 0 | 00110000 | 48 | 30 |
| 9 | 00111001 | 57 | 39 |
| Space | 00100000 | 32 | 20 |
| ! | 00100001 | 33 | 21 |
What this means for you: Notice that uppercase 'A' (65) and lowercase 'a' (97) differ by exactly 32. That's not a coincidence, it's a deliberate design decision in ASCII that makes case conversion a single bit flip (bit 5). The entire ASCII table was designed with these binary tricks in mind.
Understanding Binary Encoding
ASCII (7-bit, 128 characters)
The original character encoding. Covers English letters, digits, and basic punctuation. Every ASCII character fits in one byte. Still the foundation of UTF-8, all ASCII text is valid UTF-8.
UTF-8 (variable width, 1-4 bytes)
The web's standard encoding. ASCII characters use 1 byte, European accented characters use 2, Asian characters use 3, and emojis use 4. This tool handles ASCII; for full Unicode, you'd need a UTF-8 aware converter.
Bits vs bytes
1 bit = one 0 or 1. 1 byte = 8 bits = one ASCII character. Network speeds are measured in bits per second (Mbps), file sizes in bytes (MB). A "100 Mbps" connection transfers ~12.5 MB per second, the 8:1 ratio trips people up constantly.
Why 8 bits per byte?
8 bits gives you 256 possible values (2^8). That's enough for all ASCII characters (128) plus extended characters. It's also evenly divisible by 2 and 4, making hardware design simpler. The 8-bit byte became standard with the IBM System/360 in the 1960s.
Powers of 2 Cheat Sheet
| Binary | Decimal | Significance |
|---|---|---|
| 1 | 1 | Smallest unit, 1 bit |
| 100 | 4 | One hex digit (nibble) |
| 10000000 | 128 | ASCII character set size |
| 100000000 | 256 | 1 byte, RGB channel max +1 |
| 10000000000 | 1,024 | 1 KB (kibibyte) |
| 100000000000000000000 | 1,048,576 | 1 MB (mebibyte) |
Walking Through a Text to Binary Conversion
Binary conversion is easiest when you follow one character at a time. The text "Hi!" has three ASCII characters, so it becomes three bytes. Each byte is padded to eight bits so the decoder can recover the original boundaries.
| Character | ASCII Decimal | Binary Byte | Notes |
|---|---|---|---|
| H | 72 | 01001000 | 64 + 8 gives decimal 72 |
| i | 105 | 01101001 | Lowercase letters sit in the 97 to 122 range |
| ! | 33 | 00100001 | Punctuation is part of the ASCII table too |
Put together, "Hi!" becomes 01001000 01101001 00100001.
Binary to Text Input Rules
Use groups of eight
One ASCII character is one byte, so each binary group should contain eight digits. A seven-digit value may be valid mathematically, but byte output is usually padded to eight.
Separate bytes
Spaces make the byte boundaries explicit. New lines are fine too because the converter splits on whitespace before decoding each byte.
Keep only 0 and 1
Characters such as commas, quotes, or prefixes like 0b should be removed before decoding. They are notation helpers, not part of the byte.
Expect ASCII output
This tool reads each group as a single character code. Multi-byte UTF-8 sequences need a byte-aware decoder if you want accents, Arabic, Chinese, or emoji.
Binary, Decimal, Hex, and Octal
Developers often switch between number bases because each one makes a different pattern easier to read. Binary shows every bit. Hex groups those bits into compact blocks. Octal groups them into threes, which is why Unix permissions are often written as 755 or 644.
| Base | Digits | Example for Decimal 65 | Common Use |
|---|---|---|---|
| Binary | 0 and 1 | 01000001 | Bit flags, masks, teaching byte layout |
| Octal | 0 to 7 | 101 | Unix permissions and some legacy formats |
| Decimal | 0 to 9 | 65 | Human-facing numbers and ASCII tables |
| Hex | 0 to 9, A to F | 41 | Memory dumps, colours, hashes, byte streams |
Where Binary Shows Up in Real Work
Flags and permissions
A bit can mean on or off, true or false, allowed or denied. File permissions, feature flags, and compact protocol options often pack several yes/no settings into one number.
Network packets
Protocol documents describe bytes, bit ranges, and flags. Reading binary helps when a packet capture shows that one bit changes a request from accepted to rejected.
File signatures
Many files start with fixed byte sequences. PNG begins with a known eight-byte signature, while PDF begins with readable ASCII bytes for %PDF.
Debugging encodings
If text looks corrupted, comparing the expected bytes with the actual bytes can reveal whether the problem is ASCII, UTF-8, Windows-1252, or another encoding.
Practice Strings to Try
| Text | Binary | What It Shows |
|---|---|---|
| OK | 01001111 01001011 | Uppercase letters in the 65 to 90 range |
| ok | 01101111 01101011 | Lowercase letters differ by the case bit |
| 42 | 00110100 00110010 | Digits are characters, not the number forty-two |
| A B | 01000001 00100000 01000010 | The middle byte is a space character |
Related Tools
How to use this tool
Choose the conversion direction: Text to Binary or Binary to Text
Type or paste your input in the left panel
See the instant conversion in the right panel and copy
Common uses
- Learning how computers represent text data
- Converting text for CTF challenges and puzzles
- Understanding ASCII encoding for programming courses
- Debugging binary data in network protocols
Share this tool
Frequently Asked Questions
What is binary?
How does text become binary?
Is my data sent to a server?
Why are the binary numbers 8 digits long?
What about emoji and non-English characters?
How do spaces between binary bytes work?
What's the difference between binary and Base64?
Can I convert binary back to text?
What are some real-world uses of binary?
How do computers add in binary?
What's a bitwise operation?
Why do programmers need to know binary?
Results are for general informational purposes only and should be checked before use. They are not professional advice. See our Disclaimer and Terms of Service.