Image Morse Code Translator

How to Read Morse Code from a Picture

Morse code turns up in pictures all the time: a puzzle that hides a message in a row of dots and dashes, a photo of an old telegraph card, an escape-room prop, or coordinates painted on a geocache. Reading it by eye is tedious and easy to get wrong. Here is how to read Morse code from a picture reliably — and what to do when the image is less than perfect.

Why a picture is harder than plain text

In clean text, a dot and a dash are obviously different characters. In a picture they are just blobs of ink, and the computer has to decide three things: which pixels are marks and which are background, how wide each mark is (dot vs dash), and how big the gaps are (same letter, next letter, or next word). Lighting, contrast, tilt and noise all make those decisions harder.

How the image translator does it

The image Morse code translator works in a few clear steps, all in your browser:

  1. Grayscale. Colour is thrown away — only brightness matters for finding marks.
  2. Threshold. An automatic (Otsu) threshold splits the picture into “mark” and “background”. You can override it with a slider.
  3. Polarity. Marks are usually the minority of the picture; if your marks are light on a dark background, the Invert switch flips it.
  4. Line and mark detection. The tool finds each row of code, then each mark in that row, and measures its width.
  5. Classify. Narrow marks become dots, marks about three times wider become dashes; the gaps decide letter and word breaks.

Getting a clean decode from a real photo

A few habits make a big difference:

  • Shoot straight on. Keep the row of dots and dashes horizontal and avoid perspective tilt.
  • Crop to the code. Remove surrounding text and clutter so only the marks remain.
  • Watch the preview. The “detected dots & dashes” panel shows exactly what the tool sees — if letters are merging, nudge the threshold until the marks separate.
  • Use the confidence score. A low score usually means the marks are not clustering cleanly into two sizes; re-crop or re-shoot.

The manual fallback

No automatic reader is perfect on every photo — even the busiest Morse sites keep a manual option for a reason. If one or two marks are misread, you do not have to start over: just edit the detected Morse in the text box and the translation updates instantly. That combination of a good automatic first pass plus an easy manual fix is the fastest way to read Morse code from a picture.

Once you are comfortable, try the picture translator for the same job framed around photos, or the audio translator if your Morse is a sound clip rather than an image.

Related