Binary Translator
Type text and watch it turn into binary code instantly, or paste binary, hex, or decimal byte values to decode them back to text — nothing ever leaves your browser.
0 bytes (UTF-8)
Type in either box — the other updates instantly. Spaces and line breaks in the code box are ignored.
What binary code actually represents
Every character you type is stored by a computer as one or more bytes — 8-bit numbers from 0 to 255. Binary code simply writes each of those bytes out in base 2, using only the digits 0 and 1, so a single byte always looks like an 8-digit string such as 01001000. This binary translator does that conversion for you: it reads your text as UTF-8 bytes (the same encoding used on the web, in files, and in network protocols), then writes each byte as 8 bits, two hex digits, or a plain decimal number, and can reverse the process to rebuild the original text from any of the three.
How to convert text to binary (and back) here
- Text → binary: type or paste into the Plain text box on the Binary tab. The Binary code box fills in live, one 8-digit group per byte, separated by a space.
- Binary → text: paste a binary string into the Binary code box instead, and the Plain text box decodes it instantly. Extra spaces, tabs, or line breaks between the 8-bit groups are ignored, so binary copied from anywhere — a textbook, a spreadsheet, a multi-line list — still works.
- Hex and Decimal tabs: switch tabs to see the same bytes as two-digit hexadecimal (
48 65 6c 6c 6f) or plain decimal (72 101 108 108 111) instead of binary. Nothing is recalculated from scratch — it's the same underlying bytes shown in a different base.
Worked example: "hello" in binary
The word "hello" is five characters and, in plain ASCII/UTF-8, exactly five bytes. Converting each letter separately:
| Character | Decimal | Hex | Binary |
|---|---|---|---|
h | 104 | 68 | 01101000 |
e | 101 | 65 | 01100101 |
l | 108 | 6c | 01101100 |
l | 108 | 6c | 01101100 |
o | 111 | 6f | 01101111 |
01101000 01100101 01101100 01101100 01101111
Type "hello" into the Plain text box (or click "Try an example") and the Binary tab shows exactly this sequence — five groups of 8 digits, one per letter.
ASCII to binary quick-reference chart
A handful of common characters, for quick lookup or to sanity-check your own conversions:
| Character | Decimal | Hex | Binary |
|---|---|---|---|
| Space | 32 | 20 | 00100000 |
! | 33 | 21 | 00100001 |
0 | 48 | 30 | 00110000 |
9 | 57 | 39 | 00111001 |
A | 65 | 41 | 01000001 |
Z | 90 | 5a | 01011010 |
a | 97 | 61 | 01100001 |
z | 122 | 7a | 01111010 |
Binary vs. hex vs. decimal byte codes
All three tabs describe the exact same bytes — only the number base changes:
- Binary (base 2): every byte as exactly 8 digits of 0/1. Easiest to see the raw bits, but long to type or read (
01001000). - Hex (base 16): every byte as exactly 2 digits, 0-9 and A-F. Compact and the standard for hash values, color codes, and memory dumps (
48). - Decimal (base 10): every byte as a plain number from 0 to 255, the same values used in an ASCII table (
72).
Decimal:
72 105 33 | Hex: 48 69 21 | Binary: 01001000 01101001 00100001
Multi-byte characters: emoji and non-English text
Not every character fits in one byte. This translator converts text to UTF-8 first, so accented letters, Korean, Japanese, Chinese, Arabic, and emoji all round-trip correctly — a single visible character can produce two, three, or four bytes. For example, the Korean syllable "한" is 3 bytes (ed 95 9c in hex), and the emoji 😀 is 4 bytes (f0 9f 98 80 in hex). The byte counter under the code box always shows how many bytes your text actually became, which is often more than the number of characters you typed.
Common mistakes
- Mixing up bits and bytes. A single letter is one byte, written as 8 bits — not 8 bytes. A word like "hello" is 5 bytes, i.e. 40 bits total, shown here as five 8-digit groups.
- Forgetting multi-byte characters. Non-ASCII text (accents, CJK, emoji) is longer in bytes than in visible characters — don't assume 1 character = 1 byte = 8 digits when converting international text.
- Losing the byte boundaries. If you strip every space from a binary string, this tool still parses it correctly by re-splitting it into 8-digit groups — but manual reading by eye gets error-prone past a few bytes, so let the converter re-add the spacing for you.
What this tool doesn't do
This is a straightforward byte-level converter, not a general-purpose data compressor or a cryptographic tool — binary code by itself provides no security or size reduction, it's simply a different way of writing the same bytes. For pasted binary, hex, or decimal input that doesn't form complete, valid byte groups, the tool reports the problem instead of guessing at a result.
Sources & further reading
Frequently asked questions
How do I convert text to binary?
Type or paste any text into the Plain text box on the Binary tab. Each character is converted to its UTF-8 byte value, then written as an 8-digit binary number — for example the letter A (byte value 65) becomes 01000001. The Binary code box fills in live as you type, with one 8-bit group per byte separated by a space.
How is "hello" written in binary?
Lowercase "hello" is five bytes in UTF-8 — h, e, l, l, o — which convert to 01101000 01100101 01101100 01101100 01101111. Type "hello" into the Plain text box and the Binary tab shows exactly this sequence, or click "Try an example" for a ready-made demo.
Can this tool convert binary back to text?
Yes — paste a binary string into the Binary code box and it decodes to text instantly. Parsing is tolerant of formatting: spaces, tabs and line breaks between bytes are ignored, so "01001000 01101001", "0100100001101001", and binary copied from a multi-line list all work, as long as the digits form complete groups of 8 zeros and ones.
What's the difference between the Binary, Hex, and Decimal tabs?
All three tabs represent the exact same underlying bytes, just written in a different number base: Binary shows each byte as 8 bits (0 and 1), Hex shows it as two base-16 digits (0-9, A-F), and Decimal shows it as a plain base-10 number from 0 to 255. Switch tabs any time and the code box updates to match your current text without losing anything.
Is my text sent to a server when I convert it?
No. This binary translator runs entirely in your browser — your text and its binary, hex or decimal code never leave your device and nothing is uploaded or stored on a server. Only your last input and chosen tab are saved to this browser's local storage for convenience.