Binary ↔ Text

Converts text to 8-bit binary and back (UTF-8).

Binary ↔ Text converts text into 8-bit binary and back, using UTF-8 byte encoding. Encode mode turns each character into space-separated bytes, while decode mode reads space-separated binary groups and reconstructs the original text. It's handy for learning how characters map to bits, debugging byte-level data, or preparing simple binary representations.

Common uses

  • Encode a string into space-separated 8-bit binary to see its UTF-8 byte representation
  • Decode a binary sequence back into readable text
  • Inspect how multi-byte characters (emoji, accented letters) are encoded in UTF-8
  • Teach or learn the relationship between characters, bytes, and bits
  • Verify or hand-craft binary payloads while debugging low-level data

FAQ

Is my data sent to a server?

No. The conversion runs entirely in your browser using the standard TextEncoder and TextDecoder APIs. Nothing you type is uploaded or stored on a server.

What binary format does it produce?

Encoding outputs each byte as exactly 8 bits, zero-padded, with bytes separated by a single space (for example 'A' becomes 01000001).

How should input be formatted when decoding?

Provide binary digits in groups separated by whitespace. Each group must contain 1 to 8 of only the characters 0 and 1; anything else triggers an 'Invalid binary byte' error.

How are non-ASCII characters like emoji handled?

Text is encoded as UTF-8, so characters outside ASCII produce multiple bytes. For example a single emoji becomes several space-separated 8-bit groups.

Can I decode binary that isn't separated by spaces?

No. Decoding splits on whitespace, so a continuous string of bits won't be parsed into bytes. Separate each byte with a space.

Related tools

  • Base32 Encode / Decode
  • Base58 Encode / Decode
  • Base62 Encode / Decode
  • Base64 Encode / Decode
  • Base64URL Encode / Decode
  • Char Codes
  • Hex ↔ Text
  • HTML Entity Encode / Decode