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.

ASCII characters and their byte values
CharacterBinary
A01000001
B01000010
Z01011010
a01100001
b01100010
z01111010
000110000
900111001
!00100001
?00111111