Skip to content
XUtilHub

Text to Binary Converter

Convert text to binary code (8-bit UTF-8 bytes) online. Copy the 0s and 1s instantly.

  • Free, no sign-up
  • Runs in your browser, nothing uploaded
Input
Output

About the String to Binary

Convert text into binary, with each UTF-8 byte written as 8 bits.

Key features

  • Converts text to 8-bit binary (UTF-8 bytes)
  • Space, comma, new line or no separator
  • Each byte padded to 8 digits
  • Unicode and emoji supported
  • Great for lessons, puzzles and gifts
  • Instant results

See text the way a computer stores it

Everything on a computer is stored as bits, ones and zeros. This tool shows your text as binary, one byte per character for plain English. It's popular in computer-science classes, coding clubs, escape rooms, and for writing secret messages on cards and t-shirts.

Example

Hi! becomes 01001000 01101001 00100001.

CharacterDecimalBinary
H7201001000
i10501101001
!3300100001

Reading a byte

Each position is worth double the one to its right:

1286432168421
01001000

64 + 8 = 72, which is the code for H.

Fun facts

  • A byte has 8 bits and 256 possible values (0–255).
  • Upper- and lowercase letters differ by a single bit: A is 01000001 and a is 01100001.
  • The digits 0–9 run from 00110000 to 00111001.

Decode with Binary to String, or use the shorter hex form with String to Hex.

How to use the String to Binary

  1. Type or paste your text into the input box.
  2. Choose the options you want.
  3. The result updates instantly as you type.
  4. Copy the output or download it as a .txt file.

Frequently asked questions

How does the conversion work?

Each character is encoded as UTF-8 bytes and each byte is written as 8 binary digits. The letter A is byte 65, written 01000001.

Why do some characters produce 16 or more bits?

Characters beyond basic English use 2 to 4 bytes in UTF-8, so they produce 16 to 32 bits.

Is this the same as ASCII to binary?

For English letters, digits and common punctuation, yes, because UTF-8 matches ASCII for those characters.

Can I decode it again?

Yes, paste the bits into Binary to String.

Is my text sent anywhere?

No. All text tools run locally in your browser.

Do these tools support Unicode?

Yes. They handle Unicode text, including emoji and accented characters.

Last updated:

Related Text tools