You are offline. Tools you have opened before keep working.
Text to binary converter
Type any text and see it as binary code, eight bits per byte. Letters from every language and emoji are encoded as UTF-8, and you can switch to hex, decimal or octal codes.
Free and private. Everything runs in your browser, nothing is uploaded.
Report a problem
How it works
Type the numberEnter the value in the input box. Spaces and underscores between digits are ignored.
See the resultThe converted value appears right away, together with the other common bases.
Copy itPress Copy next to the result you need.
How text becomes binary
Computers store text as numbers. In UTF-8, the encoding used by almost every website, the letters A to Z, digits and basic punctuation take one byte each, the same values as ASCII: H is 72, which is 01001000 in binary. Accented letters such as é take two bytes, many Asian characters three and emoji four.
The converter writes each byte as eight binary digits, separated by spaces, without separators or with commas. The status line shows how many characters and how many bytes the text has, which explains why a short message with emoji can be longer than expected. Switch the code base to see the same bytes in hex or decimal.
Frequently asked questions
Is this ASCII or UTF-8?
UTF-8. For plain English letters, digits and punctuation the result is identical to ASCII. Other characters, which ASCII cannot store, use two to four bytes.
How do I convert decimal to binary by hand?
Divide the number by 2 again and again and write down the remainders, then read them from the last to the first. For 13: 13, 6, 3, 1 give remainders 1, 0, 1, 1, so 13 is 1101.
Why does 0.1 never end in binary?
Because 1/10 cannot be written as a sum of powers of two, just as 1/3 never ends in decimal. The repeating part 0011 is shown in brackets.
What is the largest number I can convert?
Numbers with up to 20,000 digits are accepted. The results are exact, there is no rounding.