Binary Encoder
Convert text to binary code and decode binary back to text. Instant, free, and works entirely in your browser.
How Binary Encoding Works
Binary encoding converts text characters into sequences of 0s and 1s. Each character is first converted to its ASCII (or UTF-8) code number, then that number is expressed in binary (base-2) format.
Conversion Steps:
- Take each character in your text
- Look up its ASCII code (e.g., 'H' = 72)
- Convert that number to binary (72 = 1001000)
- Pad with leading zeros to make 8 bits (01001000)
- Repeat for all characters
Example: "Hi" in Binary
'H' β ASCII 72 β 01001000
'i' β ASCII 105 β 01101001
Result: 01001000 01101001
ASCII to Binary Reference
| Character | ASCII Code | Binary |
|---|---|---|
| A | 65 | 01000001 |
| B | 66 | 01000010 |
| Z | 90 | 01011010 |
| a | 97 | 01100001 |
| z | 122 | 01111010 |
| 0 | 48 | 00110000 |
| 9 | 57 | 00111001 |
| (space) | 32 | 00100000 |
Full ASCII table has 128 standard characters (0-127) and 256 extended characters.
Understanding Binary Numbers
Binary is a base-2 number system, using only 0 and 1. Each position represents a power of 2, just like decimal positions represent powers of 10.
Position values (8-bit):
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1
Example: 01001000 = 0+64+0+0+8+0+0+0 = 72 = 'H'
This positional system makes binary perfect for computers: each bit can be stored as an electrical on/off state, making data storage incredibly reliable.
Frequently Asked Questions
Tool Features
Instant Conversion
Real-time encoding and decoding as you type.
8-bit Format
Standard 8-bit binary with proper padding.
Privacy Focused
All processing happens in your browser. No data sent to servers.
Free Forever
No registration, no limits, completely free to use.