Text to Binary Converter
Convert text to binary, hex, decimal or Base64 and back again.
About the Text to Binary Converter
Computers store text as numbers. Each character is encoded as one or more bytes using UTF-8, the standard for the web: plain English letters take one byte (the same as ASCII), while accented letters take two, and most emoji take four.
Binary shows each byte as 8 bits, hex as two digits 00–FF, decimal as 0–255, and Base64 packs bytes into letters and digits for sending in emails and URLs.
The formula
byte = Σ bitᵢ × 2ⁱ; 'A' = 65 = 01000001₂ = 41₁₆
Examples
| Character | Decimal | Binary | Hex |
|---|---|---|---|
| A | 65 | 01000001 | 41 |
| a | 97 | 01100001 | 61 |
| 0 | 48 | 00110000 | 30 |
| space | 32 | 00100000 | 20 |
| é | 195 169 | 11000011 10101001 | C3 A9 |
Worked example
Example: Encoded = 01001111 01001011
- Inputs: Direction: Text → code; Code: Binary; Input: OK.
- Formula: byte = Σ bitᵢ × 2ⁱ; 'A' = 65 = 01000001₂ = 41₁₆
- Result: Encoded = 01001111 01001011
Questions people ask
Is binary the same as ASCII?
ASCII is the first 128 codes; UTF-8 matches ASCII for those and extends it for every other language.
Why does an emoji become 4 bytes?
UTF-8 needs four bytes for characters beyond U+FFFF, which includes most emoji.