Free Text to Binary Converter

Type or paste text, press Convert to Binary and get 8-bit groups back. Accents and emoji are converted as UTF-8 bytes. Free, no account needed.

Words Limit/Search : 100
Upto 1,000 Words Sign up free

Upload File

What Is a Text to Binary Converter?

Quick answer: A text to binary converter turns each character into bytes and writes each byte as eight 0s and 1s. Paste your words above, press Convert to Binary, and copy the binary string it prints.

Students use this text to binary code translator for homework, developers for debugging encoding, and others for a secret message in ones and zeros. English to binary or string to binary, the binary representation is the same. Try it with your own text.

How to Convert Text to Binary With This Tool

  1. Add your text. Type or paste into the box titled Enter or paste Text to convert, where the placeholder reads Paste Your Text Here...
  2. Optional file. Upload File previews a .txt document in the box.
  3. Press Convert to Binary. Pasted or typed text is converted in your browser with no length cap, as 8-bit groups split by single spaces.
  4. Take the output. Copy to Clipboard or Save as TXT, which downloads text-to-binary.txt.

Tip: a chosen .txt file is previewed in the box. If you press Convert without editing, our server converts the file and the word limit applies. Change the text first and it converts in your browser as a paste.

Text to Binary Examples

Each row was checked against Python's UTF-8 encoder. Each group is one byte, padded with leading zeros to 8 bits.

TextBytesBinary
A101000001
Hi201001000 01101001
é211000011 10101001
中311100100 10111000 10101101
Grinning face emoji411110000 10011111 10011000 10000000

Hello is five bytes, the 8-bit binary of each letter: 01001000 01100101 01101100 01101100 01101111. That is 40 binary digits plus 4 spaces, so 44 characters of output. Compare in the box.

ASCII vs UTF-8: Why Some Characters Give More Than 8 Bits

RFC 20, the ASCII format covers 128 characters in 7 bits, so the top bit of an ASCII byte is 0. RFC 3629, the UTF-8 specification is a variable-length encoding that stores each Unicode code point in one to four bytes and matches ASCII for the first 128.

Letters and digits take 1 byte, é 2, most CJK characters 3 and a single emoji 4. A flag is two regional-indicator symbols, 8 bytes. A family of three is three emoji plus two invisible zero-width joiners, 18 bytes. Decode a group with the Binary to Decimal converter, or go the other way with the Decimal to Binary converter. There is no encoding switch.

Limits, Line Breaks and Uploads

The browser's TextEncoder API handles pasted text, and in desktop Chrome, converting a paste sent no request to our server. A big paste is slow: 250,000 characters took about 1.4 seconds, a million two-byte ones about 13.

A chosen file goes to our server: 100 words as a guest, 1,000 signed in, and at most 200,000 bytes. That cap counts bytes, not characters. A line break is 00001010 and a space is 00100000. An uploaded file has its leading and trailing whitespace trimmed.

Related Converters

Other ways to move between text and bytes:

Last updated

Frequently Asked Questions

Frequently Asked Questions (FAQs) is a list of common questions and answers provided to quickly address common concerns or inquiries.

How do I convert text to binary by hand?

Look up the character code, write it in base 2, then pad it to 8 bits. The letter A is 65, which is 1000001, so it becomes 01000001. For accents take the UTF-8 bytes first. In Python, ' '.join(format(b,'08b') for b in s.encode()) does the whole string.

Why does one character give more than one group of 8 digits?

Because UTF-8 stores each character in one to four bytes, and every byte prints as its own group. An accented e gives 11000011 10101001, two groups, and a grinning face emoji gives four. Leading bytes start 110, 1110 or 11110, and continuation bytes start 10.

Is my text uploaded when I press Convert to Binary?

Not for typed or pasted text. Your browser does that work with TextEncoder, and in our tests no request was sent. A .txt file you choose with Upload File is different: it is sent to our server, and the word and byte limits apply to it.

Is there a limit on how much text I can convert?

Pasted text has no cap, though a very large paste can take seconds to tens of seconds. Uploaded files are limited to 100 words as a guest and 1,000 words with a free account, never above 200,000 bytes. That cap counts bytes, so non-English text hits it sooner.

What is the difference between ASCII binary and UTF-8 binary?

For the first 128 characters there is none, because UTF-8 was designed to match ASCII there. UTF-8 then adds multi-byte sequences for everything else. This tool always uses UTF-8, so plain English gives exactly the ASCII bits, while accents and emoji give extra groups.

How are spaces and line breaks converted?

A space becomes the byte 00100000 and a line break becomes 00001010, one byte, because the box treats Enter as a single line feed. Output groups are joined by single spaces, so a gap between words shows up as a 00100000 group between the letter bytes.
Share on Social Media: