Skip to content

Text to Binary

Convert text to 8-bit binary.

Input
Output

No result

About Text to Binary

This converts each character into the eight binary digits of its UTF-8 byte, separated by spaces — so H becomes 01001000 and a Chinese character becomes three such groups, because it occupies three bytes in UTF-8. The space separator is what makes the result readable; without it the output is one indistinguishable river of ones and zeros.

Eight bits per byte is the convention that makes the output self-describing. A reader can count the groups and know exactly how many bytes were encoded, which is not true of a run-together bit stream where the boundaries have to be inferred from context.

The most common real use is not secrecy but verification. When a character renders as a question mark or a box, converting it to binary confirms which byte actually arrived — a mismatch between the expected byte and the one present locates the encoding problem immediately.

Byte grouping is fixed at eight bits and is not settable, so formats that lay out bits differently are out of scope here: there is no seven-bit ASCII variant, no sixteen-bit word grouping, and no output that runs the groups together without spaces. Nothing is transformed beyond the character-to-bits mapping either — the text is not upper- or lower-cased, and no checksum, length prefix or framing is added, so the result is a representation rather than a transmission format. The page reports only the bits themselves; it does not count the bytes for you, and it will not accept binary back as input to restore the text, which the paired decoder handles separately.

How to use Text to Binary

  1. 1 Type or paste the text whose bytes you want as binary.
  2. 2 Each character is shown as 8 binary digits per byte, space-separated, and the result updates as you type.
  3. 3 Copy the output for use in documentation, test fixtures or encoding debugging.

Frequently asked questions

Why does a single character sometimes produce more than 8 bits?

Because that character is not a single byte in UTF-8. Chinese, Japanese and Korean characters take three bytes, and most emoji take four, so they appear as three or four groups of eight bits rather than one.

Can I convert the binary back to text?

Yes — use the Binary to Text tool, which reads space-separated 8-bit groups and reconstructs the original characters. The pair round-trips exactly, provided the spacing is preserved.

What happens to spaces and punctuation?

They are encoded like anything else, since a space is a character with its own byte value — 00100000. Nothing is filtered out, so the output is a faithful representation of the entire input.

Is this a way to hide a message?

Not meaningfully. Binary is trivially reversible and offers no secrecy whatsoever; anyone who recognizes the format can read it. If confidentiality matters, use encryption rather than an alternative representation.

Free, online, and private

Free to use

Text to Binary is completely free. There is no account to create, no login, and no hidden charge or usage limit.

Runs online in your browser

It is a free online tool that runs entirely in your browser. Nothing to download or install — open the page and start using it right away.

Your data stays private

All processing happens locally on your device. Your input is never uploaded, stored, or tracked, so it never leaves your browser.

How Text to Binary behaves in detail

These are the specifics of this implementation — the exact ranges, defaults and fixed settings you are working with.

Parameter Value
Bits per group 8, zero-padded on the left
Byte source UTF-8 via TextEncoder, so output length follows the byte length
Multibyte example one CJK character produces three groups; an emoji produces four
Separator a single space between groups — no commas and no line breaks
Group width eight bits plus a separator per boundary, so just over eight characters per input byte

Compiled from the implementation of this tool and checked against it by itoolnet.

What Text to Binary does not do

Knowing the edges of a tool saves more time than another list of its features. These are the cases where it will not do what you might expect.

  • Input is measured as UTF-8, so a character outside ASCII costs more than one group and the displayed length says nothing about the character count. A short line of non-Latin text becomes a much longer binary line.
  • Each group is followed by its own space, so the text expands to roughly nine characters per byte and there is no option to emit one continuous bit string — neither for compactness nor to match a hardware-style bit pattern.
  • The granularity is always one UTF-8 byte. There is no setting for 16-bit or 32-bit words and no bit-order option, so a value that should read as one big-endian word comes out as its individual bytes.

Tested and documented by itoolnet, the team that builds and maintains this site.

Share & embed this tool

Writing a guide or article? You are welcome to link to Text to Binary with the snippet below. It is free, runs entirely in your browser, and needs no signup.