Binary Encoder / Decoder

Encode UTF-8 text to space-separated 8-bit binary groups or decode binary back to text.

  • Runs locally in your browser
  • No upload required

Try it

Processed entirely in your browser; nothing is uploaded.

Result
01001000 01101001

Supported formats

Input
text
Output
text

Privacy

Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.

Processing
In your browser
Privacy level
Browser only

Encoded 2 character(s) of UTF-8 text to 2 binary byte(s).

How it works

  • Read the input as UTF-8 bytes.
  • Rendered each byte as an eight-character binary group.
  • Joined the groups with single spaces.
  • Binary is an encoding, not encryption; it provides no confidentiality.
  • Each group represents one eight-bit byte, so a Unicode character uses several groups.

Methodology

  1. Encode by rendering every UTF-8 byte as an eight-character binary group, left-padded with zeros.
  2. Decode by splitting on whitespace, validating each group as one to eight binary digits, and parsing it to a byte.
  3. Reject malformed groups instead of guessing a value.

Usage

  1. Choose encode or decode.
  2. Paste text to encode, or binary groups to decode.
  3. Read the result; use Copy result to reuse it.

Examples

These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.

Encode ASCII

jsonSelect to copy
{
  "mode": "encode",
  "value": "Hi"
}

Encode Unicode

jsonSelect to copy
{
  "mode": "encode",
  "value": "café 🌍"
}

Decode binary

jsonSelect to copy
{
  "mode": "decode",
  "value": "01001000 01101001"
}

Limitations

Where binary is used

Eight-bit binary groups make bit-level structure visible, which is useful when teaching encoding or inspecting a protocol. For practical work, hex or Base64 represent the same bytes far more compactly.

Frequently asked questions

Why is the output so long?
Binary is the least dense common encoding: every byte takes eight characters, so text expands by roughly eight times.
Why does a character span several groups?
The tool encodes UTF-8 bytes, and a non-ASCII character uses two to four bytes, so it becomes two to four groups.

Sources

  1. ECMA-262: ECMAScript Language Specification — TC39
  2. RFC 4648: The Base16, Base32, and Base64 Data Encodings — IETF