Loading...
Loading...
Type or paste any text and get the binary representation of each character using ASCII encoding. Output appears as space-separated 8-bit groups.
ASCII text to encode
8-bit binary representation
ASCII assigns a unique integer code to each character. The printable characters span codes 32 (space) through 126 (tilde ~). Letters, digits, and punctuation all have fixed codes: uppercase A is 65, lowercase a is 97, the digit 0 is 48, and the exclamation mark is 33.
These integer codes are stored in memory as bytes. A byte is 8 bits. When you convert a character to binary, you write that ASCII code in base-2 padded to 8 digits. The letter H is code 72, which in binary is 01001000. The letter i is code 105, which is 01101001. The word Hi in binary is 01001000 01101001.
This tool applies that mapping to every character in your input and outputs the binary string with one 8-bit group per character, separated by spaces. The output represents exactly how those characters would look in a raw memory dump, byte by byte.
Steganography - hiding information within other data - often involves embedding text as binary inside images, audio files, or other binary formats. Understanding the binary representation of your payload text is a prerequisite for any manual steganography exercise. This converter gives you that binary form instantly, which you can then embed bit by bit into your carrier.
Character encoding tutorials and computer science courses frequently illustrate string storage by showing the binary value of each character. Being able to enter any text and immediately see all the binary values - without writing code - makes it much easier to follow along or verify your understanding.
CTF (capture-the-flag) security challenges sometimes present messages encoded as binary strings. Converting text to binary here helps you generate test cases and verify that your decoder is working correctly.
Every character in your input - including spaces, punctuation, digits, and letters - gets its own 8-bit binary group. A space character (ASCII 32) becomes 00100000. A period (ASCII 46) becomes 00101110. Newlines are included as 00001010 (ASCII 10 for LF).
The output is a single line of 8-bit groups separated by spaces, reflecting the byte-by-byte layout of the string in memory. For multi-line input, newlines in the text appear as their ASCII binary values rather than breaking the output into multiple lines. This keeps the output easy to copy as one block.
Does this tool support UTF-8 or only ASCII?
The tool uses the ASCII code point for each character. For characters within the ASCII range (0-127), this is identical to their UTF-8 encoding. Characters outside that range - accented letters, emoji, CJK characters - are encoded differently in UTF-8 (as multi-byte sequences) and are not represented correctly by this single-byte ASCII mapping.
Why are the binary groups always 8 bits wide?
Although pure ASCII only uses 7 bits (values 0-127), computers store characters in 8-bit bytes for alignment and compatibility reasons. The leading bit is 0 for all standard ASCII characters. Using 8 bits per group matches the actual byte representation in memory.
Can I paste the output back into the binary-to-text converter to verify it?
Yes. The output format from this tool - 8-bit groups separated by spaces - is exactly the expected input format for the binary-to-text converter. You can round-trip any ASCII text through both tools to confirm the encoding and decoding are consistent.