LocalToolkit
HomeEncoding & Decoding › Binary / Text Converter

Text to Binary Converter

Eight bits per ASCII character, with the code points shown alongside.

🔒 Runs in your browser. Nothing is uploaded — verify it in the network panel, or disconnect and try again.

How a character becomes eight ones and zeros

In ASCII, every character has a number, and every number is written in binary with eight digits. A is 65, which is 01000001; a is 97, 01100001. The high bit distinguishes the two: uppercase letters occupy 65–90, lowercase 97–122, and digits 48–57. A single flipped bit between 65 and 97 — which is exactly 01000001 versus 01100001 — is why case-insensitive comparison in ASCII is a bitmask, not a table lookup.

ASCII is 7 bits; text is not

ASCII defines only 128 code points, all representable in seven bits. Anything outside A–Z a–z 0–9 and basic punctuation needs more. In UTF-8, a character uses one byte if it is ASCII, two bytes for most European letters with accents, three for the majority of CJK characters, and four for emoji and rare scripts. So A is 01000001 (8 bits) while is 11100100 10111000 10101101 (24 bits), and 🚀 is four bytes, 32 bits.

CharacterCode pointUTF-8 bytesBinary
AU+0041 (65)101000001
aU+0061 (97)101100001
0U+0030 (48)100110000
éU+00E9 (233)211000011 10101001
U+4E2D311100100 10111000 10101101
🚀U+1F680411110000 10011111 10011010 10000000

Where you actually need this

Binary output here is grouped per byte, because that is how it is read in practice. An 8-bit row is a byte; a 4-bit row is a nibble, which is what hex digits represent. Splitting a byte across a line boundary is legal but makes the byte structure invisible.

How to use it

  1. Paste text to see its bit representation, or paste binary to read it back.
  2. Check the code point shown for each character.
  3. Note that non-ASCII characters produce more than one byte.
  4. Space and newline separators are both accepted on input.

Worth knowing

  • ASCII covers 128 code points, so seven bits suffice; eight are used for storage.
  • Uppercase A and lowercase a differ by exactly one bit (65 versus 97).
  • UTF-8 is variable-width: 1 byte for ASCII, up to 4 bytes for emoji.
  • Digits 48–57 and letters 65–122 are contiguous ranges, which is why ordering works.

Limitations

  • Binary strings are eight times longer than ASCII text and are not compressible by eye.
  • Ambiguity is possible if you paste both binary and text into one field — decode expects one form.
  • Non-ASCII characters do not fit in a single byte, so a fixed 8-bit assumption fails.
  • This is a view of bytes, not of a hardware signal — no framing, parity or timing is represented.

Frequently asked questions

How many bits are in a character?
In ASCII, seven meaningful bits stored in a byte, so eight. In UTF-8 the answer varies: one byte for ASCII, two for accented Latin letters, three for most CJK characters, four for emoji.
Why is binary used in computing?
Because a transistor reliably distinguishes two states — on and off — and reliability beats compactness. Every other base, including decimal, is a notation layered on top.
What is a nibble?
Four bits, or half a byte. It is exactly one hexadecimal digit, which is why hex is a convenient shorthand for binary.
Does the binary output include a newline?
Only if your text has one. Line breaks are real characters (LF is code 10, CR is 13) and this tool converts them like any other.
Related tools
Hex Encoder / DecoderBase64 Encoder / DecoderURL Encoder / DecoderWord and Character CounterHTML Entity Encoder / DecoderJWT Decoder
Keep reading
How browser-only processing worksAll Encoding & Decoding toolsEvery tool on the site