Convert Plain Text to Binary (Base-2) Online
Encode standard English text or international characters into base-2 binary bytes. Our free online Text to Binary Encoder is built to assist developers, programmers, and students in formatting binary payloads, debugging serial data connections, or testing bit-level configurations.
Character Encodings and Binary Representations
Every character you type into a text editor is represented as a number internally. Standard ASCII maps English characters to numbers from 0 to 127. For example, the character 'H' is represented by code 72. In binary, 72 is written as the byte 01001000. This tool automates this process for any text string.
How to Convert Text to Binary (Step-by-Step)
- Character Isolation: Take each character in the input string one by one.
- Extract Code: Retrieve the decimal character code (ASCII/Unicode) of the character.
- Convert to Base-2: Translate that decimal number into an 8-digit binary string, padding with leading zeros on the left if needed to make it a full byte.
- Join: Combine the binary bytes using your preferred separator (like spaces or commas).
Flexible Output
Format your binary output with custom prefixes (0b) and group bytes using spaces, commas, or newlines.
ASCII & UTF-8
Decodes character values safely using standard browser character mappings, supporting standard alphanumeric text.
100% Secure
All code processes in your browser. No data ever leaves your device or is transmitted over the network.
Text to Binary Conversion Table
| Character | Decimal Code | Binary Representation |
|---|---|---|
| A | 65 | 01000001 |
| a | 97 | 01100001 |
| B | 66 | 01000010 |
| b | 98 | 01100010 |
| 0 | 48 | 00110000 |
| 9 | 57 | 00111001 |
| Space ( ) | 32 | 00100000 |