Text to Binary
Convert text to binary (8-bit UTF-8 bytes) and binary back to text online. Works with letters, numbers, emoji and any language; copy or download the result.
Runs in your browser · Nothing uploaded · No sign-up
Something not working, or missing a feature? Send feedback
About the Text to Binary
The Text to Binary converter writes text as binary: each character is encoded as UTF-8 and every byte is shown as eight 0s and 1s. Switch direction to turn binary back into readable text. It works with plain English, numbers, accented letters and emoji.
Everything runs in your browser, so your input is never uploaded to a server.
How to use the Text to Binary
- Choose "Text to binary" or "Binary to text".
- Type or paste the text or the binary digits. Spaces between bytes are optional when decoding.
- Pick how bytes are separated, then copy or download the result.
Examples
Input
Hi!
Result
01001000 01101001 00100001
H is 72, i is 105 and ! is 33, each written as eight bits.
Input
01001000 01101001
Result
Hi
Common mistakes
- Binary that is not UTF-8. Decoding arbitrary bytes, such as part of an image, can fail because they are not valid UTF-8 text. This tool is for text, not for files.
Works well with the Text to Binary
- Text to Hex: see the same bytes in hexadecimal.
- Number Base Converter: convert single numbers between binary, decimal and hex.
- Base64 Encode / Decode: encode the same text as Base64.
Frequently asked questions
How do I convert text to binary?
Each character is converted to its UTF-8 bytes, and each byte is written as eight bits. For example "A" is 65, which is 01000001 in binary.
Why does a letter with an accent give two bytes?
UTF-8 uses one byte for ASCII characters and two to four bytes for everything else. "é" is two bytes, and an emoji is four.
Why do I get "multiple of 8" when decoding?
Binary text is read in groups of 8 bits. A missing or extra digit shifts every byte after it, so the tool asks you to fix the length first.
Related tools
Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case and more online. Rename variables and keys in one paste.
Remove Duplicate Lines
Remove duplicate lines from text online, keeping the first occurrence and the original order. Optionally ignore case, extra spaces and empty lines.
Sort Lines
Sort lines of text online alphabetically, naturally (item 2 before item 10), by number or by length, in ascending or descending order. Runs in your browser.
Remove Line Breaks
Remove line breaks from text online: join broken lines from a PDF or email into one paragraph, or into a comma-separated list. Optionally keep paragraph breaks.
Remove Extra Spaces
Remove extra spaces from text online: collapse repeated spaces and tabs, trim every line and squeeze blank lines. Clean pasted text in one click.
Slug Generator
Turn any title into a clean URL slug online: lowercase, accents removed, symbols dropped, words joined with hyphens or underscores. One slug per line.