1. Home
  2. Converters
  3. Text to Binary

Text to Binary

See how computers store text: every character becomes a number, shown in binary, hex, octal or decimal.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Text to Binary

  1. Type text or paste binary.
  2. Choose the format.
  3. Copy the result.

Features

  • Binary, hex, octal and decimal
  • UTF-8 for any language
  • Decode back to text

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Text to Binary is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Text is encoded as UTF-8, so letters such as é take 2 bytes and most emoji take 4.

Guide

How text becomes binary, and how to read it back

Computers store text as numbers. Every character you type is turned into one or more bytes, and each byte is a number from 0 to 255 that can be written in binary, hexadecimal, octal or decimal. This converter shows those bytes for any text, in any language, and decodes them back.

Converting text

Choose a number format, then type in the Text box. The bytes appear on the right, separated by spaces, ready to copy:

Format One byte looks like “Hi” becomes
Binary 8 digits of 0 and 1 01001000 01101001
Hex 2 digits, 0–9 and a–f 48 69
Octal 3 digits, 0–7 110 151
Decimal 0 to 255 72 105

Switching format re-encodes the same text, and the format you used last is remembered.

Why some characters take more bytes

The converter uses UTF-8, the encoding used by almost every web page and modern file:

  • 1 byte: English letters, digits, basic punctuation and the space (the original ASCII set). A is 65, a is 97, space is 32.
  • 2 bytes: most accented and Latin-extended letters, Greek, Cyrillic, Arabic and Hebrew. é is C3 A9.
  • 3 bytes: most other scripts, including Chinese, Japanese and Hindi, plus symbols such as € (E2 82 AC).
  • 4 bytes: emoji and rarer characters. 👋 is F0 9F 91 8B.

The line under the boxes counts the bytes, which is handy when a database column, SMS or API limits length in bytes rather than characters.

Decoding binary or hex

Paste bytes into the right-hand box and the text appears on the left. The decoder is forgiving:

  • Values can be separated by spaces or commas.
  • Prefixes such as 0x, 0b and 0o are ignored.
  • Binary pasted without spaces is split into 8-digit bytes when its length is a multiple of 8, and hex without spaces into pairs.

Make sure the format selector matches what you pasted: “01000001” read as decimal is not a valid byte.

When decoding goes wrong

  • Warning about invalid values: a value is above 255, contains a wrong digit, or a binary group isn’t 8 digits. Check for a missing or extra digit.
  • � in the text: the bytes don’t form valid UTF-8, often because a multi-byte character was cut off, or because the data used an older encoding such as Windows-1252. Each broken sequence becomes the replacement character.

Useful for

  • Learning: computer science lessons on bits, bytes and encodings.
  • Debugging: spotting invisible characters, a non-breaking space (C2 A0) instead of a normal one (20), or a byte-order mark (EF BB BF) at the start of a file.
  • Puzzles: binary messages in games, escape rooms and greeting cards.

Who converts text to binary

  • Computer science students learn how text is stored as bytes.
  • Developers debug encoding problems and hidden characters.
  • Teachers make binary puzzles and classroom activities.
  • Hobbyists encode messages for gifts, games and geocaching.

A complete example: finding a hidden character

A product code AB 12 doesn’t match in a database search:

  1. Paste the code and view it in Hex.
  2. You see 41 42 c2 a0 31 32: the space is c2 a0, a non-breaking space, not a normal space (20).
  3. Replace it with a normal space, or clean the text with the Text Cleaner, and the search works.

Tips

  • Use hex for debugging: it’s shorter than binary and easy to compare with references.
  • Byte counts help with fields limited in bytes rather than characters.

Checked against the current version of the Text to Binary on .

Frequently asked questions

What is "Hi" in binary?

01001000 01101001. H is code 72 and i is code 105, written as 8-bit bytes. In hexadecimal the same bytes are 48 69.

Why does an emoji turn into four bytes?

Text is stored as UTF-8, which uses one byte for basic English letters and digits, two for most accented letters, three for many other scripts and symbols such as €, and four for emoji. 👋 is F0 9F 91 8B in hex.

Can I paste binary without spaces?

Yes. A long run of 0s and 1s whose length is a multiple of 8 is split into bytes automatically, so 0100100001101001 decodes to "Hi".

Is binary a way to hide or encrypt a message?

No. Anyone can decode it with a tool like this one. It's an encoding, not encryption. Use the Password Generator and proper encryption for anything secret.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.