free tool, no sign-up

Text to Binary

Translate text into UTF-8 binary and back, or encode it as Pig Latin or international Morse code.

Translation

UTF-8 bytes (the same as ASCII for plain English letters).

Type text to see each UTF-8 byte as an 8-bit group.

Examples

International Morse, A-Z and 0-9

  • A.-
  • B-...
  • C-.-.
  • D-..
  • E.
  • F..-.
  • G--.
  • H....
  • I..
  • J.---
  • K-.-
  • L.-..
  • M--
  • N-.
  • O---
  • P.--.
  • Q--.-
  • R.-.
  • S...
  • T-
  • U..-
  • V...-
  • W.--
  • X-..-
  • Y-.--
  • Z--..
  • 0-----
  • 1.----
  • 2..---
  • 3...--
  • 4....-
  • 5.....
  • 6-....
  • 7--...
  • 8---..
  • 9----.

This text to binary translator writes each character as UTF-8 bytes (the same as ASCII for plain English letters), with a space between 8-bit groups, and it turns those groups back into text. Hi is 01001000 01101001. Curly quotes, accented letters, and emoji encode the same way. Pig Latin encode adds way after a word that starts with a vowel and otherwise moves the opening consonant cluster before adding ay, so pig becomes igpay. International Morse for A-Z and 0-9 is listed in a chart on the page, with a space between letters and a slash between words.

UTF-8 bytes, Pig Latin, and Morse

Text to binary reads each character as UTF-8 (the same as ASCII for plain English letters) and writes every byte as eight bits. H is 72, which is 01001000, and i is 105, which is 01101001, so Hi is 01001000 01101001. A space is a character too, code 32, written 00100000. Accented letters and emoji take more than one byte: é is 11000011 10101001. Binary back to text accepts only space-separated groups of eight 0s and 1s that form valid UTF-8. A shorter group, a longer group, or a group with any other character is rejected in plain language.

Pig Latin treats a, e, i, o, and u as vowels, and y as a vowel after the first letter. A word that starts with one of those keeps its letters and adds way, so apple becomes appleway. Any other word moves the opening consonant cluster to the end and adds ay, so pig becomes igpay, queen becomes eenquay, and string becomes ingstray. Morse encode uses the international alphabet for A-Z and 0-9. Letters in a word are separated by spaces, and words are separated by a slash. Other characters are left out. SOS is ... --- ... The chart on the page lists every letter and digit.

Frequently Asked Questions

How do I convert text to binary?

Choose Text to binary and type. Each character becomes one or more 8-bit UTF-8 groups, separated by spaces. Hi is 01001000 01101001 because H is 72 and i is 105 — the same as ASCII for plain English letters. Curly quotes, accented letters, and emoji are included.

How do I convert binary back to text?

Choose Binary to text and paste groups of exactly eight 0s and 1s, with a space between groups. 01001000 01101001 reads as Hi. The groups must be valid UTF-8. A continuous string such as 0100100001101001, or a group that is not eight bits, is rejected.

What is pig in Pig Latin?

pig starts with a consonant, so p moves to the end and ay is added: igpay. A word that starts with a, e, i, o, or u stays as it is and gains way, so apple becomes appleway. queen keeps qu together and becomes eenquay. string moves the cluster str and becomes ingstray.

Which Morse code is on the chart?

International Morse for the letters A-Z and the digits 0-9. A is .- and 0 is -----. Letters in a word are separated by spaces, and a slash separates words, so SOS is ... --- ... Punctuation is left out of the Morse line.

Related Tools