Text to Binary Converter

Convert text to binary, hexadecimal, octal, and decimal representations. Decode binary, hex, and octal back to readable text. Supports ASCII and UTF-8. Free, private, runs entirely in your browser.

Input

Output

Features

🔢

Multiple Formats

Convert text to binary (base-2), hexadecimal (base-16), octal (base-8), and decimal (base-10). Switch between formats instantly.

🔄

Bidirectional

Encode text to numeric formats or decode numeric representations back to readable text. Swap input and output with one click.

🌐

UTF-8 Support

Full support for ASCII and UTF-8 characters including international text, special symbols, and emoji with multi-byte encoding.

Real-Time

Conversion happens automatically as you type. Choose between space, comma, no separator, or newline formatting for output.

Understanding Text Encoding

At the lowest level, computers store all data -- including text -- as binary numbers (sequences of 0s and 1s). Text encoding is the system that maps human-readable characters to specific binary values. Understanding this mapping is fundamental to programming, networking, data processing, and cybersecurity.

ASCII Encoding

ASCII (American Standard Code for Information Interchange) is the foundation of text encoding. Developed in the 1960s, ASCII uses 7 bits to represent 128 characters: 26 uppercase letters (A-Z), 26 lowercase letters (a-z), 10 digits (0-9), 33 punctuation/symbol characters, and 33 control characters. For example, the letter "A" is encoded as decimal 65, binary 01000001, hex 41, and octal 101.

UTF-8 Encoding

UTF-8 is the dominant character encoding on the web, used by over 98% of all web pages. It is a variable-length encoding that uses 1 to 4 bytes per character. ASCII characters (code points 0-127) use exactly 1 byte, making UTF-8 backward compatible with ASCII. Characters outside the ASCII range use 2, 3, or 4 bytes with specific bit patterns to indicate the number of bytes in the sequence.

Number Base Systems

Frequently Asked Questions

How does text to binary conversion work?
Text to binary conversion works by converting each character to its ASCII or UTF-8 byte value, then representing each byte as an 8-bit binary number. For example, the letter "A" has ASCII value 65, which is 01000001 in binary. Multi-byte UTF-8 characters produce multiple 8-bit binary groups.
What is the difference between ASCII and UTF-8?
ASCII uses 7 bits to represent 128 characters (English letters, digits, punctuation, and control characters). UTF-8 is a variable-length encoding backward compatible with ASCII. It extends to 2-4 bytes per character to represent over 1.1 million characters from all world scripts, emoji, and symbols. The first 128 UTF-8 characters are identical to ASCII.
Can I convert binary back to text?
Yes, select "Decode" from the direction dropdown to convert binary, hexadecimal, octal, or decimal values back to readable text. The tool handles spacing between byte values and supports both ASCII and UTF-8 encoded data. You can also use the Swap button to quickly switch input and output.
What output formats are supported?
This tool supports four output formats: Binary (base-2, 8-bit groups like 01001000), Hexadecimal (base-16, 2-digit pairs like 48), Octal (base-8, 3-digit groups like 110), and Decimal (base-10, byte values like 72). You can choose space-separated, comma-separated, no separator, or newline-separated output.
Does this tool support emoji and special characters?
Yes, this tool supports all UTF-8 characters including emoji, accented letters, CJK characters, and other Unicode symbols. Multi-byte characters are encoded using their UTF-8 byte representation, producing 2-4 bytes per character depending on the Unicode code point.
Is my data secure when using this converter?
Yes, all conversions happen entirely in your browser using client-side JavaScript. No data is sent to any server, stored, or logged. Your text and converted output remain completely private on your device. You can verify this by checking your browser's network tab.

Explore More Developer Tools

Check out our other free tools. Encode Base64, convert number bases, generate hashes, and more -- all from your browser.

Base64 Encoder/Decoder →