Free • Responsive • No tracking
Embed our translator
Add a working Morse code translator to your blog, classroom site, or wiki with a single iframe. It is free, needs no API key, and sets no cookies.
One-line embed
<iframe
src="https://morsecodegenerator.com/embed"
title="Morse code translator"
style="width:100%;height:520px;border:0;border-radius:14px;"
loading="lazy"
referrerpolicy="strict-origin-when-cross-origin"
></iframe> Options (URL parameters)
| Parameter | Values | What it does |
|---|---|---|
| theme | light | Forces the light or dark palette. Leave it off and the widget follows the visitor's own system setting, because an iframe cannot read the colours of the page around it. |
| q | HELLO | Preloads the input box. URL-encode spaces, for example ?q=HELLO%20WORLD. |
| compact | 1 | Shorter text boxes for tight sidebars; drop the iframe height to about 380 px to match. |
The older address /embed.html still works and keeps its parameters — it redirects here — so embeds already on other sites do not need changing.
How it behaves
- Both directions, automatically. Type text and it converts to Morse; paste dots and dashes and it converts back. The buttons force one direction if you need it.
- Standard spacing. Letters are separated by a space and words by a slash, the same convention used across this site and by most decoders.
- Sizing. The iframe is fluid, so set the width to 100% and give it a fixed height: about 520 px normally, or 380 px with compact=1. Keep loading="lazy" so it costs nothing until it scrolls into view.
- No account, no key, no limits. Nothing needs to be registered and there is no rate limit to hit.
Privacy and performance
The widget runs entirely in the visitor's browser. It sets no cookies, loads no analytics or advertising scripts, and never sends what your visitors type anywhere — the conversion happens locally after it fetches the Morse character table as a small JSON file. That means it adds no consent obligations to your page, and it keeps working for a visitor who blocks third-party scripts.
Prefer to build your own? The same character table is documented on the data endpoint page and is free to use.
Classroom and blog ideas
- Preload the lesson's word so students land on it: /embed?q=SOS.
- Put the compact layout in a sidebar next to a post about the history of Morse code.
- Pair it with the Koch trainer for listening practice, or the printable chart for a wall reference.
Live preview
Attribution
The widget includes a small "Powered by MorseCodeGenerator.com" link. If you remove the iframe branding, please credit us elsewhere on the page.