What you can do with Text & Binary Converter
- Convert text to binary
- Decode binary text
How this encoding and decoding works
Convert text to 8-bit binary and binary back to text using UTF-8, one byte per space-separated group.
Example input
Hello EasyExample output
01001000 01100101 01101100 01101100 01101111 00100000 01000101 01100001 01110011 01111001Practical workflow
- Choose Text to Binary or Binary to Text.
- Paste the value — for decoding, groups of 0s and 1s with or without spaces.
- Click Convert, then Copy the output or Swap to feed the result back as input.
Common use cases
- Check how a character is stored as bytes when learning about encodings.
- Decode a binary message from a puzzle, CTF challenge, or classroom exercise.
- Verify the UTF-8 bytes of accented letters or emoji when debugging encoding issues.
Important notes and limitations
- Text is encoded with the browser's TextEncoder as UTF-8, so a character outside ASCII produces two to four bytes rather than one.
- Decoding strips all whitespace first; the remaining digits must contain only 0 and 1 and their count must be a multiple of 8.
- Input is bounded to 65,536 UTF-16 code units and 65,536 UTF-8 bytes for encoding; binary input is limited to 600,000 raw characters and 65,536 decoded bytes.
- Malformed UTF-8 byte sequences decode to the Unicode replacement character, as defined by the browser TextDecoder default behavior.
- Everything runs locally in the browser. Input and mode stay in tab memory and clear when you reload or leave the tool.
Unix CLI binary, hex & bitwise tools
xxd view binary bits of string
echo -n 'Hello' | xxd -bOutputs the exact 8-bit binary representation for each character in the string using standard Unix xxd.
Convert raw binary string to ASCII text
echo '01001000 01101001' | tr -d ' ' | perl -lpe '$_=pack("B*",$_)'Packs an 8-bit binary string into its corresponding ASCII character bytes in terminal.
Python binary string inspection
python3 -c "print(' '.join(format(b, '08b') for b in 'EasyUtils'.encode('utf-8')))"Encodes a string into UTF-8 bytes and prints zero-padded 8-bit binary strings for each byte.
Binary Data Encoding & Byte Architecture Reference
| Data Format | Bits per Character | Valid Character Set | Bytes for 100 Char String | Primary Application |
|---|---|---|---|---|
| Standard Binary (8-bit) | 8 bits (1 byte) | '0' and '1' separated by spaces or continuous | 100 bytes (800 bits) | Low-level bit manipulation, hardware protocols, microcontroller debugging |
| Hexadecimal (Base16) | 4 bits per hex nibble | 0-9, a-f (2 hex characters per byte) | 100 bytes (200 hex chars) | Memory addresses, cryptographic keys, bytecode representation |
| Base64 (RFC 4648) | 6 bits per character | A-Z, a-z, 0-9, +, / (with = padding) | ~133 bytes (+33% overhead) | Embedding binary assets in JSON, XML, HTML data URIs |
| 7-bit ASCII | 7 bits (MSB is 0) | Codes 0-127 (Standard English alphabet & control codes) | 100 bytes (Only valid for English / standard characters) | Legacy telecommunication, standard terminal control characters |
Binary string conversion & encoding troubleshooting
Binary string length is not a multiple of 8
Cause: Input contains missing leading zeros (e.g. '101' instead of '00000101') or incomplete bytes, causing decoding alignment errors.
Solution: Ensure every byte is padded to 8 bits with leading zeros before converting back to ASCII text.
Garbled characters or replacement symbols after binary decode
Cause: Decoding multi-byte UTF-8 sequences (like Turkish or accented characters: ğ, ü, é) as 1-byte ASCII.
Solution: Select UTF-8 decoding mode rather than raw 7-bit ASCII so multi-byte binary sequences are combined correctly.
Endianness mismatch when reading 16-bit or 32-bit integers
Cause: Most Significant Bit (Big-Endian) vs Least Significant Bit (Little-Endian) byte ordering difference between x86 and network protocols.
Solution: Network byte order is Big-Endian; x86/ARM processors store integers in Little-Endian. Reorder byte pairs accordingly.
Continue your workflow
- Hex Converter — Convert data between binary, hexadecimal, and decimal byte representations.
- Base64 Encoder — Encode binary byte sequences into safe alphanumeric Base64 strings.
- Number Base Converter — Convert integer values across binary, octal, decimal, and hexadecimal bases.
- Hash Generator — Generate cryptographic SHA-256 and MD5 hashes from raw binary payloads.
Frequently asked questions
Why does one letter become eight digits?
Each byte is written as eight bits. The letter A is byte 65, which is 01000001 in binary.
Why does an emoji produce four groups?
The tool uses UTF-8, where characters above U+FFFF take four bytes. Accented Latin letters take two bytes and most Asian scripts take three.
Why do I see “Binary string length must be a multiple of 8”?
After removing spaces the digit count did not divide evenly into bytes — a digit is missing or extra. Check the group boundaries.
Can I convert a number like 42 to binary here?
This tool converts the characters “4” and “2” to their UTF-8 bytes. To convert the numeric value 42 to 101010 use the Number Base Converter.
Focused guides for this tool
- Binary to Text & Text to Binary Converter — Translate binary 8-bit byte streams into readable text and text into binary code.