Number Converters · Browser · Free
String to Binary Converter
Type, paste, or drop text files to encode strings into binary byte values, or use Swap conversion to decode binary digits back to text. Customize delimiters and character encodings, inspect selections, and export results as text or raw binary files.
The controls
The input area accepts text or binary input, with support for Open File and drag-and-drop file loading. The character encoding menu offers ASCII, UTF-8, UTF-16 variants, and legacy international encodings. The delimiter menu provides Space, Comma, None, or a user-defined custom delimiter.
Convert runs the transformation, Reset restores default settings, and Swap conversion flips direction between string-to-binary and binary-to-string while carrying forward your delimiter and encoding settings.
Use View selection to inspect and highlight corresponding bytes or characters between input and output boxes. Copy puts the output on your clipboard, Save exports a text file, and Save Binary File writes raw binary bytes.
String to binary formula
Each character is replaced by its byte value, and those values are written in the same order as the text with the delimiter you chose between them.
The ASCII values come straight from the table below: A is 01000001, a is 01100001 and 0 is 00110000. Text that mixes those characters simply places the matching values next to each other.
| Character | Binary |
|---|---|
| A | 01000001 |
| B | 01000010 |
| Z | 01011010 |
| a | 01100001 |
| b | 01100010 |
| z | 01111010 |
| 0 | 00110000 |
| 9 | 00111001 |
| ! | 00100001 |
| ? | 00111111 |