ASCII to Binary Converter

Convert text to binary strings using various character encodings. Free online ASCII to binary converter with file support and customizable delimiters.

Swap

ASCII to Binary Converter - Convert Text to Binary Strings

This powerful ASCII to binary converter allows you to convert text to binary strings using various character encodings including ASCII, UTF-8, UTF-16, and many other international character sets. Perfect for programmers, developers, and anyone working with text data who needs to convert it to binary format.

How do I convert text to binary?

To convert text to binary:
1. Enter your text in the input area
2. Select the appropriate character encoding
3. Choose a delimiter (space, comma, none, or custom)
4. Click Convert

The tool will convert each character to its 8-bit binary representation and join them with your chosen delimiter.

What character encodings are supported?

The tool supports many character encodings including:
- ASCII/UTF-8 (default)
- UTF-16 (little and big endian)
- Windows-1252, Windows-1251, etc.
- ISO-8859 series (Latin1, Latin2, etc.)
- Asian encodings: Big5, Shift JIS, EUC-JP, etc.
- Cyrillic: KOI8-R, KOI8-U, CP866
- And many more international character sets

What delimiter options are available?

You can choose from several delimiter options:
- Space: Separate binary bytes with spaces (default)
- Comma: Separate with commas
- None: No delimiter between bytes
- User defined: Enter your own custom delimiter

This makes it easy to format the output for different use cases.

Can I open files directly?

Yes! The tool supports file opening modes:
- Open File: Opens text files and converts them to binary
- The tool will automatically load the file content into the input area

This makes it easy to work with existing files without manual copy-paste.

How does UTF-8 encoding work?

UTF-8 encoding handles multi-byte characters:
- ASCII characters (0-127): 1 byte each
- Extended characters (128-2047): 2 bytes each
- Most Unicode characters (2048-65535): 3 bytes each
- Surrogate pairs (65536+): 4 bytes each

The tool automatically handles the proper UTF-8 encoding for all character types.

What's the difference between ASCII and UTF-8?

ASCII is a 7-bit encoding (128 characters) that only covers basic English characters, while UTF-8 is a variable-width encoding that can represent any Unicode character:
- ASCII: Fixed 1 byte per character
- UTF-8: 1-4 bytes per character depending on the character
- UTF-8 is backward compatible with ASCII (ASCII characters are identical in both encodings)

Common ASCII to Binary Conversions

Character Decimal Binary Description
A 65 01000001 Uppercase A
B 66 01000010 Uppercase B
a 97 01100001 Lowercase a
b 98 01100010 Lowercase b
0 48 00110000 Digit 0
1 49 00110001 Digit 1
32 00100000 Space
! 33 00100001 Exclamation mark
@ 64 01000000 At symbol
" 34 00100010 Double quote
' 39 00100111 Single quote
8 56 00111000 Digit 8
9 57 00111001 Digit 9
z 122 01111010 Lowercase z
Z 90 01011010 Uppercase Z
\n 10 00001010 Newline
\t 9 00001001 Tab
\r 13 00001101 Carriage return
\0 0 00000000 Null character