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:
- Binary to String: Convert binary code back into readable text.
How to use String to Binary?
Using this tool is straightforward and flexible, offering several customization options to suit your needs:
- Input Text: Simply type or paste your text into the Input String panel.
- You can also upload a file containing text directly.
- 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.
- Output Options: Customize the look of your binary output.
- Delimiter: Choose space, comma, or a custom separator between byte groups for better readability.
- Get Result: The Output Binary panel instantly updates with the binary string.
- You can copy the result or download it as a
.binfile.
- You can copy the result or download it as a
Examples
Example 1: Basic ASCII Text
Input:
HiSettings: 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:
| Decimal | Character | Binary |
|---|---|---|
| 0 | NUL (Null) | 00000000 |
| 1 | SOH (Start of Header) | 00000001 |
| 2 | STX (Start of Text) | 00000010 |
| 3 | ETX (End of Text) | 00000011 |
| 4 | EOT (End of Transmission) | 00000100 |
| 5 | ENQ (Enquiry) | 00000101 |
| 6 | ACK (Acknowledge) | 00000110 |
| 7 | BEL (Bell) | 00000111 |
| 8 | BS (Backspace) | 00001000 |
| 9 | HT (Horizontal Tab) | 00001001 |
| 10 | LF (Line Feed) | 00001010 |
| 11 | VT (Vertical Tab) | 00001011 |
| 12 | FF (Form Feed) | 00001100 |
| 13 | CR (Carriage Return) | 00001101 |
| 14 | SO (Shift Out) | 00001110 |
| 15 | SI (Shift In) | 00001111 |
| 16 | DLE (Data Link Escape) | 00010000 |
| 17 | DC1 (Device Control 1) | 00010001 |
| 18 | DC2 (Device Control 2) | 00010010 |
| 19 | DC3 (Device Control 3) | 00010011 |
| 20 | DC4 (Device Control 4) | 00010100 |
| 21 | NAK (Negative Acknowledge) | 00010101 |
| 22 | SYN (Synchronous Idle) | 00010110 |
| 23 | ETB (End of Trans. Block) | 00010111 |
| 24 | CAN (Cancel) | 00011000 |
| 25 | EM (End of Medium) | 00011001 |
| 26 | SUB (Substitute) | 00011010 |
| 27 | ESC (Escape) | 00011011 |
| 28 | FS (File Separator) | 00011100 |
| 29 | GS (Group Separator) | 00011101 |
| 30 | RS (Record Separator) | 00011110 |
| 31 | US (Unit Separator) | 00011111 |
| 32 | Space | 00100000 |
| 33 | ! | 00100001 |
| 34 | ” | 00100010 |
| 35 | # | 00100011 |
| 36 | $ | 00100100 |
| 37 | % | 00100101 |
| 38 | & | 00100110 |
| 39 | ’ | 00100111 |
| 40 | ( | 00101000 |
| 41 | ) | 00101001 |
| 42 | * | 00101010 |
| 43 | + | 00101011 |
| 44 | , | 00101100 |
| 45 | - | 00101101 |
| 46 | . | 00101110 |
| 47 | / | 00101111 |
| 48 | 0 | 00110000 |
| 49 | 1 | 00110001 |
| 50 | 2 | 00110010 |
| 51 | 3 | 00110011 |
| 52 | 4 | 00110100 |
| 53 | 5 | 00110101 |
| 54 | 6 | 00110110 |
| 55 | 7 | 00110111 |
| 56 | 8 | 00111000 |
| 57 | 9 | 00111001 |
| 58 | : | 00111010 |
| 59 | ; | 00111011 |
| 60 | < | 00111100 |
| 61 | = | 00111101 |
| 62 | > | 00111110 |
| 63 | ? | 00111111 |
| 64 | @ | 01000000 |
| 65 | A | 01000001 |
| 66 | B | 01000010 |
| 67 | C | 01000011 |
| 68 | D | 01000100 |
| 69 | E | 01000101 |
| 70 | F | 01000110 |
| 71 | G | 01000111 |
| 72 | H | 01001000 |
| 73 | I | 01001001 |
| 74 | J | 01001010 |
| 75 | K | 01001011 |
| 76 | L | 01001100 |
| 77 | M | 01001101 |
| 78 | N | 01001110 |
| 79 | O | 01001111 |
| 80 | P | 01010000 |
| 81 | Q | 01010001 |
| 82 | R | 01010010 |
| 83 | S | 01010011 |
| 84 | T | 01010100 |
| 85 | U | 01010101 |
| 86 | V | 01010110 |
| 87 | W | 01010111 |
| 88 | X | 01011000 |
| 89 | Y | 01011001 |
| 90 | Z | 01011010 |
| 91 | [ | 01011011 |
| 92 | \ | 01011100 |
| 93 | ] | 01011101 |
| 94 | ^ | 01011110 |
| 95 | _ | 01011111 |
| 96 | ` | 01100000 |
| 97 | a | 01100001 |
| 98 | b | 01100010 |
| 99 | c | 01100011 |
| 100 | d | 01100100 |
| 101 | e | 01100101 |
| 102 | f | 01100110 |
| 103 | g | 01100111 |
| 104 | h | 01101000 |
| 105 | i | 01101001 |
| 106 | j | 01101010 |
| 107 | k | 01101011 |
| 108 | l | 01101100 |
| 109 | m | 01101101 |
| 110 | n | 01101110 |
| 111 | o | 01101111 |
| 112 | p | 01110000 |
| 113 | q | 01110001 |
| 114 | r | 01110010 |
| 115 | s | 01110011 |
| 116 | t | 01110100 |
| 117 | u | 01110101 |
| 118 | v | 01110110 |
| 119 | w | 01110111 |
| 120 | x | 01111000 |
| 121 | y | 01111001 |
| 122 | z | 01111010 |
| 123 | { | 01111011 |
| 124 | | | 01111100 |
| 125 | } | 01111101 |
| 126 | ~ | 01111110 |
| 127 | DEL (Delete) | 01111111 |