Binary ↔ Text Converter
Convert text to binary and binary to text. Supports ASCII encoding with space-separated bytes.
Text
Binary
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) |
| 10000000000000000000000 | 1,048,576 | 1 MB (mebibyte) |
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