To convert text in binary code, encode the text as UTF-8 and write every byte as exactly eight zero-padded binary digits separated by one ordinary space. Reversing the process means supplying those byte groups in the same strict format and decoding them as UTF-8.
Binary becomes meaningful only when its encoding and grouping are defined. The Text to Binary Converter provides both directions: it converts Unicode text into spaced UTF-8 byte groups and decodes strictly formatted groups back into Unicode text.

What the binary output contains
Text is not converted directly into one undifferentiated block of binary. First, UTF-8 assigns a sequence of bytes to the Unicode text. The converter then displays each byte in base 2 using exactly eight digits. Leading zeros are retained so that every group has the same length, and one ordinary space separates neighboring groups.
The number of bytes depends on the character. UTF-8 does not treat every visible character as one byte, nor does it render a Unicode code-point number directly in binary. It encodes the source into its actual byte sequence.
| Character | UTF-8 bytes | Binary representation |
|---|---|---|
| A | 1 | One 8-bit group |
| é | 2 | Two 8-bit groups |
| € | 3 | Three 8-bit groups |
| 😀 | 4 | Four 8-bit groups |
This is why the binary output is longer than the visible input for many accented characters, CJK text, symbols, and emoji. The result represents encoded bytes rather than glyph pixels, abstract bits without grouping, JavaScript UTF-16 code units, or a direct base-2 rendering of each Unicode scalar value.
Each eight-digit group therefore represents one byte. The spaces are separators that make the byte boundaries visible; they are not extra payload bits.
Convert text into spaced UTF-8 bytes
The encoding mode produces a single binary string made from fixed-width byte groups. Use it when another part of your workflow explicitly expects UTF-8 bytes rather than a character code, hexadecimal value, Base64 string, or file format.
- Open the converter and choose Text to UTF-8 binary.
- Enter the Unicode text you want to encode. Keep the text, punctuation, spaces, and line breaks exactly as they should appear in the source string.
- Select Convert, verify the displayed byte count, and copy the result only after checking it.
The encoder accepts up to 20,000 UTF-16 code units. That limit is based on the source string’s code-unit count, not simply the number of visible characters. Encoding uses the browser’s standards-based TextEncoder implementation, as described in the TextEncoder API documentation.
Worked example: The conversion formula is UTF-8 byte value → eight binary digits → separate adjacent bytes with one space. For the text “Hi,” H becomes byte value 72 and therefore 01001000; i becomes byte value 105 and therefore 01101001. The final result is 01001000 01101001 00101100.
Encoding takes place in the current browser tab. The input and output stay in that tab and are not sent to Lizely. Local processing can be useful when handling text you do not want uploaded, although it does not make the resulting binary secret or resistant to decoding.
Decode binary groups into Unicode text
The reverse mode is available when the input already follows the exact spaced, eight-bit format. It is intended for checking byte strings that are supposed to contain UTF-8.
- Choose UTF-8 binary to text.
- Paste groups containing exactly eight binary digits each, with exactly one ordinary space between neighboring groups.
- Select Convert and verify the decoded text before copying it elsewhere.
The decoder accepts up to 180,000 serialized input characters. Its input limit applies to the complete string of binary groups and their spaces, rather than to the number of decoded Unicode characters.
The decoder uses fatal UTF-8 validation instead of replacing malformed data. Invalid, overlong, surrogate, and out-of-range sequences produce an error rather than silently changing the bytes or inserting the Unicode replacement character. The TextDecoder API documentation explains the fatal decoding option used for this behavior.
A string can have perfectly separated eight-digit groups and still be invalid UTF-8. For example, a lone leading byte without its required continuation bytes is structurally grouped but cannot represent valid text. The decoder rejects that input instead of guessing which bytes were intended.
Preserve spaces and line content exactly
The separator and grouping rules are part of the data contract. The accepted binary format follows the pattern [01]{8}( [01]{8})*: one eight-digit group, followed by zero or more groups that each have exactly one ordinary space before them.
The decoder does not pad, trim, guess, or silently discard malformed input. It rejects the following:
- Prefixes such as 0b
- Commas, tabs, or other separator characters
- Multiple spaces between groups
- Seven-bit or nine-bit groups
- Leading or trailing whitespace
- Any character other than 0 or 1
Because formatting is significant, copy the complete output without changing its separators. Chat clients and rich-text editors may collapse spaces or insert line breaks, either of which can make otherwise valid binary fail strict decoding.
- Copy every binary digit and every required separator.
- Prevent an editor from inserting visual line breaks into the copied string.
- Check that the destination has not collapsed or added ordinary spaces.
- Do not add a binary prefix or substitute a different separator style.
- Decode the copied result before relying on it in another program.
Store or transmit the result only in a system that preserves ordinary spaces and line content exactly. For protocol, source-code, or forensic work, identify the data as “spaced UTF-8 binary bytes” and verify the actual byte sequence against the specification and destination system rather than relying on how a font displays it.
Grouping errors and UTF-8 errors are different
The converter can identify two distinct stages of a failed reverse conversion. First, it checks the binary string’s structure. Second, it checks whether the resulting bytes form valid UTF-8.
- A formatting error means the input does not meet the required eight-digit, single-space grouping rule.
- A UTF-8 validation error means the groups are structurally correct, but their byte sequence is malformed, overlong, contains a surrogate, or falls outside the valid range.
Fix formatting problems first. Once every group is exactly eight digits and separated correctly, a remaining error concerns the encoded bytes themselves. The decoder does not repair either problem by trimming characters, changing groups, or substituting replacement text.
This distinction matters when checking a copied result. A missing separator may create an invalid group, while a correctly separated group may still contain a byte sequence that was never valid UTF-8.
Encoding and decoding at a glance
The two modes accept different inputs, produce different outputs, and use different input limits.
| Mode | Accepted input | Output | Limit or error behavior |
|---|---|---|---|
| Text to UTF-8 binary | Unicode text | Zero-padded 8-bit groups separated by one space | Accepts up to 20,000 UTF-16 code units and reports the byte count |
| UTF-8 binary to text | Strictly formatted 8-bit groups | Decoded Unicode text | Accepts up to 180,000 input characters and rejects malformed grouping or UTF-8 |
These input budgets use different units. Encoding is limited by the source string’s UTF-16 code-unit count, while decoding is limited by the length of the complete serialized binary input. The decoder’s character limit therefore does not imply a fixed number of decoded characters because the byte length of Unicode text varies.
Verify a round trip
A practical check is to encode the source, copy the binary output, decode that copied output, and compare the result with the original text. This verifies that the particular copy you tested still follows the required byte and grouping format.
- Confirm that the displayed byte count is plausible for the source text.
- Copy the binary output without adding prefixes, line breaks, or extra spaces.
- Paste it into the strict binary-to-text mode and select Convert.
- Compare the decoded result with the original text when exactness matters.
If decoding fails, check the grouping and separators before investigating UTF-8 validity. If the copied string has the expected groups but still fails, the issue is in the byte sequence rather than the spacing.
A successful comparison confirms that the copied binary decodes back to the same text you compared. This is more dependable than silently repairing malformed input because the converter refuses to guess which spaces, bits, or bytes were intended.
Use binary conversion for the right task
This converter performs encoding, not encryption. Binary output contains the same information as the original text and provides no secrecy, authentication, integrity checking, compression, or password protection. Anyone with valid UTF-8 bytes can decode them.
Its purpose is also deliberately narrow. It does not parse numeric binary values, machine instructions, files, images, Base64, hexadecimal, Morse code, or custom legacy character sets. Use a corresponding converter when one of those formats is the actual requirement.
If a protocol expects a particular encoding, state both the encoding and the grouping rule instead of sending an unexplained string of zeros and ones. If your goal is to inspect a font, extract text from an image, translate binary numbers, or decode a file in another format, choose the tool built for that task rather than treating ordinary binary groups as a universal format.
If you're weighing options, Text to Hexadecimal Translator: Syntax and Limits covers this in detail.
If you're weighing options, Does Unicode Code Point Converter Show UTF-8 Bytes? covers this in detail.