Skip to content
Toolew.com

Text to Binary Converter

Convert text to 8-bit binary and binary back to text, with UTF-8, Latin-1 or UTF-16LE, separators, nibble grouping and bytes per line.

Runs in your browser. Your data is not uploaded.
Loading tool…

This guide is not yet available in your language and is shown in English.

Tool guide

What this tool does

Text to Binary Converter writes every byte of your text as eight binary digits and reads binary back into readable text. It encodes with UTF-8, Latin-1 or UTF-16LE, can split bytes into nibbles, and accepts binary with or without separators, 0b prefixes or missing leading zeros.

Binary is the most literal view of text a computer can give you: every character becomes one or more bytes, and every byte is eight bits that are either 0 or 1. The capital letter “A” is the byte 65, written 01000001. Seeing text this way is useful when learning how character encodings work, when building puzzles or classroom exercises, and when checking bit-level protocols, but converting by hand is slow and easy to get wrong, especially for accented letters and emoji that need several bytes.

This converter turns text into bytes with the character set you select and prints each byte as a zero-padded 8-bit group. In UTF-8, “é” becomes two bytes (11000011 10101001) and an emoji such as 👋 becomes four. For decoding it accepts a continuous bit stream whose length is a multiple of 8, space or comma separated groups, 0b prefixes and underscores, and even groups whose leading zeros were dropped, such as 1001000 for “H”. Everything happens in your browser.

How to use Text to Binary Converter

  1. Type text or paste binary digits into the Input box, or click Sample.
  2. Choose “Text to binary” or “Binary to text” under Mode.
  3. Pick the Character set; UTF-8 matches almost every modern system.
  4. Set the Byte separator and, if you like, switch on “Split bytes into nibbles” for 0100_1000 style output.
  5. Choose how many bytes to show per line, then copy or download the result.

Tips for better results

  • Each output group is exactly eight digits, so a text of n UTF-8 bytes produces 8 × n bits.
  • Upper-case and lower-case ASCII letters differ only in bit 5: “A” is 01000001 and “a” is 01100001.
  • Nibble grouping makes it easy to translate binary to hex by eye, since each group of four bits is one hex digit.
  • If decoding fails with a bit-count error, add spaces between the bytes so the tool can restore missing leading zeros.

Common use cases

  • Showing students how ASCII and UTF-8 store letters, digits and emoji.
  • Creating a secret message or escape-room clue written in ones and zeros.
  • Checking the bit pattern of a flag byte or protocol header in a lab exercise.
  • Decoding a binary string found in a puzzle, a T-shirt or a code comment.

Common mistakes to avoid

  • Treating 7-bit ASCII groups and 8-bit bytes as the same thing; a missing leading zero shifts every later bit when there are no separators.
  • Decoding UTF-16LE bits as UTF-8, which produces null characters between letters.
  • Expecting one byte per character for non-English text; most accented letters need two bytes in UTF-8, and many Asian characters need three.

Frequently asked questions

How is a letter turned into binary?

The letter is first mapped to a number by the character set. In ASCII and UTF-8, “H” is 72. That number is then written in base 2 and padded to eight digits: 72 = 64 + 8 = 01001000.

Why does an emoji become 32 bits?

Emoji have code points above U+FFFF, and UTF-8 needs four bytes for them. Four bytes of eight bits each give 32 binary digits.

Can I decode binary without spaces?

Yes, as long as the total number of bits is a multiple of 8. The stream is split into consecutive 8-bit bytes before decoding.

What do the 0b prefix and underscores mean?

They are programming conventions: 0b marks a binary literal and underscores group digits for readability. Both are ignored when decoding.

Feedback & suggestions

Help us improve Text to Binary Converter. We read every message.

Rating (optional)
Necessary
Required for security, language and theme preferences. Always on.