About Text Converter
Text is stored as bytes, and there are several conventional ways to write those bytes down. Binary and hexadecimal appear constantly in programming, debugging and puzzles. Morse code still has a following in amateur radio and in games. Unicode escapes are how you embed an awkward character in source code, and HTML entities are how you write one safely into markup.
Every conversion here goes through UTF-8 bytes, which is what makes emoji and non-Latin scripts round-trip correctly. Implementations built on charCodeAt appear to work on English text and quietly corrupt everything else — a bug you will not notice until someone pastes an accented name.
When decoding fails, you get the specific token that broke and an explanation of the expected format, rather than a blank result.
How to convert text
Choose a conversion
Binary, hexadecimal, decimal, Morse, Unicode escapes or HTML entities.
Pick a direction
Encode from plain text, or decode back to it.
Enter your input
Type or paste. The result appears immediately.
Copy the result
Copy to the clipboard or download it as a text file.
What each representation is for
- Binary — one 8-bit group per byte. Teaching, puzzles and low-level debugging.
- Hexadecimal — two characters per byte. The standard way to display bytes in programming.
- Decimal — the byte values as ordinary numbers, occasionally required by older systems.
- Morse code — dots and dashes, letters separated by spaces and words by a slash.
- Unicode escapes — \u0041 sequences, for embedding awkward characters in source code.
- HTML entities — & and friends, for writing characters safely into markup.