Write your text the way a computer stores it
Computers keep text as numbers, and numbers as bits. Type "Hi" and you get 01001000 01101001: one group of eight bits for each letter. Paste a longer message and the whole thing is converted in a moment. Students use it to understand how text is stored, and others use it to make a message that looks like something from a spy film. Either way it is more fun than converting every letter by hand on paper.
Right for English, Bengali, emoji and more
The default UTF-8 mode converts every language and every emoji, using one byte for English letters and up to four bytes for other characters. Choose 7-bit ASCII for classic English-only exercises, or 16-bit UTF-16 units to see how text is stored in JavaScript and Windows.
How to use Text to Binary Converter
- Type or paste your text into the box.
- Choose the encoding: UTF-8 bytes (every language), 7-bit ASCII (English only) or 16-bit UTF-16.
- Set the separator, how many groups go on one line, and whether to add a 0b prefix.
- Solve the security check and press Convert to binary.
- Copy or download the binary and use the table to see which bits belong to each character.
About Text to Binary Converter
UTF-8 turns each character into one to four bytes: code points up to 127 (all English letters, digits and punctuation) take one byte, most other alphabets take two or three bytes, and emoji take four. Each byte is written as eight bits. 7-bit ASCII writes each character as seven bits and only works for the 128 ASCII characters; for any other character the tool stops and tells you which one. 16-bit UTF-16 writes every UTF-16 code unit as sixteen bits, so an emoji becomes two groups. Groups are separated by the separator you choose, and with a space or comma separator you can limit the number of groups per line. The table lists the first 100 characters with their code point and the bits used for each.
Purpose of Text to Binary Converter Tool
Use it for computer science homework, to explain how text is stored, to build binary messages for puzzles and escape rooms, to check what a string looks like at byte level when debugging encodings, and for fun greetings written in 0s and 1s.
Limitations of Text to Binary Converter
- Binary here is a way of writing the stored bytes, not encryption. Anyone can decode it with the Binary to Text Converter.
- 7-bit ASCII cannot represent Bengali, accented letters or emoji. Use UTF-8 for those.
- The table shows the first 100 characters. The copied or downloaded binary always includes everything.
- Text over 500,000 characters is refused to keep the page fast.
Privacy and data
Text to Binary Converter runs entirely in your browser. What you type or select is processed on your own device and is never sent to or stored on our server. See our Privacy Policy for details.
Frequently asked questions
How do I convert text to binary?
Paste your text, keep UTF-8, solve the security check and press Convert to binary. Each character becomes one or more groups of eight 0s and 1s.
Why does my Bengali text or emoji give more than one group per letter?
UTF-8 uses more than one byte for characters outside plain English. A Bengali letter takes three bytes and an emoji takes four, so each of them is written as several groups of eight bits.
Is the text to binary converter free and safe to use?
Yes. The text to binary converter is free to use and runs in your browser, so your text is not uploaded, stored or logged.
How do I convert text to binary with spaces between the bytes?
Set the separator to a space before you convert. Each group of eight digits is then split by a space, which makes the result easier to read.
What is the difference between UTF-8, ASCII and UTF-16 binary?
ASCII uses 7 bits per character and covers English only. UTF-8 uses one to four bytes per character and covers every language. UTF-16 uses 16-bit units.
Rate Text to Binary Converter
No ratings yet. Be the first to rate this tool.
Report a bug or give feedback
Popular tools
Morse Code to Text
Decode Morse code made of dots and dashes into readable text, with flexible separators and error marking.
Text ToolsWebpage URL to Text
Turn a web page address, pasted page source or an HTML file into clean readable text without ads and menus.
Text ToolsASCII to Text Converter
Decode decimal, hex or octal ASCII codes into text, with auto-detection, a code table, control-character names and clear errors for bad codes.
Text ToolsBinary to Text Converter
Decode binary into text as UTF-8, 7-bit ASCII or 16-bit UTF-16, with or without spaces, and find exactly what is wrong when it will not decode.
Text ToolsBMI Calculator
Work out your BMI, category and healthy weight range in metric or imperial units.
Health ToolsBullet List Generator
Turn lines, commas or sentences into a bullet, numbered or checklist, with nested levels, as text, Markdown or HTML.
Text Tools