text to binary converter online — instant results

This binary converter online converts text to binary and hex in real time. All conversion uses native JavaScript and the TextEncoder API — no libraries, no server. Works in reverse too: paste binary or hex to decode back to text. The format is auto-detected so you can paste either format without selecting it manually.

Frequently Asked Questions

How do I convert text to binary?

Select "Text → Binary / Hex" mode and type or paste your text. The binary converter instantly shows the binary representation of each character as space-separated 8-bit groups. For example, "Hello" becomes "01001000 01100101 01101100 01101100 01101111". Each character is converted to its UTF-8 byte value, then to 8-bit binary.

What is binary code?

Binary code is a number system using only two digits: 0 and 1. Computers use binary because digital circuits have two states: on (1) and off (0). Text is represented in binary by first converting each character to a number (using a standard like UTF-8 or ASCII), then representing that number in base-2. The letter "A" is 65 in decimal, which is 01000001 in 8-bit binary.

How do I convert binary back to text?

Select "Binary / Hex → Text" mode and paste your binary code. Input should be space-separated 8-bit groups (e.g. "01001000 01100101"). The tool automatically detects binary format and converts each 8-bit group back to the corresponding character. Non-standard binary (not 8-bit groups) may not decode correctly.

What is the difference between binary and hexadecimal?

Binary (base-2) uses digits 0 and 1. Hexadecimal (base-16) uses digits 0–9 and letters A–F. Both can represent the same data — hex is more compact: one hex digit represents 4 binary digits, and two hex digits represent one byte (8 bits). The letter "H" is 01001000 in binary and 48 in hex. Programmers often prefer hex for readability.

How do I convert text to hexadecimal?

Use the same "Text → Binary / Hex" mode — the hex output is shown alongside the binary output. Each character becomes two hexadecimal digits representing its UTF-8 byte value. "Hello" becomes "48 65 6C 6C 6F" in hex (uppercase) or "48 65 6c 6c 6f" (lowercase). Use the toggle to switch between uppercase and lowercase hex.