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

  1. 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.
  2. 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.
  3. 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:

CharacterDecimalHexBinary
h1046801101000
e1016501100101
l1086c01101100
l1086c01101100
o1116f01101111
So "hello" in binary is:
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:

CharacterDecimalHexBinary
Space322000100000
!332100100001
0483000110000
9573900111001
A654101000001
Z905a01011010
a976101100001
z1227a01111010

Binary vs. hex vs. decimal byte codes

All three tabs describe the exact same bytes — only the number base changes:

Example — "Hi!" in all three:
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

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.