HohoTools

Text to Binary

This free text to binary converter shows exactly how your words look to a machine: every character rendered as its UTF-8 bytes, each byte displayed as an 8-bit group like 01100101.

How to use

  1. Type or paste the text you want to see as binary.
  2. Each character appears as 8-bit groups of its UTF-8 bytes, updating live.
  3. Toggle space separation and 0b prefixes to match your target format.
  4. Check the two counters for code points and UTF-8 bytes, then copy the bits.

Frequently asked questions

Which encoding does the converter use?

UTF-8, the universal default of the modern web. Letters from the ASCII range use one byte, Latin accents and Cyrillic use two, most Chinese characters use three, and emoji use four. The bits you see are the exact bytes any UTF-8 system would store or transmit.

Why are the character count and byte count different?

Characters are counted as Unicode code points — an emoji is one character. Bytes are counted after UTF-8 encoding — that same emoji becomes four bytes. Any character outside ASCII needs more than one byte, so the two counters deliberately diverge to make the multi-byte reality visible.

Can I paste the output straight into source code?

Turn on the 0b prefix option and each group becomes a binary literal such as 0b01100101, accepted by Python, JavaScript, C, Java and most modern languages. Turn off spaces if you need one continuous bit string instead of separate groups.

How do I convert the bits back to text?

Use the paired binary-to-text tool. It accepts the same formats — spaced groups, comma-separated, 0b prefixes — and reverses the conversion, reporting an error if the bit count is not a multiple of eight rather than guessing.

Is my text uploaded anywhere?

No. Conversion happens locally in your browser as you type. Nothing is sent to a server, nothing is stored, and nothing appears in any log.

Related tools

About this tool

This free text to binary converter shows exactly how your words look to a machine: every character rendered as its UTF-8 bytes, each byte displayed as an 8-bit group like 01100101. It is the clearest way to demonstrate how text encoding actually works — that an ASCII letter is a single byte, that a Chinese character takes three, that an emoji takes four — and a handy source of test fixtures when you are debugging encoders, protocols, file formats or embedded code. Two display switches adapt the output to your target language: space-separated groups for readability, or a tight bit string for pasting into code; optional 0b prefixes for languages whose binary literals expect them. The stats keep two honest counters side by side: characters counted as Unicode code points (one emoji is one character) and bytes counted as UTF-8 output (that same emoji is four bytes), so the difference between characters and bytes is never hidden from you. The result updates live as you type and pairs with the binary-to-text tool for round trips. Everything runs locally in your browser: nothing is uploaded, nothing is stored, nothing is logged.