- All tools
- Text to binary converter
How do I convert text to binary, hex or Morse code?
Type or paste text and this page shows its UTF-8 bytes as binary, hexadecimal, octal or decimal, or turns a list of bytes back into text. A second panel converts text to International Morse code and back, and can play it as sound. Plain English letters take one byte each, while accents, Chinese characters and emoji take two to four.
- Type or paste your text into the box, or press the example button.
- Choose binary, hexadecimal, octal or decimal and how the bytes are separated, or switch to Morse.
- Copy the result, or paste bytes or Morse into the box and switch direction to read the text.
Text and bytes
Morse code
Morse reference: letters and digits
| Character | Morse | Character | Morse | Character | Morse |
|---|
What this page can do
- Show text as binary, hexadecimal, octal or decimal UTF-8 bytes, with a count
- Choose a space, comma or no separator, 0b/0o/0x prefixes and upper or lower-case hex
- Read bytes back as text, accepting spaces, commas, new lines and prefixes
- Point to the exact group or byte that is invalid, including broken UTF-8
- Encode text to International Morse and decode it, listing characters it cannot encode
- Play Morse as sound at 5 to 30 words per minute, and look up A–Z and 0–9
When to use this page
- Seeing what a word, accent or emoji looks like as bytes, for homework or teaching.
- Checking a binary or hex string from a puzzle, a log or a network capture.
- Writing or decoding a short Morse message and hearing how it sounds.
When to use something else
- You need a file or image as bytes — use a hex editor or the Base64 encoder.
- You need a number converted between bases, such as 255 to FF — use a number base converter.
- You need real Morse training with feedback or radio keying — use a dedicated trainer.
How it compares with other options
Many online converters only handle the 128 ASCII characters and give wrong or empty output for accents, Chinese or emoji. This page encodes with the browser’s own UTF-8 encoder, so every character that can be stored in text works, and it refuses invalid UTF-8 when decoding instead of showing replacement symbols. A programming language or the command line (for example xxd or Python’s bytes type) can do the same and handle files, which this page does not. The Morse part follows the International Morse table of ITU-R M.1677 for letters, digits and common punctuation; it does not cover prosigns, accented letters or the older American Morse.
Where your text goes
Nowhere. The text is converted by your own browser, and Morse sound is generated by your browser’s Web Audio, not downloaded as audio files. Nothing you type is sent to a server, logged or stored; close the tab and it is gone. You can check it yourself: open your browser’s network panel — the page still loads its own code and any ads, but no request carries what you typed.
Questions about this tool
How do I convert text to binary?
Each character is first turned into one or more bytes using UTF-8, and each byte is written as eight binary digits. For example, the letter A is byte 65, which is 01000001. Type your text on this page and the binary appears immediately; choose Hexadecimal, Octal or Decimal to see the same bytes in another base.
Is this ASCII or UTF-8?
It is UTF-8, the encoding used by almost every website and file today. For the plain English letters, digits and punctuation (code points 0 to 127) UTF-8 and ASCII give identical bytes. Characters such as é, 中 or an emoji take two to four bytes in UTF-8, and the page shows a notice when your text contains any of them.
Why does my binary fail to convert back to text?
Usually a group has a digit other than 0 or 1, a group is longer than eight digits, or the bytes are not valid UTF-8 (for example a lone byte above 127). The page names the group or byte position that is wrong. Binary groups shorter than eight digits are accepted and padded on the left, so 1000001 is read as 01000001.
What does Morse code do with letters it does not know?
International Morse has no code for most accented letters, symbols or emoji. This page lists every character it could not encode and leaves them out of the result rather than hiding the problem. Letters, digits and common punctuation are supported, words are separated by a slash, and lower-case letters are treated as upper-case.