Text to Binary Converter
Convert text to binary, hexadecimal, decimal, octal, or Base64 — and back. Live conversion as you type. One character per byte, space-separated.
All conversions happen in your browser. No data is sent anywhere.
Text ↔ Binary
Each character is encoded as an 8-bit binary number, space-separated.
Text ↔ Hexadecimal
Each character is encoded as a 2-digit hex number (00–FF), space-separated.
Text ↔ Decimal (ASCII codes)
Each character is shown as its ASCII/Unicode decimal code point, space-separated.
Text ↔ Octal
Each character is encoded as a 3-digit octal number, space-separated.
Text ↔ Base64
Encodes text to Base64. Supports UTF-8 characters.
How It Works
ASCII & Unicode Code Points
Each character has a numeric code point. ASCII covers the first 128 characters (0–127). For example: 'A' = 65, 'a' = 97, '0' = 48, space = 32. The same code point can be expressed in binary (01000001), hex (41), decimal (65), or octal (101). This converter uses the character's code point for all conversions.
Binary vs Hex vs Base64
Binary uses only 0 and 1 — 8 bits per character, the most verbose format. Hex uses base-16 (0–9, A–F) — 2 hex digits per character, compact and widely used in programming. Base64 encodes bytes using 64 printable characters — used in data URLs, email attachments, and JSON/XML encoding of binary data.
Related Tools
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from any text input.
Open tool →URL Encoder / Decoder
Encode and decode URLs, percent-encoding special characters for safe transmission.
Open tool →Character Counter
Count characters, words, sentences, and paragraphs in any text. Live update.
Open tool →FAQ
How do you convert text to binary?
Each character is converted to its ASCII (or Unicode) decimal code point, then written in base 2. 'A' = ASCII 65 = binary 01000001. This converter represents each character as 8 bits (1 byte), space-separated. To decode, each 8-bit group is converted back to its code point, then to a character.
What is hexadecimal?
Hexadecimal (hex) is base 16, using digits 0–9 and letters A–F. Each hex digit represents 4 bits, so two hex digits = one byte. 'A' = hex 41. Hex is widely used in programming, color codes (#FF5733), memory addresses, and debugging because it's compact and maps cleanly to binary.
What is Base64?
Base64 encodes binary data using 64 printable ASCII characters. It turns 3 bytes into 4 characters, increasing size by ~33%. Used in data URIs (images embedded in CSS/HTML), email attachments (MIME), JWT tokens, and API responses to safely transmit binary over text-only channels.
What is the difference between encoding and encrypting?
Encoding (binary, hex, Base64) is a reversible transformation that changes the representation of data without hiding it — anyone can decode it. Encryption uses a secret key to make data unreadable without the key. Base64 is encoding, not encryption — it provides no security on its own.