Text to Binary

Every character you see on screen is, at the bottom of the stack, a run of ones and zeros. This converter flips between those two representations using 8-bit ASCII: each character becomes one byte (eight binary digits) separated by spaces. It is the format you see in CS101 exercises, capture-the-flag challenges, geocache puzzles and the occasional bot-vs-human gag.

How to encode and decode

  1. 1

    Pick a mode

    Encode to go text -> binary. Decode to go binary -> text.

  2. 2

    Paste your input

    For decoding, separate each byte with a space: `01001000 01101001`.

  3. 3

    Run the conversion

    Each character is mapped to its 8-bit representation, left-padded with zeros.

  4. 4

    Copy the result

    Decoded text is assembled in order; any byte outside 0 - 255 is silently skipped.

ASCII byte quick reference

Character Decimal Binary
space 32 00100000
0 48 00110000
A 65 01000001
a 97 01100001
! 33 00100001
? 63 00111111
newline 10 00001010

A few things worth knowing

  • Standard ASCII only covers 0 - 127. Values 128 - 255 are “extended ASCII” and vary by code page; we treat them as single bytes which is usually what you want for Latin-1 text.
  • Unicode characters beyond U+00FF get encoded as multiple bytes in UTF-8 before the conversion runs, so é becomes two bytes and an emoji can be four.
  • Decoders are picky about spaces. Each group of 8 must be separated from the next. Groups shorter than 8 are treated as invalid and skipped.
  • Leading zeros matter. 1000001 is seven digits and ambiguous; 01000001 is eight and decodes cleanly to A.

Typical uses

  • CS exercises (“write the binary for your first name”).
  • Puzzle hunts and geocaches, where a binary string is the final clue.
  • Sanity-checking a serial protocol or a hex dump by eye.
  • Pranks in a team chat.

Frequently Asked Questions

Emojis and most non-ASCII characters are multi-byte in UTF-8. The converter encodes each underlying byte as 8 bits, so a 4-byte emoji becomes 32 bits of binary.

It is skipped. Decoding only accepts groups of 1s and 0s that represent a single byte.

Same numbers, different base. Binary uses base 2 with 8 digits per byte; hex uses base 16 with 2 digits per byte. A is 01000001 in binary and 41 in hex.

The decoder splits on any whitespace, so spaces, tabs and line breaks all work. Commas must be removed first.

No. Every conversion happens locally in your browser tab.

Related Tools

Tool available in other languages