Text to Binary Converter 01

Convert text to binary, hexadecimal, octal, and decimal. Decode binary back to text. Perfect for developers and students.

0 characters

Output Options

Binary (Base 2)

01001000 01100101 01101100 01101100 01101111

Hexadecimal (Base 16)

48 65 6C 6C 6F

Octal (Base 8)

110 145 154 154 157

Decimal (Base 10 / ASCII)

72 101 108 108 111

Try these examples:

Common ASCII Reference

CharDecHexBinary
A654101000001
B664201000010
Z905A01011010
a976101100001
z1227A01111010
0483000110000
9573900111001
Space322000100000

Understanding Number Systems

Binary (Base 2)

Uses only 0 and 1. Each digit represents a power of 2. Computers use binary because transistors have two states: on (1) and off (0).

"A" = 01000001 = 64+1 = 65

Hexadecimal (Base 16)

Uses 0-9 and A-F. Compact way to represent binary (4 bits = 1 hex digit). Common in programming and web colors.

"A" = 41 = 4×16 + 1 = 65

Octal (Base 8)

Uses 0-7. Historically used in computing (3 bits = 1 octal digit). Still seen in Unix file permissions.

"A" = 101 = 1×64 + 0×8 + 1 = 65

Decimal (Base 10)

Our everyday number system. In computing, decimal values are ASCII codes that map to characters.

"A" = 65 (ASCII code)

How Text Becomes Binary

Computers do not store letters; they store numbers. Every character on your keyboard is assigned a numeric code point by a character set. The oldest and most fundamental of these is ASCII, which maps 128 characters to the numbers 0 through 127. The capital letter A is code 65, lowercase a is 97, and the digit 0 is 48. This converter takes each character, looks up its code, and writes that number in the base you choose.

To turn a code into binary, the number is expressed as a sum of powers of two and padded to a full byte: eight bits. That is why every character above appears as an eight-digit group like 01000001. Reading right to left, the bit positions are worth 1, 2, 4, 8, 16, 32, 64, and 128; adding the positions that hold a 1 reconstructs the original code. For A that is 64 + 1 = 65. Because every byte is exactly eight bits, you can decode binary back to text simply by slicing the stream into groups of eight, which is exactly what this tool does when you paste binary without spaces.

Characters beyond the basic English set (accented letters, symbols, emoji) need more than one byte. UTF-8, the encoding of the modern web, keeps the original ASCII bytes unchanged but uses two to four bytes for everything else. That is why an emoji produces far more than eight bits. The order in which multi-byte values are stored is called endianness: big-endian writes the most significant byte first, little-endian writes it last. UTF-8 sidesteps the ambiguity by defining a fixed byte order, but you will meet endianness again the moment you work with raw integers or file formats.

Frequently Asked Questions

Why is binary important in computing?

Computers are built from billions of transistors that can only be in two states: on or off. Binary (1 and 0) directly maps to these states, making it the fundamental language of all digital systems.

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

ASCII uses 7 bits to represent 128 characters (English letters, numbers, symbols). UTF-8 is backward-compatible with ASCII but can represent over 1 million characters including emojis and international scripts, using one to four bytes per character.

Why do programmers use hexadecimal?

Hex is more compact than binary (FF vs 11111111) and maps perfectly to bytes (2 hex digits = 1 byte = 8 bits). It is used for memory addresses, colors like #FF0000, and debugging.

Why is every character eight bits long?

A group of eight bits is called a byte, and a single byte can represent 256 different values (0 to 255), which is enough for the entire ASCII set. This tool pads each character code to a full eight-bit byte, so decoders can reliably split a binary stream into characters even when no spaces separate them.

How do I decode binary back into text?

Switch to Binary → Text mode and paste your binary. The tool accepts bytes separated by spaces, or a continuous stream that it slices into eight-bit groups. Each group is converted from base 2 to its numeric code, then to the matching character.

Can I convert numbers and symbols, not just letters?

Yes. Every printable character has a code point, so digits, punctuation, and spaces all convert. The digit 0 is code 48, a space is code 32, and an exclamation mark is code 33. Try the built-in examples to see them side by side in binary, hex, octal, and decimal.