Toolzent

Binary Translator

Free binary translator to convert text to binary and binary to text instantly. Each character becomes 8-bit ASCII binary, decoded back to readable text in your browser.

Updated 2026-06-09 · Free · No sign-up · Runs privately in your browser

Binary
How it works & per-character breakdown
Per-character map
CharCode pointEncoded

What is a Binary Translator?

A binary translator converts readable text into binary code and binary code back into text. Each character is turned into its Unicode value written in base 2, zero-padded to 8 bits and separated by spaces. Enter Hi and you get 01001000 01101001; paste that binary back and you get Hi. Everything runs instantly in your browser.

What does this tool do?

It works in both directions. Going text to binary, it takes each character, finds its code point, and writes that number as an 8-bit binary byte, joining the bytes with spaces. Going binary to text, it splits your input on whitespace, reads each group of digits as a base-2 number, and turns that number into the matching character. The output updates live as you type, so you see the result immediately and can copy it.

How does it work?

The method is a straight character-by-character mapping between symbols and numbers. Every character has a Unicode code point, a whole number that identifies it. Standard ASCII letters, digits and punctuation have code points from 0 to 127, which all fit inside one 8-bit byte.

To convert text to binary, the tool repeats three steps for each character:

  1. Read the character’s code point (for example, A is 65).
  2. Write that number in base 2 (65 becomes 1000001).
  3. Zero-pad it to 8 bits (01000001) and add a space before the next byte.

To convert binary to text, it reverses the process. The input is split on whitespace into tokens. Each token is parsed as a base-2 number, and that number is treated as a code point and converted into a character. There is one rule to know: a token is only valid if it contains nothing but 0 and 1. If any other character appears in a token, the tool shows an error instead of guessing, so you always get a correct answer or a clear warning, never a silently wrong one.

Examples

Each example below follows the exact logic above: code point, then base 2, then zero-padded to 8 bits.

Example 1 — “Hi” becomes 01001000 01101001.

  1. H has code point 72, which is 01001000 in 8 bits.
  2. i has code point 105, which is 01101001 in 8 bits.
  3. Joined with a space: 01001000 01101001.

Example 2 — “A” becomes 01000001.

  1. A has code point 65.
  2. 65 in binary is 1000001, padded to 01000001.
  3. A single character gives a single byte: 01000001.

Example 3 — “Hey” becomes 01001000 01100101 01111001.

  1. H is 72 → 01001000.
  2. e is 101 → 01100101.
  3. y is 121 → 01111001, giving 01001000 01100101 01111001.

Decoding works in reverse. Paste 01001000 01101001 into the tool and it splits into 01001000 and 01101001, reads them as 72 and 105, and returns Hi. Likewise 01000111 01101111 decodes to Go (71 is G, 111 is o).

ASCII to binary reference chart

These common characters are computed with the same rules as the tool, so you can use the chart as a quick lookup. The decimal column is the Unicode code point; the binary column is that number zero-padded to 8 bits.

CharacterDecimal8-bit Binary
A6501000001
B6601000010
H7201001000
Z9001011010
a9701100001
e10101100101
i10501101001
o11101101111
y12101111001
z12201111010
0 (zero)4800110000
95700111001
space3200100000
!3300100001

Notice that uppercase and lowercase letters differ by exactly 32 in decimal, which is why A (65) is 01000001 and a (97) is 01100001 — only one bit changes.

Common uses

Translating between text and binary shows up across coding, teaching and everyday curiosity. Typical situations include:

  • Students and learners working through computer-science assignments who need to see how a letter like A maps to 01000001, or check a homework answer step by step.
  • Developers sanity-checking how characters are encoded, debugging a byte stream, or producing a quick sample of binary for a test fixture or a demo.
  • Hobbyists and puzzle solvers decoding a string of 0s and 1s found in a game, an escape room, a CTF challenge, or a piece of geek art back into readable words.
  • Teachers generating clean, accurate text-to-binary examples for slides and worksheets without doing the padding by hand.

Tips and common mistakes

A few details cause most confusion when moving between text and binary:

  • Binary is encoding, not encryption. Writing Hi as 01001000 01101001 hides nothing — anyone can paste it back and read it. Never treat binary as a way to protect secrets.
  • Keep the spaces between bytes. This tool splits the input on whitespace, so each byte must be a separate token. Running everything together without separators will not decode the way you expect.
  • Use only 0 and 1 when decoding. A token with any other character, such as a letter or a stray 2, triggers an error. Strip out commas, dashes or 0b prefixes before pasting.
  • Bytes are 8 bits, padded with leading zeros. The code point 65 is 1000001, which is only 7 bits; the tool pads it to 01000001. Dropping the leading zero changes the alignment.
  • Binary is not the same as ASCII numbers or hex. 01000001 is the value 65 in base 2, not the digits “6” and “5”. If you want base 16 instead, that is a separate notation.

Limitations and notes

This tool zero-pads every character to 8 bits, which is perfect for standard ASCII (code points 0 to 127, all under 128). A character whose code point needs more than 8 bits would produce a longer binary string than 8 digits, and to decode such a value back you would paste that full token as one group. When decoding, the input is split purely on whitespace, and any token that is not made entirely of 0 and 1 is reported as an error rather than converted. Everything happens locally: the translation is plain JavaScript running in your browser, so your text is never uploaded, logged or stored, and the tool keeps working offline once the page has loaded.

For more developer conversions, pair this with the base64 encode and decode tool and the hex to rgb converter, or count characters in your text with the word counter, and browse the full Dev & Tech tools collection.

Frequently asked questions

How do I translate text to binary?+

Type or paste your text into the tool. Each character's Unicode value is written in base 2 and zero-padded to 8 bits, with the bytes separated by spaces.

What is "Hi" in binary?+

Hi is 01001000 01101001. H is 72, which is 01001000, and i is 105, which is 01101001, each as an 8-bit byte.

How do I convert binary back to text?+

Paste space-separated binary into the tool. It splits on whitespace, reads each group as a base-2 number, and turns that code point into a character.

What is the binary code for the letter A?+

Capital A is 01000001. Its ASCII code is 65, and 65 written in 8-bit binary is 01000001.

Why is each character exactly 8 bits long?+

Standard ASCII characters fit in one byte, so this tool zero-pads every code point to 8 bits, keeping bytes aligned and easy to read.

What happens if I enter something that is not 0 or 1?+

Any token that contains a character other than 0 or 1 is rejected with an error, because only binary digits can be parsed as a byte.

Is binary the same as encryption?+

No. Binary is just another way to write the same characters, fully reversible by anyone. It hides nothing and provides no security.

Is my text uploaded anywhere when I translate it?+

No. The conversion runs entirely in your browser with JavaScript, so your text never leaves your device and nothing is stored.