Text to Binary Converter
Type or paste text to see its binary code, one 8-bit byte per character, or switch to Binary to Text mode to turn binary back into readable text. It works on the UTF-8 bytes, so plain letters, accented characters, and emoji all convert and round-trip correctly. The output and a character count update live as you type.
How to convert text to binary
- Leave the toggle on 'Text to Binary', or switch it to 'Binary to Text' to go the other way.
- Type or paste into the input box, labelled Text in encode mode and Binary in decode mode.
- For decoding, enter 8-bit groups separated by spaces, like 01000001 01000010.
- Read the converted result in the box below, which refreshes on every keystroke.
- Press Copy to grab the output; a red message appears if the binary you pasted is not valid.
Examples
Encode a word to binary
Hi
01001000 01101001
Encode text with punctuation
Hi!
01001000 01101001 00100001
Decode binary back to text
01000001 01000010
AB
Frequently asked questions
How does text become binary?
Each character is first encoded to its UTF-8 byte value, and each byte is written as an 8-digit binary number. The bytes are joined with a single space by default, so the output stays easy to read and to split apart again.
Why is every byte exactly 8 bits long?
A byte holds values from 0 to 255, which always fit in eight binary digits. Padding shorter values with leading zeros keeps every byte the same width, which is what lets the decoder chop the stream back into bytes unambiguously.
What is the difference between ASCII and UTF-8?
ASCII covers basic English with one byte per character for codes 0 to 127. UTF-8 extends that to every language and emoji, using one byte for ASCII characters and two to four bytes for the rest. This tool uses UTF-8, which is fully backward compatible with ASCII.
How do I turn binary back into text?
Switch to Binary to Text mode and paste your binary. The tool splits the input on any run of whitespace, reads each group as one 8-bit byte, and decodes the bytes as UTF-8 to reconstruct the original text.
What counts as valid binary for decoding?
Every whitespace-separated group must be exactly eight characters of 0s and 1s, and the resulting bytes must form valid UTF-8. Anything else, such as a 7-digit group or a stray letter, shows an 'Invalid binary' message instead of output.
Do emoji and accented letters work?
Yes. Characters outside basic ASCII take more than one byte in UTF-8, so they produce several 8-bit groups. They round-trip exactly, meaning encoding then decoding returns the original character.
Can I use a separator other than a space between bytes?
In the web tool the bytes are joined with a single space. The underlying API accepts a custom separator when encoding, and decoding accepts groups split by any whitespace, including newlines and tabs.
Is my text uploaded anywhere?
No. Encoding and decoding both run entirely in your browser using the built-in text encoder, so nothing you type is ever sent to a server.
Learn more
- How text becomes binary: characters, bytes, and UTF-8
Follow a character from keystroke to 8-bit binary: code points, UTF-8 bytes, why padding matters, and how decoding reverses each step.
Related tools
Binary to Decimal
Convert binary to decimal online. Paste any binary number, with or without spaces, and get the exact base-10 value instantly. Runs in your browser.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE. Free and private.
Acronym Generator
Turn any phrase into an acronym from the first letter of each main word. Skip small words like the and of, keep them, or add dot separators.
Add Line Numbers
Add line numbers to any text online. Set the start value, step, and separator, pad numbers to align, and copy or download the result. Free and private.
AI Sentiment Analyzer
Analyze the sentiment of any text with AI in your browser. Paste a review or comment, get a positive or negative score plus a per-sentence breakdown.
AI Text Summarizer
Summarize any text with AI, right in your browser. Paste an article, pick a length, and get a short abstractive summary. Nothing is uploaded.