{"id":64618,"date":"2025-05-12T10:43:44","date_gmt":"2025-05-12T07:43:44","guid":{"rendered":"https:\/\/wpcalc.com\/en\/?p=64618"},"modified":"2026-10-22T17:17:55","modified_gmt":"2026-10-22T14:17:55","slug":"morse-converter","status":"publish","type":"post","link":"https:\/\/wpcalc.com\/en\/web-tools\/morse-converter\/","title":{"rendered":"Morse Code Translator"},"content":{"rendered":"<section class=\"not-prose calculator-box\" aria-labelledby=\"calculator-title\"><div class=\"flex items-baseline sm:items-center justify-between gap-2 sm:gap-3\"><div class=\"flex flex-col sm:flex-row sm:items-center gap-2\"><span class=\"icon icon-calculator text-primary-700! text-base! dark:text-primary-300!\" aria-hidden=\"true\"><\/span><h2 id=\"calculator-title\" class=\"text-lg font-display font-bold\">Text to Morse Code Converter<\/h2><\/div><div class=\"calcdash-favorite group\">\n  <button type=\"button\" class=\"favorite\" id=\"favorite\" data-favorite-id=\"64618\" data-favorite-title=\"Morse Converter\" data-favorite-url=\"https:\/\/wpcalc.com\/en\/web-tools\/morse-converter\/\" data-favorite-excerpt=\"Convert text to Morse code or decode Morse code back to text. Enter your content, then choose To Morse or To Text.\" aria-label=\"Add to Favorites\" data-favorite-icon=\"icon icon-conversion\">\n    <span class=\"icon icon-shape-star-empty\" aria-hidden=\"true\"><\/span>\n  <\/button>\n  <div class=\"calcdash-favorite__tip\" aria-hidden=\"true\">\n   <span class=\"favorite-tooltip\" id=\"favorite-tooltip\"><\/span>\n  <\/div>\n  <span class=\"sr-only\" role=\"status\" id=\"favorite-status\"><\/span>\n<\/div><\/div><form action=\"https:\/\/wpcalc.com\/en\/web-tools\/morse-converter\/\" method=\"POST\" class=\"calculator\" id=\"calculator-64618\" data-post=\"64618\"><fieldset class=\"fieldset-input is-1\"><legend class=\"sr-only\">Input Fields<\/legend><div class=\"field is-single\" id=\"input-1\"><label for=\"field-1\">Content<\/label><textarea id=\"field-1\" name=\"content\"><\/textarea><\/div><div class=\"field\" id=\"input-2\"><label for=\"field-2\">Type<\/label><div class=\"grid grid-cols-1\"><select id=\"field-2\" name=\"type\"><option value=\"1\">To Morse<\/option><option value=\"2\">To Text<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><\/fieldset><div class=\"buttons\"><button type=\"submit\" data-text=\"Re-Calculate\" id=\"calculate-button\" data-post=\"64618\">Calculate<\/button><button type=\"reset\">Reset<\/button><\/div><div class=\"field is-checkbox hidden!\" id=\"field-auto-calc\"><input type=\"checkbox\" id=\"auto-calc\"><label for=\"auto-calc\">Calculate automatically<\/label><small>If enabled, the result will update automatically when you change any value.<\/small><\/div><div class=\"fieldset-result is-hidden\" aria-labelledby=\"result-title\" aria-live=\"polite\" role=\"region\"> <h3 class=\"result-title bg-gradient-to-r from-primary-50 to-gray-50 dark:from-primary-900 dark:to-gray-800\" id=\"result-title\"><span class=\"icon icon-s-pulse\" aria-hidden=\"true\"><\/span> Your Results<\/h3><div class=\"result-box\"><div class=\"field-result is-column\" id=\"output-1\"><span class=\"field-title\"><span>Result<\/span><\/span><span class=\"field-value\" id=\"result-1\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><\/div><div class=\"result-actions\"><button type=\"button\" class=\"copy-link\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z\"\/><path d=\"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z\"\/><\/svg><span class=\"copy-link__text\">Copy link to this calculation<\/span><\/button><span class=\"sr-only\" role=\"status\" id=\"copy-link-status\"><\/span><\/div><\/div><a href=\"#respond\" class=\"hidden transition-opacity duration-300 opacity-0 w-50 text-sm justify-center items-center gap-2 px-4 py-2 rounded bg-gray-200 text-gray-700 hover:bg-gray-300\" id=\"leave-comment\"><span class=\"icon icon-comments\" aria-hidden=\"true\"><\/span>Leave a Comment<\/a><\/form><\/section><section id=\"calc-reactions\" class=\"not-prose hidden my-12 bg-gradient-to-r from-primary-50 to-gray-50 border border-indigo-100 rounded-xl px-6 py-4 shadow-sm\" data-post=\"64618\" aria-live=\"polite\" aria-labelledby=\"calc-reactions-title\"><p id=\"calc-reactions-title\" class=\"text-sm text-gray-500 text-center mb-2\">How did this result make you feel?<\/p><div role=\"group\" aria-labelledby=\"calc-reactions-title\" class=\"grid grid-cols-3 sm:flex sm:flex-row sm:justify-around gap-4 sm:items-center sm:flex-wrap\"><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"like\"><span class=\"reaction-count\" data-reaction-count=\"like\">3<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude00 <\/span><span class=\"reaction-description font-medium\">Like <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"helpful\"><span class=\"reaction-count\" data-reaction-count=\"helpful\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\udca1 <\/span><span class=\"reaction-description font-medium\">Helpful <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"confused\"><span class=\"reaction-count\" data-reaction-count=\"confused\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude15 <\/span><span class=\"reaction-description font-medium\">Confused <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"disappointed\"><span class=\"reaction-count\" data-reaction-count=\"disappointed\">1<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude1e <\/span><span class=\"reaction-description font-medium\">Disappointed <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"inaccurate\"><span class=\"reaction-count\" data-reaction-count=\"inaccurate\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\u274c <\/span><span class=\"reaction-description font-medium\">Inaccurate <\/span><\/button><\/div><div id=\"reaction-message\" class=\"hidden mt-8 rounded-md border border-primary-100 bg-white\/50 backdrop-blur-sm px-4 py-2 text-sm text-center shadow-sm\"><\/div><\/section><div class=\"calcdash-ad not-prose calcdash-ad--calc_result calcdash-ad--in-article\"><ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-1721569815777345\" data-ad-slot=\"6317458308\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\"><\/ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div>\n<style id=\"wpcoderpro-inline-1\">.formula-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section class=\"formula-box\" aria-labelledby=\"formula-title\">\r\n\t<div id=\"formula-title\" class=\"not-prose font-display mb-4\"><span class=\"icon icon-formula\" aria-hidden=\"true\"><\/span><h2>Morse Converter Formula<\/h2><\/div>\r\n\t<figure class=\"not-prose formula\">\r\n\t\t<figcaption class=\"formula-title\">Formula<\/figcaption>\r\n\t\t<div class=\"text-base text-gray-800\" id=\"formula\">\n\\[\\begin{aligned}T(s)&amp;=\\operatorname{trim}\\!\\left(\\operatorname{join}_{\\text{space}}\\bigl(M(c_1),\\ldots,M(c_n)\\bigr)\\right)\\\\D(s)&amp;=\\operatorname{trim}\\!\\left(M^{-1}(t_1)\\cdots M^{-1}(t_k)\\right)\\end{aligned}\\]\n<\/div>\r\n\t<\/figure>\r\n\t<\/p>\n<p><strong>Where:<\/strong><\/p>\n<ul>\n<li>\\(T(s)\\) \u2014 the encoded Morse output for text \\(s\\).<\/li>\n<li>\\(D(s)\\) \u2014 the decoded text for Morse input \\(s\\).<\/li>\n<li>\\(M(c_i)\\) \u2014 the Morse code assigned to character \\(c_i\\); a text space maps to <code>\/<\/code>.<\/li>\n<li>\\(M^{-1}(t_i)\\) \u2014 the character assigned to Morse token \\(t_i\\).<\/li>\n<\/ul>\n<p>Encoding joins the codes for individual characters with spaces. Decoding reads space-separated Morse tokens and joins the resulting characters; <code>\/<\/code> becomes a text space.<\/p>\n<p>\r\n<\/section>\n<style id=\"wpcoderpro-inline-459\">.calculation-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section id=\"calculation\" class=\"calculation-box\" aria-labelledby=\"calculation-title\">\r\n\t<div id=\"calculation-title\" class=\"not-prose font-display\"><span class=\"icon icon-unordered-list\" aria-hidden=\"true\"><\/span><h2>Morse Converter \u2013 Calculation Example<\/h2><\/div>\r\n\r\n<\/p>\n<p><strong>Example:<\/strong> enter <code>SOS HELP<\/code> in <strong>Content<\/strong> and select <strong>To Morse<\/strong> under <strong>Type<\/strong>.<\/p>\n<p>\\[\\begin{aligned}\\text{SOS HELP}&amp;\\longrightarrow \\text{S O S \/ H E L P}\\\\&amp;\\longrightarrow \\texttt{... --- ... \/ .... . .-.. .--.}\\end{aligned}\\]<\/p>\n<p><strong>Result:<\/strong> <code>... --- ... \/ .... . .-.. .--.<\/code>. Selecting <strong>To Text<\/strong> and entering that result returns <code>SOS HELP<\/code>.<\/p>\n<p>\n\r\n<\/section>\n<h2>How to use the Morse Converter<\/h2>\n<ol>\n<li>In <strong>Content<\/strong>, enter the text you want to encode or the Morse code you want to decode.<\/li>\n<li>Under <strong>Type<\/strong>, choose <strong>To Morse<\/strong> for text-to-code conversion or <strong>To Text<\/strong> for code-to-text conversion.<\/li>\n<li>Read the converted value under <strong>Result<\/strong>. You can copy it for use elsewhere.<\/li>\n<\/ol>\n<p>For <strong>To Text<\/strong>, separate Morse characters with single spaces and represent each space between words with a slash surrounded by spaces. For example, enter <code>.... .. \/ - .... . .-. .<\/code> to obtain <code>HI THERE<\/code>. An uninterrupted run of dots and dashes is treated as one token, not as a word that the converter can divide into letters.<\/p>\n<h2>What Morse code represents<\/h2>\n<p>Morse code represents characters using sequences of short and long signals, commonly written as dots and dashes. For example, <code>A<\/code> is <code>.-<\/code>, <code>N<\/code> is <code>-.<\/code>, and <code>SOS<\/code> is <code>... --- ...<\/code>. In actual signaling, pauses distinguish parts of a character, separate characters, and separate words. In this written format, spaces separate character codes and <code>\/<\/code> marks a word space.<\/p>\n<p>This converter uses a fixed character-to-code table for the English letters A\u2013Z, digits 0\u20139, and selected punctuation. It converts letters to uppercase before processing, so lowercase and uppercase input produce the same Morse code. Decoded letters also appear in uppercase. The output is a written representation of Morse code, not an audio signal or a timing diagram.<\/p>\n<p>Morse code is a way to represent messages, not a method for keeping them secret. Anyone who knows the code can read a message. If you are comparing ways to represent ordinary text as symbols or numbers, the <a href=\"https:\/\/wpcalc.com\/en\/web-tools\/ascii-converter\/\">ASCII Converter<\/a>, <a href=\"https:\/\/wpcalc.com\/en\/web-tools\/hex-converter\/\">Hex Converter<\/a>, and <a href=\"https:\/\/wpcalc.com\/en\/web-tools\/binary-converter\/\">Binary Converter<\/a> handle different text and number representations.<\/p>\n<h2>Input rules and practical limits<\/h2>\n<ul>\n<li><strong>Use the supported alphabet.<\/strong> The table includes English letters, digits, and punctuation such as periods, commas, question marks, apostrophes, and slashes. Accented letters, emoji, and other unsupported characters are not assigned Morse codes by this converter.<\/li>\n<li><strong>Check spacing when decoding.<\/strong> The <strong>To Text<\/strong> option separates tokens at ordinary spaces. Use one space between codes and <code> \/ <\/code> between words. Extra spaces can affect how the input is read, while line breaks and tabs are not substitutes for ordinary token-separating spaces.<\/li>\n<li><strong>Watch for omitted symbols.<\/strong> An unsupported text character or an unrecognized Morse token is omitted rather than reported as an error. Review the result if preserving every character matters.<\/li>\n<li><strong>Keep the distinction between two slashes clear.<\/strong> A slash in plain text is a punctuation character encoded as <code>-..-.<\/code>. A slash in Morse-formatted input marks a space between words.<\/li>\n<\/ul>\n<p>The converter trims whitespace from the beginning and end of the input and result. If a conversion looks incomplete, check the original spelling, the supported characters, and the spaces between Morse tokens before copying the output.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Convert text to Morse code or decode Morse code back to text. Enter your content, then choose To Morse or To Text.<\/p>\n","protected":false},"author":70,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63],"tags":[64],"class_list":["post-64618","post","type-post","status-publish","format-standard","hentry","category-web-tools","tag-converter-tools"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/64618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/users\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/comments?post=64618"}],"version-history":[{"count":4,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/64618\/revisions"}],"predecessor-version":[{"id":67444,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/64618\/revisions\/67444"}],"wp:attachment":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/media?parent=64618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/categories?post=64618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/tags?post=64618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}