From "Hi Mom" to .... .. / -- --- --, and the timing behind the dots
Morse code was built for a wire that could only be on or off. A short pulse is a dot, a long one is a dash, and everything else is carried by silence. The modern international version is set by the ITU in recommendation M.1677-1, which defines a letter, a digit or a sign as a fixed pattern of dots and dashes. Common letters got short patterns: E, the most frequent letter in English, is a single dot, and T is a single dash. Rare letters such as Q (--.-) take four signals.
Take "Hi Mom". H is four dots, ...., and I is two, .., so Hi is .... .. with a space between the letters. M is two dashes, O is three, and M again, so Mom is -- --- --. The word gap is written as a slash, which gives .... .. / -- --- --. Type the words into the box above and you get exactly that. Decoding it gives HI MOM in capitals, because Morse has no lower case to carry back.
The spaces matter more than they look. The standard times everything in units of one dot. A dash is three units, the gap inside a letter is one, the gap between letters is three and the gap between words is seven. Written as text, those gaps become one space between letters and a slash between words. Lose the letter spaces and the meaning changes: ... --- ... is S, O, S, but ...---... is one nine-signal pattern that is not a letter at all, and this translator says so instead of guessing.
Morse code also has edges worth knowing. It defines no lower case, no accents and no emoji. When you encode Café, the accent is dropped and the é is sent as E, which is how operators handle it in practice. Characters with no code at all, such as # or %, stop the translation, and the error message names the character and its position so you can remove it. A few signs here, such as ! and &, come from American and amateur radio use rather than the ITU list, so a strict receiver may not know them.
This page translates written Morse only. It does not play the code as sound, flash it as light, or listen through a microphone. Decoding sound depends on the sender's speed and the noise on the line, and that is a different problem from reading dots and dashes that are already written down. What it does well is the written form: it accepts the dots and dashes people paste from other sites, including middle dots, bullets and long dashes, and turns them back into text you can read.