Text to binary converter
Type or paste text and get the binary as you type, one byte at a time.
Byte by byte
Every byte of your input, with the place values that add up to it. Hover a row to find that byte in the output.
| Character | Binary | Place values | Decimal | Hex |
|---|
How text becomes binary
Each character has a number. In ASCII and UTF-8, “A” is 65, “a” is 97, a space is 32 and the digit “7” is 55. Write that number in binary and pad it to eight bits, and you have the byte.
Characters outside basic English take more than one byte in UTF-8. “é” becomes two bytes, 11000011 10101001, and the waving-hand emoji becomes four: 11110000 10011111 10010001 10001011.
Pick ASCII only if the receiving system needs it: ASCII has 128 characters and rejects anything else, and the converter will tell you which character it couldn’t encode.
64 + 1 = 65 = A
Sources and method
- RFC 20 (STD 80), ASCII format for network interchange, section 4: the 128 ASCII codes and control-character names. Checked 2026-11-25.
- RFC 3629 (STD 63), UTF-8, a transformation format of ISO 10646, section 4: which byte sequences are valid UTF-8. Checked 2026-11-25.
- WHATWG Encoding Standard (Living Standard, updated 20 November 2026), section 9 (single-byte encodings, used for Windows-1252) and section 14 (UTF-16LE and UTF-16BE decoders). Checked 2026-11-25.
Encoding to UTF-16 writes each 16-bit code unit of the text in the chosen byte order (low byte first for LE, high byte first for BE). The Encoding Standard defines decoders for UTF-16 but not encoders, so this step is the site’s own code.
The ASCII option here is strict 7-bit ASCII (codes 0 to 127, per RFC 20) and rejects anything else. Browsers treat the label “ascii” as Windows-1252, which is why the two are listed separately.
Questions
Which encoding should I choose?
UTF-8 for almost everything. It matches ASCII for English letters, digits and punctuation, and it can encode every other character too.
How many bits is one letter?
Eight bits (one byte) for any ASCII character in UTF-8. Accented letters take 16 bits, most other scripts 16 or 24, and emoji 32.
Can I remove the spaces between bytes?
Yes. Choose “No spaces” for one continuous run of bits, or “One byte per line”. The binary to text converter reads all three back.