Binary Text Converter

Convert text to binary code (0s and 1s) and decode binary back to readable characters instantly.

binary text encoder decoder binary to text text to binary ascii convert 0b
Free Client-Side Private
🔒 This tool runs entirely in your browser — your files are never uploaded to any server.

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

  1. Select the Text → Binary tab.
  2. Paste or type your text in the input box.
  3. Choose a byte separator (space is the most common; "none" produces a continuous string).
  4. Optionally enable the 0b prefix to prepend 0b before each byte (e.g. 0b01001000).
  5. Click Convert to Binary.

Binary → Text

  1. Select the Binary → Text tab.
  2. Paste your binary string — space-separated bytes, delimited, or continuous.
  3. 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).

Report an issue