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
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
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
- Encode by rendering every UTF-8 byte as an eight-character binary group, left-padded with zeros.
- Decode by splitting on whitespace, validating each group as one to eight binary digits, and parsing it to a byte.
- Reject malformed groups instead of guessing a value.
Usage
- Choose encode or decode.
- Paste text to encode, or binary groups to decode.
- 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
{
"mode": "encode",
"value": "Hi"
}Encode Unicode
{
"mode": "encode",
"value": "café 🌍"
}Decode binary
{
"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
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.