Text to Binary Converter

Convert text to binary (0s and 1s) using ASCII or UTF-8. 8-bit groups, optional space separator.

What is Text to Binary conversion?

Computers store all text as binary numbers — sequences of 0s and 1s. Each character (letter, digit, symbol) has a numeric code defined by character encoding standards (ASCII for English, UTF-8 for all languages). Text-to-binary conversion shows the actual binary representation of every character in your text. The letter ‘A’ is decimal 65, binary 01000001. ‘Hello’ becomes 01001000 01100101 01101100 01101100 01101111 (each letter = 8 bits = 1 byte). Useful for computer science students learning encoding, programmers debugging text/byte issues, escape room puzzles, geeky social media posts, or simply understanding how computers see text.

How to use this tool

  1. Paste or type text — Any letters, numbers, symbols. Supports full Unicode (UTF-8 encoding).
  2. View binary output — 8 bits per character separated by spaces for readability.
  3. Copy result — Paste into your code, document, or share online.

How text becomes binary

Step 1: Each character is mapped to its numeric code (ASCII for English letters, Unicode for everything else).

'H' = 72 (decimal) = 01001000 (binary)
'i' = 105 (decimal) = 01101001 (binary)

Step 2: The decimal number is converted to base 2 (binary).

72 in binary:
128 64 32 16 8 4 2 1
 0   1  0  0 1 0 0 0  = 01001000

ASCII range: 0-127 fits in 7 bits, but we pad to 8 bits (1 byte) for standard representation.

Unicode beyond ASCII: Letters with accents, emoji, non-English characters use 2-4 bytes in UTF-8. So ‘café’ has 5 bytes total (c, a, f = 1 byte each; é = 2 bytes in UTF-8).

Examples

  • ‘A’ (uppercase A): 01000001 — decimal 65
  • ‘a’ (lowercase a): 01100001 — decimal 97 (difference of 32 from uppercase)
  • Space ‘ ‘: 00100000 — decimal 32
  • ‘0’ (digit zero): 00110000 — decimal 48
  • ‘Hello’: 01001000 01100101 01101100 01101100 01101111
  • ‘©’ (copyright): 11000010 10101001 — 2 bytes in UTF-8
  • Emoji ‘😀’: 11110000 10011111 10011000 10000000 — 4 bytes in UTF-8

Tips & best practices

  • Each English letter = 1 byte (8 bits) — so character count × 8 = total bits
  • Uppercase and lowercase differ by 32 in decimal — useful for case conversion at byte level
  • Use this tool to verify how special characters (é, ü, emoji) consume multiple bytes
  • Binary representation is reversible — use our Binary to Text tool to decode back
  • Don’t confuse with hex (base 16) or octal (base 8) — binary is base 2 only
  • Bitwise operations (AND, OR, XOR) used in cryptography work directly on these binary representations

Limitations & notes

Output uses UTF-8 encoding (most common). Other encodings (Latin-1, UTF-16) produce different binary for the same text. Tool doesn’t include leading zeros explanation for very large emoji (4 bytes). For binary file analysis, use a hex editor, not text-to-binary.

Frequently Asked Questions

Why is each letter 8 bits?

Standard byte size in computers is 8 bits (1 byte). ASCII actually uses 7 bits (values 0-127) but conventionally padded to 8 for memory alignment. UTF-8 starts at 1 byte and extends to 4 bytes for non-English characters.

Why does ‘cafe’ look different in binary if it has an accent?

ASCII letters (a-z) use 1 byte each. The ‘e’ in ‘cafe’ is 1 byte. But ‘café’ — with accent — uses 2 bytes for é (UTF-8 encoding). So total binary length differs.

What’s the difference between binary and hex?

Binary is base 2 (0, 1). Hex is base 16 (0-9, A-F). Both represent the same data — hex is just shorter. Example: 01001000 (binary) = 48 (hex) = 72 (decimal) = ‘H’.

Can I convert this binary back to text?

Yes — use our Binary to Text tool. Paste the binary (with spaces between bytes) to get original text back.

Why are emoji 4 bytes in binary?

Emoji are encoded in UTF-8 using 4 bytes (32 bits). Standard ASCII covers only 1 byte. Unicode supports millions of characters via variable-length encoding.

Is this used in real programming?

Indirectly — you never write binary by hand in code, but understanding it helps debug encoding issues (mojibake), network protocols, and low-level file formats.

What’s the binary for the letter Z?

Uppercase Z = decimal 90 = binary 01011010. Lowercase z = decimal 122 = binary 01111010.

Related tools

Binary to Text · Hash Generator · Base64 Encoder & Decoder

Copied