Free tool
Binary to Text Converter
Convert binary to text and text to binary with correct UTF-8 handling for accented letters and emoji. Paste, copy and swap direction in your browser.
Runs entirely in your browser. Nothing you type or upload is sent to our servers.
How to convert binary to text and back
- Pick a direction, then paste or type into the top box.
- Read the result below. Errors appear in red, with the group that caused them.
- Press Copy result, or Swap direction to move the output back into the input.
How the conversion works
A computer stores text as numbers, and a binary string is those numbers written with two digits. This tool uses UTF-8, which writes each character as one to four bytes of 8 binary digits. To read binary, it turns each 8-digit group into a number from 0 to 255, collects the bytes and decodes them as UTF-8. To write binary, it does the reverse and pads every byte to 8 digits.
Worked example 1: decoding the word Hi
- 01001000 = 64 + 8 = 72, which is the letter H.
- 01101001 = 64 + 32 + 8 + 1 = 105, which is the letter i.
- The two bytes decode to Hi.
Worked example 2: a character that needs two bytes
- The letter é is code point U+00E9, which is 233 in decimal.
- Above 127, UTF-8 uses two bytes. 233 = 11000011 10101001 once the bits are spread across the two-byte pattern.
- Decoding 11000011 10101001 therefore gives é, not two separate symbols.
Limits
- Binary is not encryption. Anyone can decode it with a tool like this one.
- Only 0 and 1 are accepted, with spaces, commas or line breaks between groups.
- Input that does not decode to valid UTF-8 text is rejected rather than shown as garbage. Raw binary files, such as images, are not text and will not decode to something readable.
- Very long input is capped so the page stays responsive.
Related tools
To see the same message as dots and dashes, try the Morse Code Translator. The Unix Timestamp Converter converts another kind of number into something readable, and the JSON Formatter checks structured text.
Frequently asked questions
How do I convert binary to text?
Paste the binary into the box with the direction set to binary to text. Separate bytes with spaces, or paste one unbroken string whose length is a multiple of 8. Each group of 8 digits is one byte, and the bytes are decoded as UTF-8 text. For example, 01001000 01101001 decodes to Hi. The result updates as you type.
How do I convert text to binary?
Switch the direction to text to binary and type your message. The tool turns the text into UTF-8 bytes and writes each byte as 8 binary digits. The letter H is the number 72, which is 01001000. You can choose bytes separated by spaces, which is easier to read, or one unbroken string.
Does it handle accented letters, other alphabets and emoji?
Yes, because it uses UTF-8, which stores characters in one to four bytes. The letter é is two bytes, 11000011 10101001, the euro sign € is three bytes, and an emoji such as the grinning face is four. A converter that assumes one byte per character cannot decode these, and this one reports an error instead of guessing when the bytes are not valid UTF-8.
Why does it say my binary is not valid?
There are three common causes. The text contains a character other than 0 or 1, an unbroken string is not a multiple of 8 digits long, or a group is longer than 8 digits. A fourth is that the bytes do not form valid UTF-8, for instance when a multi-byte character is cut off. The message names the problem so you can find the broken group.
Can I enter fewer than 8 digits in a group?
Yes, if you separate groups with spaces. A group like 1000001 is treated as the byte 01000001, which is the letter A, with the leading zeros left out. An unbroken string without spaces must have a length that is a multiple of 8, because the tool cannot guess where the groups begin.
How many bytes does each character use?
In this tool, plain English letters, digits and common punctuation take one byte each, so the word Hi is 16 binary digits. Accented letters such as é take two bytes, the euro sign takes three, and an emoji takes four. The page shows the byte count and the character count under the result, so you can see the difference for your own text.
Is my text stored or sent anywhere?
No. The conversion happens in your browser and nothing you type is uploaded or saved. Analytics record only that the tool was used, never your text. Even long messages are processed on your own device, so it is safe to paste private text, and closing the tab clears everything.
Link to this tool
Found it useful? Copy a link for your page, newsletter or documentation.
Get new tools and guides by email
Optional. The tool above works without signing up.
More free tools
Browse all developer tools or the full list of free tools.
- Invisible Character Copy and PasteCopy real invisible Unicode characters such as the Hangul filler and zero width space, with names and categories, and find hidden characters in pasted text.
- YAML to JSON & JSON to YAML ConverterConvert YAML to JSON or JSON to YAML in your browser with clear errors. Unsafe YAML such as custom tags, duplicate keys and alias bombs is rejected.
- XML to JSON ConverterConvert XML to JSON with your browser's own XML parser. Attributes, repeated elements and CDATA are handled, and DTDs with entities are refused.
- CSS Gradient GeneratorBuild linear and radial CSS gradients with a live preview, up to eight color stops and opacity, then copy the CSS. Nothing is uploaded or stored.
- Bold Text Generator (Copy and Paste)Turn plain text into bold, bold italic, sans-serif bold, script and fraktur Unicode letters you can copy and paste, with honest notes on where it fails.
- Small Text Generator (Copy and Paste)Make small caps and superscript text with Unicode letters you can copy and paste, with a plain account of the gaps and where small text fails.