string to binary
you can entry to open tools search modal
Input String
Output Binary
Tool Options

Convert String to Binary Online - Free Binary Encoder

What is String to Binary Converter?

The String to Binary Converter is a powerful online utility that transforms plain text into binary code (sequences of 0s and 1s). Computers process information in binary, and this tool helps visualize how your human-readable text is represented at the machine level.

Whether you are working with standard ASCII characters or international symbols requiring UTF-8 or UTF-16, this tool handles the encoding complexity for you, providing an accurate binary representation of your input string.

Related Tools:

How to use String to Binary?

Using this tool is straightforward and flexible, offering several customization options to suit your needs:

  1. Input Text: Simply type or paste your text into the Input String panel.
    • You can also upload a file containing text directly.
  2. Select Encoding: Choose how your characters convert to bytes.
    • ASCII: Best for standard English text and basic symbols.
    • UTF-8: The standard for the web, supporting all Unicode characters.
    • UTF-16LE/BE: For systems requiring specifically encoded 16-bit units.
  3. Output Options: Customize the look of your binary output.
    • Delimiter: Choose space, comma, or a custom separator between byte groups for better readability.
  4. Get Result: The Output Binary panel instantly updates with the binary string.
    • You can copy the result or download it as a .bin file.

Examples

Example 1: Basic ASCII Text

Input:

Hi

Settings: ASCII, Space delimiter Output:

01001000 01101001

(H = 01001000, i = 01101001)

Example 2: UTF-8 Special Characters

Input:

Hello 🌍

Settings: UTF-8, Space delimiter Output:

01001000 01100101 01101100 01101100 01101111 00100000 11110000 10011111 10001101 10001101

(Note: The Earth emoji 🌍 takes 4 bytes in UTF-8)

Why Convert Text to Binary?

1. Educational Purposes

Students learning computer science use binary converters to understand how computers store data. Seeing the direct translation from “A” to 01000001 demystifies the digital world.

2. Debugging and Low-Level Programming

When working with network protocols or file formats, developers often need to inspect the raw binary definitions of strings to ensure correct encoding and transmission.

3. Data Obfuscation or encoding

While not secure encryption, converting text to binary is a simple way to obscure data or prepare it for systems that only accept binary streams.

4. Steganography

Binary strings can be used in puzzles, CTFs (Capture The Flag competitions), or digital art projects where the visual representation of 0s and 1s is desired.

FAQ

Q: What is the difference between ASCII and UTF-8?

ASCII is an older standard that uses 7 bits to represent 128 characters (English letters, numbers, symbols). UTF-8 is a modern standard that can represent over a million characters (including emojis and non-Latin scripts). ASCII is actually a subset of UTF-8, so standard English text looks the same in both.

Q: Can I convert the binary back to text?

Absolutely! While we are currently focused on the converter, you can manually reverse the process by taking each 8-bit group and finding its corresponding character code. This tool is designed to be paired with a Binary to String converter.

Q: Why do I see 8 bits per character?

Standard computers process data in bytes, and one byte consists of 8 bits. Even if the character code is small (like ‘A’ is 65), it is padded with leading zeros to fill the 8-bit byte structure (e.g., 01000001 instead of 100001).

Q: Is this tool free?

Yes, this String to Binary tool is completely free to use directly in your browser. All conversions happen locally on your device, ensuring your data remains private.

ASCII Conversion Table

Here is a complete list of standard ASCII characters (0-127) and their binary equivalents:

DecimalCharacterBinary
0NUL (Null)00000000
1SOH (Start of Header)00000001
2STX (Start of Text)00000010
3ETX (End of Text)00000011
4EOT (End of Transmission)00000100
5ENQ (Enquiry)00000101
6ACK (Acknowledge)00000110
7BEL (Bell)00000111
8BS (Backspace)00001000
9HT (Horizontal Tab)00001001
10LF (Line Feed)00001010
11VT (Vertical Tab)00001011
12FF (Form Feed)00001100
13CR (Carriage Return)00001101
14SO (Shift Out)00001110
15SI (Shift In)00001111
16DLE (Data Link Escape)00010000
17DC1 (Device Control 1)00010001
18DC2 (Device Control 2)00010010
19DC3 (Device Control 3)00010011
20DC4 (Device Control 4)00010100
21NAK (Negative Acknowledge)00010101
22SYN (Synchronous Idle)00010110
23ETB (End of Trans. Block)00010111
24CAN (Cancel)00011000
25EM (End of Medium)00011001
26SUB (Substitute)00011010
27ESC (Escape)00011011
28FS (File Separator)00011100
29GS (Group Separator)00011101
30RS (Record Separator)00011110
31US (Unit Separator)00011111
32Space00100000
33!00100001
3400100010
35#00100011
36$00100100
37%00100101
38&00100110
3900100111
40(00101000
41)00101001
42*00101010
43+00101011
44,00101100
45-00101101
46.00101110
47/00101111
48000110000
49100110001
50200110010
51300110011
52400110100
53500110101
54600110110
55700110111
56800111000
57900111001
58:00111010
59;00111011
60<00111100
61=00111101
62>00111110
63?00111111
64@01000000
65A01000001
66B01000010
67C01000011
68D01000100
69E01000101
70F01000110
71G01000111
72H01001000
73I01001001
74J01001010
75K01001011
76L01001100
77M01001101
78N01001110
79O01001111
80P01010000
81Q01010001
82R01010010
83S01010011
84T01010100
85U01010101
86V01010110
87W01010111
88X01011000
89Y01011001
90Z01011010
91[01011011
92\01011100
93]01011101
94^01011110
95_01011111
96`01100000
97a01100001
98b01100010
99c01100011
100d01100100
101e01100101
102f01100110
103g01100111
104h01101000
105i01101001
106j01101010
107k01101011
108l01101100
109m01101101
110n01101110
111o01101111
112p01110000
113q01110001
114r01110010
115s01110011
116t01110100
117u01110101
118v01110110
119w01110111
120x01111000
121y01111001
122z01111010
123{01111011
124|01111100
125}01111101
126~01111110
127DEL (Delete)01111111