Text to Binary Converter
Type any sentence into the Text Input box and the Text to Binary Converter writes out the binary code point behind every character. Click Convert and your full binary string appears in Binary Output, ready to copy wherever you need it. Paste your text into the text to hex converter whenever you need its hexadecimal character codes for a log or spec.
How the Text to Binary Converter Works
Type or paste your text into Text Input and the converter walks through it one character at a time, looks up each character's Unicode code point — the number that uniquely identifies it, the same numbering ASCII uses for its first 128 characters and that Unicode extends to cover every script and symbol in use today — and writes that number out in binary. Click Convert (or just watch it update live as you type) and the full binary string appears in Binary Output, space-separated so each character's code stays distinct and easy to copy.
Each binary group is padded to at least 8 bits, matching the familiar one-byte-per-character convention from basic ASCII. Characters whose code point is larger than what 8 bits can hold — accented letters, symbols outside the basic Latin range, emoji — simply produce a longer binary group rather than being truncated or corrupted, since the converter isn't limited to the 0–255 range the way a strict single-byte encoding would be.

Manual Conversion: From a Character to Its Binary Code
Understanding the manual process makes it easier to sanity-check the converter's output. Here's how to convert a single character to binary by hand: The decimal to binary converter runs entirely in your browser, so the numbers you convert never leave your device.
- Step 1: Look up the character's decimal code point. The capital letter 'A' has a code point of 65 (this is also its standard ASCII code, since ASCII's first 128 code points are identical to Unicode's).
- Step 2: Convert that decimal value to binary — repeatedly divide by 2 and record the remainders, then read them in reverse.
- Step 3: Pad the result to at least 8 bits by adding leading zeros, so every basic character comes out as a full byte.
Worked example — converting the letter 'A':
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
65 = 64 + 1, so 'A' as an 8-bit binary value is 01000001 — exactly what the text to binary converter returns for a single-character input of "A".
Why Computers Represent Text as Binary
Computers store and process everything in binary (base-2) because their smallest components — transistors and logic gates — only reliably distinguish two states: off (0) and on (1). Text needs a translation layer between human-readable characters and that two-state hardware, which is exactly what character-encoding standards provide: Run a hex dump through the little endian hex to decimal converter whenever you suspect the bytes were stored in little-endian order.
- ASCII assigns code points 0–127 (7 bits) to the basic Latin alphabet, digits, punctuation, and control characters — the foundation every later encoding builds on.
- Unicode extends that idea to cover essentially every script and symbol in use worldwide, assigning each character a unique code point far beyond the original 128-character ASCII range. This converter uses each character's Unicode code point directly, so text in any script converts correctly, not just basic English.
Mathematically, for a decimal code point d, the conversion is simply:
$$Binary = \text{padTo8Bits}\bigl(\text{ToBinary}(d)\bigr)$$
Worked Example: Converting "Hello" to Binary
Here's the full character-by-character breakdown for the word "Hello":
| Character | Code Point (decimal) | Binary | Hex |
|---|---|---|---|
| H | 72 | 01001000 | 48 |
| e | 101 | 01100101 | 65 |
| l | 108 | 01101100 | 6C |
| l | 108 | 01101100 | 6C |
| o | 111 | 01101111 | 6F |
Reading the Binary column left to right and joining with spaces gives the converter's actual output for "Hello":
01001000 01100101 01101100 01101100 01101111
Common Character Code Points and Their Binary Values
| Character | Code Point (Dec) | Hex | Binary |
|---|---|---|---|
| Space | 32 | 20 | 00100000 |
| ! | 33 | 21 | 00100001 |
| 0 | 48 | 30 | 00110000 |
| 5 | 53 | 35 | 00110101 |
| A | 65 | 41 | 01000001 |
| a | 97 | 61 | 01100001 |
| @ | 64 | 40 | 01000000 |
| Z | 90 | 5A | 01011010 |
| z | 122 | 7A | 01111010 |
Decoding: Turning Binary Back Into Text
The Binary to Text Converter reverses this process. When decoding, separate each character's binary value with a space or a new line — the tool splits on whitespace and treats each token as one character's code point, converting it back to the character it represents.
Automating Text to Binary Conversion in Code
If you need to reproduce this conversion in your own code, JavaScript's string iteration plus codePointAt gives you the same full-Unicode behavior this converter uses (as opposed to charCodeAt, which only returns a UTF-16 code unit and can split characters outside the Basic Multilingual Plane, like many emoji, into two values):
// Convert 'abc' to binary, one code point per character
const text = 'abc';
const binaryString = Array.from(text)
.map(ch => ch.codePointAt(0).toString(2).padStart(8, '0'))
.join(' ');
console.log(binaryString); // 01100001 01100010 01100011Common Uses for Text to Binary Conversion
- Learning character encoding — seeing the direct, mechanical mapping between letters and the numbers computers actually store, one of the first concepts covered in any computer-science course.
- Debugging text and encoding issues — verifying exactly which code points a string contains when something looks garbled, mismatched, or unexpectedly truncated.
- Puzzles and CTF challenges — decoding binary character-code ciphers, or generating them for a challenge, is a common puzzle format that maps directly onto this conversion.
- Checking manual base-conversion homework — confirm your own decimal-to-binary arithmetic for a character's ASCII or Unicode code point against a known-correct result.
Frequently Asked Questions
Does this support letters beyond basic English text?
Yes, it works with any Unicode character, not just the basic ASCII range — each character's actual code point is used, whatever it is.
Does this tool send my text anywhere?
No. Everything runs locally in your browser using client-side JavaScript. Nothing you type is uploaded or stored.
Is this the same as encryption?
No — this is a direct, publicly-known representation of each character's code point, not a cipher. It doesn't provide any security or secrecy.
How should I separate binary values when decoding?
Separate each value with a space or a new line — the tool splits on whitespace and treats each token as one character's code.
Is this the same as UTF-8 byte encoding?
Not quite — this converter outputs each character's raw Unicode code point in binary, minimum 8 bits per character. True UTF-8 encoding represents some code points using multiple bytes with specific bit-pattern rules. If you specifically need byte-level UTF-8 output, use the Text to UTF-8 Hex Converter instead.