Text to Binary Converter
Convert text to binary code and binary back to text — free and instant
Character Table
| Char | Decimal | Binary | Hex |
|---|---|---|---|
100% Private
All conversion happens locally in your browser using JavaScript. No data is ever sent to any server.
How Does Text to Binary Conversion Work?
Understanding the step-by-step process of encoding human-readable text into binary code
Every character you type is internally represented as a number called a code point. In the ASCII standard, the letter A is code point 65, B is 66, and so on. Converting text to binary simply means expressing each of those decimal numbers in base 2 — the binary numeral system.
Step 1: Character
Start with any text character — a letter, digit, or symbol. For example the uppercase letter H.
Step 2: ASCII / Decimal
Look up the character's ASCII code point. H maps to decimal 72 in the ASCII table.
Step 3: Binary
Convert the decimal to base 2. 72 in binary is 01001000 — an 8-bit byte representation.
| Character | Decimal (ASCII) | Binary (8-bit) | Hex |
|---|---|---|---|
| H | 72 | 01001000 | 48 |
| e | 101 | 01100101 | 65 |
| l | 108 | 01101100 | 6C |
| l | 108 | 01101100 | 6C |
| o | 111 | 01101111 | 6F |
"Hello" in binary: 01001000 01100101 01101100 01101100 01101111
What Is ASCII & Why Does It Matter?
The foundational character encoding standard that maps text to numbers
ASCII Standard
ASCII (American Standard Code for Information Interchange), published in 1963, defines 128 characters numbered 0–127. This includes 26 uppercase letters, 26 lowercase letters, 10 digits, 32 punctuation and symbol characters, and 34 control characters.
Unicode & UTF-8
Modern systems use Unicode (over 140,000 characters) with UTF-8 encoding, which is backward-compatible with ASCII for the first 128 characters. Accented letters, emojis, and non-Latin scripts use multiple bytes in UTF-8.
Binary in Computers
Computers use binary because transistors have two stable states: on (1) and off (0). A single binary digit is a bit. Eight bits form a byte, which can represent 256 different values (0–255) and holds one ASCII character.
Hex as Shorthand
Hexadecimal (base 16) is a compact way to write binary. Each hex digit represents exactly 4 bits, so one byte is always 2 hex digits. Programmers prefer hex because it is much shorter than binary while remaining directly convertible.
Frequently Asked Questions
Common questions about text to binary conversion and this tool
'A' = 65 decimal = 01000001 binary. This tool performs that conversion for every character in your input.01001000, e=01100101, l=01101100, l=01101100, o=01101111. The full binary for "Hello" is: 01001000 01100101 01101100 01101100 01101111.