Text to Binary
Convert text to binary, hex, octal or decimal — and decode it back.
Text to Binary Converter
The text to binary converter turns any text into its binary representation and decodes binary back into readable characters. Beyond binary, it also outputs hexadecimal, octal, and decimal, so you can see exactly how each character maps to its numeric code. It is a handy reference when you are learning character encoding, debugging byte-level data, building teaching examples, or crafting playful binary messages.
How it works
Conversion runs locally in your browser using JavaScript. As you type, each character is converted to its code point and rendered in the base you choose. Decoding works the same way in reverse: paste space-separated binary, hex, octal, or decimal and get the original text back. Because it processes everything client-side, there is no upload step and no waiting on a server.
Practical use cases
- Illustrate how ASCII and Unicode characters map to bits for students or docs.
- Inspect the byte values behind an unexpected string during debugging.
- Generate binary or hex representations to embed in tests or fixtures.
- Decode a binary string someone sent you back into plain text.
For byte-oriented encoding, pair this with the Base64 Encode / Decode tool, or convert numeric bases directly with the Number Base Converter. If you need to reshape strings first, the Case Converter is a useful companion.
Private by design
Your text is processed entirely in-browser and never uploaded. The tool is free, needs no account, and runs on all modern browsers including mobile, so you can encode and decode binary anywhere while keeping your data on your own device.
Frequently asked questions
Yes. Besides binary, the tool renders text in hexadecimal, octal, and decimal, and can decode any of those formats back to text.
Related tools
Number Base Converter
Convert numbers between binary, octal, decimal and hexadecimal.
Color Converter
Convert colors between HEX, RGB, HSL and HSV with a live preview.
CSV to Markdown Table
Paste CSV and get a GitHub-flavored Markdown table you can drop into any README.
Markdown to HTML
Render Markdown to clean, sanitized HTML with a live preview.