Text to Binary Converter
Convert text to binary, hexadecimal, or Morse code — and back again — instantly inside your browser.
What does this tool convert?
Computers store text as numbers under the hood — this tool exposes that representation in three common forms: binary (base 2, the raw bits), hexadecimal (base 16, a compact byte-per-two-digit shorthand), and Morse code (the historical dot-and-dash telegraph alphabet). It converts text into any of the three, and converts each of them back into readable text.
GuideHow to use it
How the conversion works
Text is first read as UTF-8 bytes. Each byte is shown as an 8-digit binary number or a 2-digit hexadecimal number, separated by spaces. Morse code instead maps each letter and digit to its dot-and-dash sequence, with a space between letters and a forward slash between words. Converting back reverses each of these mappings.
Why it helpsFeatures & benefits
Why this runs entirely in your browser
Every conversion runs in JavaScript locally in the tab, which means it keeps working offline once the page has loaded and nothing typed here is ever sent to a server.
Common uses
Learning how text is represented as bytes, decoding a Morse code puzzle, checking a hex-encoded string from a log file, or converting a message into Morse code for a school project.
Frequently asked questions
A few things people usually want to know before trusting the numbers.
Text is read as UTF-8 bytes, and each byte is exactly 8 bits, so every character (in the basic ASCII range) becomes an 8-digit binary number.
Binary and hex conversion support any Unicode text since they work on raw UTF-8 bytes. Morse code only supports the standard Latin alphabet, digits, and common punctuation.
It marks a space between words. Individual letters within a word are separated by a single space.
Binary and hex decoding expect space-separated byte values in the correct base — extra characters or out-of-range values will trigger an error.
No. All conversion happens locally in your browser. Nothing typed or pasted here is sent to a server, stored, or shared.