Binary Code Converter — Convert Binary to Text, Decimal, Hex Instantly
Last updated:
A free online tool that converts between binary code and text, decimal numbers, hexadecimal, and ASCII. All conversion runs in your browser — no signup, no upload, no tracking.
Multi-mode Binary Converter
What this tool does
Switch between six conversion modes using the buttons above. Common uses include decoding binary strings from CTF challenges, generating ASCII binary for class assignments, and inspecting hex / decimal representations of small data.
If you specifically need to translate binary to English text (and back), see our dedicated Binary Code Translator.
Quick Examples
| Text | Binary (UTF-8) |
|---|---|
| A | 01000001 |
| Hi | 01001000 01101001 |
| Hello | 01001000 01100101 01101100 01101100 01101111 |
How to use
- Pick a conversion mode from the buttons above (e.g. Text → Binary or Binary → Text).
- Type or paste your input into the Input box. You can also click 📁 Open File or drag a
.txtfile directly onto the input area. - Adjust the Separator option if you want different output spacing (space, none, comma, or newline).
- The result appears instantly in the Output box. Click Copy to copy it to your clipboard, or Swap (⇅) to reverse the conversion.
Frequently Asked Questions
How do I convert text to binary?
Type any text in the Input box. The tool converts each character to its 8-bit binary code (UTF-8 encoded) and displays the result instantly. Spaces separate bytes for readability.
How do I convert binary back to text?
Switch the mode to "Binary → Text", paste your binary code (with or without spaces). The tool groups bits into 8-bit bytes and decodes them as UTF-8 text.
Why do I see "Decoded bytes are not valid UTF-8"?
Your binary likely came from a different encoding (e.g., raw bytes, Latin-1) or is corrupted. Try Binary → Decimal or Binary → Hex to inspect the raw numbers instead.
What is the maximum input length?
The tool accepts up to 100,000 characters per conversion. For larger batches, split your input or use the command-line equivalent.
Is my input sent to your servers?
No. All conversion happens entirely in your browser using JavaScript. We never see what you type, and no input is transmitted.