Toolmingo

Text to Binary

Convert text to binary and binary back to text (UTF-8), with space-separated bytes. Free and in-browser.

Plain text
Binary

How to use the Text to Binary

  1. 1Paste or type your text into the input box to encode, or paste a string of 1s and 0s to decode.
  2. 2Set the direction: Text to Binary to encode, or Binary to Text to decode.
  3. 3Keep the default single-space separator between 8-bit groups so the output stays readable and easy to edit.
  4. 4Click Convert to run the encoding or decoding instantly in your browser, with nothing sent to a server.
  5. 5Read the result in the output panel, then click Copy to send it to your clipboard or Download to save it as a .txt file.
  6. 6Use Swap to flip input and output for a quick round-trip check, or Clear to reset both fields.

About the Text to Binary

Text to Binary is a two-way converter that turns readable text into binary and decodes binary back into characters. Type or paste text and the tool encodes each character as UTF-8 bytes, printing every byte as an 8-bit group separated by a space: the capital letter "A" becomes 01000001, a space becomes 00100000, and the "€" sign expands to three bytes (11100010 10000010 10101100) because UTF-8 uses one to four bytes per character. Decoding reverses this exactly: it removes whitespace, slices the stream into 8-bit chunks, rebuilds the byte values, and reassembles the original UTF-8 text.

Every conversion runs locally in your browser with JavaScript. Your text is never uploaded, logged, or sent to a server, so it is safe to paste API keys, private notes, or unreleased code snippets. It also means results appear instantly and the page keeps working offline once loaded.

The tool earns its place in a handful of real workflows. Students learning how computers store text can watch ASCII and Unicode map directly to bits. Programmers chasing an encoding bug can confirm whether a suspicious character is the byte they expect, or catch a multibyte sequence that got mangled somewhere in a pipeline. Teachers can generate binary puzzles for lessons, and puzzle or ARG designers can hide short messages inside a run of ones and zeros.

Two things trip people up. First, output is UTF-8, so accented letters, emoji, and non-Latin scripts expand into several 8-bit groups per visible character. That is correct behavior, not a bug. Second, when decoding, keep the bit count a clean multiple of eight. A single missing or extra bit shifts every byte boundary after it and turns the rest of the output into garbage, which makes a stray digit surprisingly easy to spot: the text reads fine up to one point, then collapses. Spaces between bytes are optional for decoding but keeping them makes long strings far easier to scan and edit by hand. Being able to inspect binary directly demystifies how text actually lives inside a machine.

Frequently asked questions

Why does one emoji or accented letter produce more than 8 bits?

Because the output is UTF-8, not plain ASCII. Characters like A-Z, digits, and common punctuation fit in one byte, but emoji, accented letters, and non-Latin scripts need two to four bytes each. The tool prints every byte as its own 8-bit group, so a single visible character can legitimately span 16, 24, or 32 bits.

Do I need spaces between the bytes when decoding?

No. The decoder strips whitespace and splits whatever remains into 8-bit chunks, so 01000001 01000010 and 0100000101000010 both decode to 'AB'. Spaces are optional as long as the total bit count is a multiple of eight; keeping them just makes long binary strings easier to read and edit by hand.

What happens if my binary length isn't a multiple of 8?

The trailing bits can't form a complete byte, so the tool flags an error rather than guessing. UTF-8 works in whole bytes, so each group must be exactly 8 bits. If your text decodes fine up to a certain point and then turns to garbage, look for a single missing or extra digit before that spot, since one stray bit shifts every byte boundary after it.

Is my text sent anywhere when I convert it?

No. The entire conversion happens in your browser with JavaScript. Nothing is uploaded, stored, or logged, and the page keeps converting even after you go offline. That makes it safe for private notes, credentials, or code you haven't published.

Can I decode binary that uses 7-bit ASCII instead of 8-bit bytes?

This tool expects 8-bit bytes, which is the standard for UTF-8 (a leading zero is added, so 'A' is 01000001, not 1000001). If your source produced bare 7-bit groups, pad each one to 8 bits with a leading zero first, otherwise the byte boundaries won't line up and the output will be scrambled.

Related tools

Browse all free online tools in Generators and more.

Frequently asked questions

Does it support full Unicode?+

Yes — text is encoded as UTF-8 bytes and decoded back correctly.

Related tools