Text to Binary Converter

Convert text to and from binary, hexadecimal and ASCII codes.

Text is encoded as UTF-8, so emoji and accents work too. Codes are separated by spaces.

What Does the Text to Binary Converter Do?

This converter translates text into three machine-level representations โ€” binary (base 2), hexadecimal (base 16) and decimal ASCII codes โ€” and decodes any of them back into readable text. Encoding is UTF-8 based, so it handles not only English letters but also accents, symbols and even emoji correctly.

Type "Hi" and see 01001000 01101001 in binary mode, 48 69 in hex mode, or 72 105 in decimal mode. Paste any of those back with the direction switched to Code โ†’ Text and you get "Hi" again.

How to Use the Converter

  1. Choose the format: binary, hexadecimal or ASCII/decimal.
  2. Choose the direction: Text โ†’ Code or Code โ†’ Text.
  3. Type or paste into the left box โ€” the conversion appears live on the right.
  4. When decoding, separate byte values with spaces (or commas); the tool reports any value that isn't a valid byte.

Why Convert Text to Binary?

  • Learning how computers store text โ€” students can see exactly how "A" becomes 01000001 and how UTF-8 spreads emoji across multiple bytes.
  • Debugging encoding issues โ€” developers inspect the actual bytes behind mysterious characters to diagnose UTF-8/Latin-1 mix-ups.
  • Puzzles and CTF challenges โ€” binary and hex strings are staple ciphers in escape rooms, geocaching and capture-the-flag events.
  • Low-level programming โ€” quickly get the hex bytes of a string for embedded systems or protocol work.

Frequently Asked Questions

Why does one emoji produce four binary groups?

The tool encodes text as UTF-8, where characters outside basic ASCII take two to four bytes. An emoji like ๐Ÿ™‚ occupies four bytes, so you see four 8-bit groups โ€” exactly how it is stored in files and sent over networks.

What number ranges are valid when decoding?

Each value must represent one byte: 00000000โ€“11111111 in binary, 00โ€“FF in hex, or 0โ€“255 in decimal. Anything outside the range triggers a clear error message naming the invalid token.

Does uppercase vs lowercase matter in hex input?

No โ€” 48, 4A and 4a are all accepted. Output hex is lowercase by convention.

Can I convert an entire document?

Yes, there is no practical length limit since the conversion runs in your browser. Note that binary output is roughly nine times longer than the input text.