Shard Tools

Text to Binary

Convert text to binary in your browser.

Maintained by Roshan.

Use Text to Binary

Converts text to binary in this tab, with nothing sent anywhere.

Runs entirely on your deviceThe conversion happens in this browser tab. Nothing you type is uploaded, logged or stored, which is worth knowing for anything you would not paste into a search box.

Explore developer and data tools

Find related browser-local tools for nearby tasks without starting another search.

Browse all developer and data tools

About Text to Binary

Turning text into binary is how you see what a computer actually stores when it holds a message, and it is a staple of learning how encoding works. Each character is not a single mysterious value but a sequence of bytes, and each byte is eight bits - eight ones and zeros. The detail that most simple converters get wrong is anything beyond plain English. A letter like A fits in one byte, but an accented character or an emoji does not, and a converter that assumes one byte per character produces garbage for exactly the interesting cases. This tool encodes the text as UTF-8 first, which is the encoding the modern web runs on, so a café or a 東 becomes the correct multiple bytes rather than a broken single value.

Using Text to Binary

  1. The text is encoded to UTF-8, so every character maps to the one to four bytes it genuinely occupies rather than being assumed to fit in one.
  2. Each byte is written as eight binary digits, padded with leading zeros so every group is the same width and lines up.
  3. Bytes are separated by spaces, because an unbroken run of ones and zeros is impossible to read or to convert back.
  4. The order is the natural byte order of the UTF-8 encoding, which is what any standard decoder expects to read.
  5. Nothing is added or interpreted; the output is a faithful bit-level view of the same text.

Where text to binary helps

Learning how characters are stored

Type a single letter, then an emoji, and watch one become one byte and the other become four. That difference is the whole point of UTF-8.

Preparing a teaching example

The grouped output copies cleanly into a lesson or a slide, where the byte boundaries are visible rather than a wall of digits.

Before you use the result

Questions about Text to Binary

Why is my emoji so many digits?

Because it does not fit in one byte. UTF-8 uses up to four bytes for a character, and an emoji uses all four - thirty-two binary digits.

Can I convert it back?

Yes, with the binary to text tool, as long as the byte grouping is preserved. That is why the output is spaced.

Is this ASCII binary?

For plain English letters the bytes match ASCII, since ASCII is the first 128 values of UTF-8. Anything beyond that differs.

Does it handle spaces and punctuation?

Yes. Every character has a byte value, including the space, which is 00100000.

Related tools

Binary to Text

Convert binary back to readable text in your browser, decoding the bytes as UTF-8.

Text to Hex

Convert text to hexadecimal in your browser. Each character becomes its UTF-8 bytes in hex.

Decimal to Binary

Convert a decimal number to binary in your browser, with full precision for large values.

Caesar Cipher

Encode or decode a Caesar cipher with any shift in your browser. Negative shifts reverse the encoding.