Loading...

Binary Encoder & Decoder Online — Text to Binary Bits Converter

Convert text to a string of binary bits (1s and 0s) or decode a binary string back to readable text. Configure byte grouping, separators, and bit width to match the format you need for embedded systems, debugging, or teaching how computers represent characters. Everything runs in your browser — no upload, no tracking.

Features

  • Adjustable grouping

    Group output by 8 bits (byte) or 4 bits (nibble), with optional space separators.

  • UTF-8 byte stream

    Non-ASCII characters are encoded as their UTF-8 byte sequences, so emoji and CJK characters work.

  • Tolerant decoder

    Paste binary with spaces, line breaks, or no separators — the decoder strips noise and decodes correctly.

  • Private by default

    All conversion is local. Nothing is uploaded.

How to convert text to binary online

Encode or decode binary bit strings in three steps.

  1. Pick directionChoose Encode (text → bits) or Decode (bits → text).
  2. Choose groupingOutput as 8-bit bytes (e.g. `01001000 01101001`) or unbroken bits.
  3. Paste your inputDrop the text or binary string into the input box. The result appears instantly.

Examples

Encode plain text

Input
Hi
Output
01001000 01101001

Decode a binary string

Input
01001110 01101111
Output
No

Encode an emoji (UTF-8)

Input
😀
Output
11110000 10011111 10011000 10000000

Four UTF-8 bytes — the same encoding most modern systems use internally.

Frequently Asked Questions

Why does each character become 8 bits?
ASCII characters fit in 7 bits but are stored in 8-bit bytes for alignment. The encoder outputs UTF-8 bytes, so ASCII characters are exactly 8 bits; multi-byte characters use 2–4 bytes.
Is binary just for ones and zeros, or can I get hexadecimal?
This tool focuses on base-2 (1s and 0s). For hexadecimal output, use the dedicated Hex Encoder.
Can I encode the literal binary representation of a number?
No — this tool encodes text characters as their byte values. To convert a decimal number to its binary form (e.g. 42 → 101010), use a different calculator.
Does it handle Unicode?
Yes. Input is encoded as UTF-8, so any Unicode character (emoji, CJK, accented letters) round-trips correctly.
Is anything sent to a server?
No. Conversion runs entirely in your browser.