Text to Binary Converter
Convert text to its 8-bit binary representation and back, space-separated byte by byte.
How this tool works
Choose a direction
Text to binary, or binary back to text.
Enter your input
Any text to encode, or space-separated 8-bit binary bytes to decode.
See the byte-by-byte result
Each byte is shown as an 8-digit binary group, space-separated for readability.
Copy the output
The full binary string or decoded text, ready to copy.
Quick facts
- Category
- Encoders & Decoders
- Best for
- A classroom demonstration of binary encoding, or a binary-based puzzle or cipher
About this tool
Convert text into its binary representation - each byte shown as an 8-digit sequence of 0s and 1s, space-separated for readability - or decode a string of space-separated binary bytes back into text. This works at the same byte level as utf8-encode-decode, but shows the raw bits of each byte directly rather than hex or decimal, which is the representation most people picture when they think of "binary" and is useful for teaching or demonstrating how text is actually stored as bits. Multi-byte UTF-8 characters (accented letters, emoji, and other non-ASCII text) correctly expand into multiple 8-bit bytes using the browser's native TextEncoder, exactly as utf8-encode-decode does - so an emoji shows up as three or four separate 8-bit groups rather than one, reflecting how it's genuinely stored. Decoding validates that the input is well-formed - each token must be 1-8 binary digits representing a valid byte, and the resulting byte sequence must form valid UTF-8 - with a specific error if either check fails. Useful for a classroom demonstration of binary encoding, a puzzle or cipher involving binary text, or just satisfying curiosity about what a piece of text actually looks like in bits. Runs entirely client-side.
Why use this tool
The literal bit representation
Shows actual 0s and 1s, the representation most people picture as "binary," not hex or decimal.
Correct multi-byte handling
Emoji and accented characters expand into multiple 8-bit bytes, matching how UTF-8 really stores them.
Validated decoding
Malformed byte tokens or invalid UTF-8 sequences produce a specific error, not silent garbage.
Space-separated readability
Each byte is clearly delimited rather than run together as one long unbroken bit string.
Frequently asked questions
Both tools work at the same UTF-8 byte level, but display the bytes differently: utf8-encode-decode shows each byte as hex or decimal, while this tool shows the literal binary digits (0s and 1s) that make up each byte. Binary is the more visual, intuitive representation for teaching or demonstration purposes, while hex is more compact and common in actual debugging contexts - pick whichever representation fits what you're doing.
UTF-8 is a variable-width encoding - plain ASCII characters (English letters, digits, basic punctuation) take exactly 1 byte, but characters outside that range take 2 to 4 bytes. An accented letter like "é" typically becomes two 8-bit binary groups, and many emoji become four, which is exactly why a piece of text with special characters produces more binary groups than it has visible characters.
The tool checks two things: that each space-separated token is a valid 8-bit binary byte (only 0s and 1s), and that the resulting byte sequence forms valid UTF-8 once decoded. If either check fails - a stray non-binary character, or a byte sequence that doesn't correspond to any valid UTF-8 text - a specific error explains which part failed, rather than showing corrupted or partial output.
Explore more free tools
Formatters, converters, validators, and generators - all free and running entirely in your browser.
Browse more tools