Home Conversion Number conversion Text to binary

Text to Binary Converter

Enter ASCII/Unicode text string and press the Convert button (e.g. enter "Example" to get "01000101 01111000 01100001 01101101 01110000 01101100 01100101"):

Paste text or drop text file

How to Convert Text to Binary

Convert text to binary ASCII code:

  1. Get character
  2. Get decimal code of character from ASCII table
  3. Convert decimal to binary byte
  4. Continue with next character

Example

Convert "Plant trees" text to binary ASCII code:

Solution: Use ASCII table to get the ASCII code from each character.

"P" => 80 = 2⁶ + 2⁴ = 01010000
"l" => 108 = 2⁶ + 2⁵ + 2³ + 2² = 01101100
"a" => 97 = 2⁶ + 2⁵ + 2⁰ = 01100001
"n" => 110 = 2⁶ + 2⁵ + 2³ + 2² + 2¹ = 01101110
"t" => 116 = 2⁶ + 2⁵ + 2⁴ + 2² = 01110100
" " => 32 = 2⁵ = 00100000
"t" => 116 = 01110100
"r" => 114 = 01110010
"e" => 101 = 01100101
"e" => 101 = 01100101
"s" => 115 = 01110011

For all the text characters you should get the binary bytes:

01010000 01101100 01100001 01101110 01110100 00100000 01110100 01110010 01100101 01100101 01110011

How to Convert Text to Binary?

  1. Get character
  2. Get ASCII code of character from ASCII table
  3. Convert decimal to binary byte
  4. Continue with next character

How to Use Text to Binary Converter?

  1. Paste text in input text box.
  2. Select character encoding type.
  3. Select output delimiter string.
  4. Press the Convert button.

How to Convert English to Binary Code?

  1. Get letter
  2. Get ASCII code of the letter from ASCII table
  3. Convert decimal to binary byte
  4. Continue with next letter

How to Convert 'A' Character to Binary?

Use ASCII table:

'A' = 65₁₀ = 64 + 1 = 2⁶ + 2⁰ = 01000001

How to Convert '0' Character to Binary?

Use ASCII table:

'0' = 48₁₀ = 32 + 16 = 2⁵ + 2⁴ = 00110000

ASCII Text to Hex, Binary Conversion Table

Here are the printable ASCII characters with their hex, decimal, and binary equivalents:

Char ASCII Hex Binary Char ASCII Hex Binary

See Also

Number Conversion