Binary Converter

Convert text to binary, binary to text, decimal to binary, binary to decimal, hex to binary and more — all in one tool. Real-time conversion, no signup needed.

Supports all printable ASCII characters Copied!
Copied!

How to convert text to binary

Each character is converted to its ASCII decimal value, then that decimal number is converted to 8-bit binary. For example:

H  →  72  →  01001000
i  →  105 →  01101001
!  →  33  →  00100001

"Hi!" → 01001000 01101001 00100001

To convert binary back to text, each 8-bit group is converted back to a decimal number, then looked up in the ASCII table to get the character.

Frequently asked questions

How do I convert text to binary?
Type or paste your text into the Text ↔ Binary tab above. Each character is automatically converted to its 8-bit binary equivalent using its ASCII value. The binary groups are separated by spaces for readability.
How do I convert binary to decimal?
Use the Decimal ↔ Binary tab. To do it manually: multiply each binary digit by 2 raised to its position (from right, starting at 0), then add all the results. Example: 1101 = 1×8 + 1×4 + 0×2 + 1×1 = 13.
What is binary code?
Binary code is a numbering system that uses only two digits — 0 and 1. Computers use binary because transistors have two states: on (1) and off (0). All data in a computer — text, images, programs — is ultimately stored and processed as binary numbers.
How many bits does a letter take in binary?
In standard ASCII encoding, each character takes 8 bits (1 byte). For example, the letter 'A' is 65 in decimal and 01000001 in binary. In UTF-8 (Unicode), common English characters still use 1 byte, but other characters can use 2–4 bytes.
What is hexadecimal and why is it used?
Hexadecimal (hex) is a base-16 numbering system using digits 0–9 and letters A–F. It's used in computing because one hex digit represents exactly 4 bits, making it a compact way to write binary numbers. A byte (8 bits) can be written as two hex digits — e.g. FF = 11111111 = 255.
How do I convert letters to binary online?
Use the Text ↔ Binary tab above. Type any letters, numbers, or symbols and the tool instantly shows the binary representation. You can also convert binary back to letters by pressing the swap button.

Related tools