Encoding & Text Conversion

Text → Binary

Convert normal text, Chinese, Japanese and emoji to byte-aligned binary.

Press Ctrl / ⌘ + Enter to run
Read-only result

Encode Unicode text into UTF-8 bytes, and then output a fixed eight-bit binary.

Inputs are only processed in your browser and are not uploaded to the server.

What this tool does

Text → Binary Encodes full Unicode text into UTF-8 bytes via TextEncoder and outputs a leading zero-padded 8-bit binary for each byte. Spaced and Continuous modes only change the layout of the results.

  • Each byte always outputs 8 bits, including necessary leading zeros.
  • Supports both space separated and continuous formats.
  • Input is not saved and does not rely on API or network resources.

How to use it

  1. Enter the Unicode text to be converted.
  2. Choose Spaced or Continuous.
  3. Click "Convert to Binary".
  4. Copy the binary result.

Common uses

  • Demonstrates bit-level representation of UTF-8 bytes.
  • Prepare test payload for binary protocol.
  • Check for Binary → Text round-trip conversions.

Privacy and security

Inputs and results are processed only in your browser's memory. Nothing is uploaded, sent to an online API, or stored automatically.

Text → Binary Features

Encode Unicode text into UTF-8 bytes, and then output a fixed eight-bit binary. Useful for everyday development and debugging; results can be reviewed, copied, or downloaded immediately.

FAQ

Why are the number of characters and the number of bytes different?

UTF-8 uses multiple bytes for Chinese, Japanese, and emoji, so one character can correspond to multiple sets of 8-bit binary.

Can Continuous mode be restored?

Yes, Binary → Text can be restored on a byte-by-byte basis as long as the total number of bits remains a multiple of 8.

Can leading zeros be omitted?

No. If omitted, explicit byte boundaries are lost, so each group is fixed to 8 bits.

Will the input leave the browser?

No, the TextEncoder and formatting processes are completed locally.

Back to Developer Tools