Text to ASCII binary

Convert text to its ASCII binary representation and vice-versa.

Enable JavaScript to use the interactive tool. The guide below explains how it works.

Text to Binary

What it does

This tool converts plain text into its binary representation, one 8-bit group per character, and converts binary back into readable text. Both directions live on the same page so you can check a round trip.

Why someone uses it

Step-by-step instructions

  1. Text to binary: type or paste text into the first card. The binary appears below it. Use Copy binary to clipboard to copy it.
  2. Binary to text: paste groups of 8 bits (spaces between groups are fine) into the second card. The decoded text appears below.
  3. If the binary card shows a validation error, check that the total number of bits is a multiple of 8.

Examples

Understanding the results

Each character is looked up in the ASCII table and written as an 8-bit binary number. Uppercase "A" is decimal 65, which is 01000001 in binary; lowercase "a" is 97, 01100001. The two differ by a single bit (the third from the left), which is why case is easy to flip in low-level code. Bits are read from left (most significant) to right (least significant). When decoding, each 8-bit group is converted back to its decimal value and then to the matching character.

FAQs

Common mistakes

Use cases

Related tools

All tools

Guides and articles