Skip to main content

Text to Binary / ASCII

Convert text to binary, hexadecimal, octal or decimal bytes and back to text. Handles accents and emoji. Free and private, in your browser.

Text

Stays in your browser

Result

The result appears here.

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Next steps

Done here? Use the Send to… menu on the result to carry it on to Unicode Character Inspector, Emoji & Unicode Escape or Encode / Decode.

Free Online Text to Binary / ASCII

Turn words into the numbers a computer stores, as binary, hex, octal or decimal, and turn those numbers back into text. Useful for learning, puzzles and checking what bytes a text really contains. It gives developers a quick browser-based way to solve a focused text to binary / ascii task before moving the result into a project.

How to convert text to binary

Choose Text to numbers, pick a number system and type your text. The bytes appear on the right as you type.

How to convert binary back to text

Choose Numbers to text, pick the same number system and paste the numbers, separated by spaces or commas or all together.

Common mistakes

  • Pick the right number system when decoding: "48 69" is hex, while "72 105" is decimal, and both spell "Hi".
  • Each group is one byte, so a number above 255 (or a binary group longer than 8 digits) is an error.

Frequently asked questions

Why is é two bytes?
Text is stored as UTF-8. Plain English letters take one byte, but accented letters, other alphabets and emoji take two to four bytes. The tool shows the real bytes, so the result matches what a file or web page contains.
Can I paste binary without spaces?
Yes. If there are no separators, the tool splits the digits into groups of 8 for binary, 2 for hex and 3 for octal.
What does "not valid UTF-8" mean?
The numbers do not form complete characters, for example when a multi-byte character is cut short. Check that you pasted every group.
Is my text uploaded?
No. The conversion runs in your browser.
How do I use this text to binary / ascii tool?
Use the interactive controls above; processing stays in your browser and the result is intended as a practical starting point for development work.

More Code & Conversion

View all Code & Conversion tools →