Free online text tool

Text to Binary Code Converter

Text to Binary Code turns text into binary code. Type or paste your text, click the button and copy the ones and zeros. It is free and runs in your browser.

Text to Binary Converter

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Text to Binary Code Example

Before
Hello - How are you doing?
After
01001000 01100101 01101100 01101100 01101111 00100000 00101101 00100000 01001000 01101111 01110111 00100000 01100001 01110010 01100101 00100000 01111001 01101111 01110101 00100000 01100100 01101111 01101001 01101110 01100111 00111111

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Text to Binary Code do?

This tool converts text into binary code. Computers store every character as a number, and binary writes that number with only ones and zeros. Each character becomes a group of eight digits, called a byte. For example, the letter H is 01001000, so Hello starts with 01001000 01100101.

Type or paste your text and click the button. The text is read as UTF-8, so plain English letters, digits and punctuation give one byte each, while accents, other scripts and emoji give two to four bytes. You can separate the groups with a space, with nothing, or with a new line.

Line breaks in your text are converted too, and show up as 00001010.

Text to binary code examples

Unless an option is named, the 8-bit groups are separated by a space.

SettingBeforeAfter
Sentence
Hello - How are you doing?
01001000 01100101 01101100 01101100 01101111 00100000 00101101 00100000 01001000 01101111 01110111 00100000 01100001 01110010 01100101 00100000 01111001 01101111 01110101 00100000 01100100 01101111 01101001 01101110 01100111 00111111
Short text
Hi
01001000 01101001
One letter
A
01000001
Digits
123
00110001 00110010 00110011
No separator
Hi
0100100001101001
New line
Hi
01001000
01101001
Line break in the text
Hi
Hi
01001000 01101001 00001010 01001000 01101001
Accents
café
01100011 01100001 01100110 11000011 10101001
Emoji
👋
11110000 10011111 10010001 10001011

How to convert text to binary code

  1. 1
    Add your text
    Type or paste your text into the box, or import a text file.
  2. 2
    Pick the separator
    Choose a space, nothing or a new line between the 8-bit groups.
  3. 3
    Click Convert to Binary
    Your text is turned into binary code. Use Undo if you change your mind.
  4. 4
    Copy it
    Click Copy and paste the binary code where you need it.

When to convert text to binary code

Good for

Learning how computers store text, making puzzles and messages written in ones and zeros, and checking the bytes behind a letter, a symbol or an emoji.

Check first

The tool uses UTF-8, so characters outside the plain English alphabet give more than one group. The result is only ones and zeros, so a single mistake changes the meaning of the whole message when it is read back.

Other tools

To see the same characters as numbers, try String to Decimal. To turn numbers back into text, try Decimal to String. To encode text for the web, try Base64 Encoder.

Text to binary code FAQ

What does the Text to Binary Code tool do?

It converts text into binary code. Each character is written as one or more groups of eight ones and zeros.

How do I convert text to binary?

Type or paste your text into the box and click Convert to Binary. The binary code appears in the same box, and you can copy it with the Copy button.

What is binary code?

Binary is a way of writing numbers with only two digits, 0 and 1. Computers use it to store everything, including text.

How is the letter A written in binary?

A is 01000001. Each letter, digit and symbol has its own number, and the binary code is that number written in eight digits.

Why are there eight digits in each group?

Eight binary digits make a byte, which is how computers store one plain character. Shorter numbers are filled at the front with zeros, so 65 becomes 01000001.

Does it work with accents, other languages and emoji?

Yes. The text is read as UTF-8, so these characters give two to four bytes each. For example, é is 11000011 10101001.

How can I separate the groups?

Choose a space, nothing or a new line from the list under the text box. The default is a space.

Can I convert binary code back to text?

No, this tool only converts text to binary code.

Is my text private?

The tool is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Conversion Tools

Last updated: 17 November 2026