“We noticed you may be using an ad blocker. Please consider turning it off for this site.”“We noticed you may be using an ad blocker. Please consider turning it off for this site.”
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
Add your text. Type or paste into the box titled Enter or paste Text to convert, where the placeholder reads Paste Your Text Here... Text you type or paste has no word limit. Any word limit shown above the box applies only to a chosen .txt file that you convert without editing, as the tip below explains.
Optional file. Upload File previews a .txt document in the box.
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.
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 that text and the word limit applies: over it, the page says The string must not be greater than 100 words (the number is 1,000 with a free account) and converts nothing. Change the text first, even by one character, 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.
Text
Bytes
Binary
A
1
01000001
Hi
2
01001000 01101001
é
2
11000011 10101001
中
3
11100100 10111000 10101101
Grinning face emoji
4
11110000 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 most 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, and the separator is always a single space.
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. Very large pastes take time: about a second for 250,000 characters and several seconds for a million two-byte characters in our tests, depending on your device.
A chosen file you convert without editing is converted on 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, and a Windows style line break (carriage return plus line feed) also counts as that one byte, from a paste or from a file. Text converted on our server, which means a chosen file you did not edit, has its leading and trailing whitespace trimmed, so a line break at the very end of a file is left out. Text converted in your browser keeps every space and line break exactly as it is in the box.
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 in desktop Chrome no request was sent while it converted. A .txt file you choose with Upload File is different if you convert it without editing it: the text goes to our server, and the word and byte limits apply. Edit the text first and your browser converts it instead.
Is there a limit on how much text I can convert?
Text you type or paste has no word limit, though a very large paste can take several seconds. A chosen .txt file that you convert without editing is 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. A Windows style line break in pasted text or in a chosen file also counts as that one byte. Your browser keeps leading and trailing spaces and line breaks of typed or pasted text, while a file converted on our server is trimmed at both ends.
We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. You consent to our cookies if you continue to use our website.
Install SEO Site CheckerFree SEO tools - always in your pocket.