Binary Text Converter
Convert text to binary code (0s and 1s) and decode binary back to readable characters instantly.
Convert any text to its binary representation (8-bit sequences of 0s and 1s) or decode binary back to readable text — entirely in your browser, no upload required.
How it works
Every character has a numeric code point (e.g. "A" is 65 in ASCII). This tool represents each code point as an 8-bit binary number. Eight bits cover values 0–255, handling all standard ASCII characters. Characters above 255 are shown as 16-bit groups.
Text → Binary
- Select the Text → Binary tab.
- Paste or type your text in the input box.
- Choose a byte separator (space is the most common; "none" produces a continuous string).
- Optionally enable the 0b prefix to prepend
0bbefore each byte (e.g.0b01001000). - Click Convert to Binary.
Binary → Text
- Select the Binary → Text tab.
- Paste your binary string — space-separated bytes, delimited, or continuous.
- Click Decode to Text. The tool auto-detects separators (space, hyphen, comma, dot).
Options
| Option | Description |
|---|---|
| Byte separator | Character placed between 8-bit groups: space, hyphen, comma, dot, or none |
| 0b prefix | Prepends 0b to each byte — common in Python, JavaScript, and C |
| Swap | Moves output to input and switches direction for round-trip testing |
Use cases
- Learning binary / ASCII encoding fundamentals
- Encoding short text messages as binary for puzzles or fun
- Debugging character encoding issues in text data
- CTF (Capture the Flag) / cipher challenges
FAQ
What characters are supported?
All characters up to Unicode U+FFFF. Standard ASCII (A–Z, 0–9, symbols) uses 8-bit groups; extended characters use 16-bit groups.
Does it upload my data?
No. Conversion happens entirely in your browser. Nothing is sent to any server.
What is the 0b prefix?
A common notation in programming languages (Python, JavaScript, C) to mark binary literals. For example, 0b01001000 equals decimal 72, which is the letter "H".
What separators does decode mode accept?
Space, hyphen (-), comma (,), dot (.), pipe (|), or no separator (groups of 8 bits).