Skip to content

Latest commit

Β 

History

History
93 lines (71 loc) Β· 3.04 KB

File metadata and controls

93 lines (71 loc) Β· 3.04 KB

Morse Code Translator

License: MIT JavaScript HTML5 CSS3

A responsive web application that converts text to Morse code and vice versa, with sound and light simulation capabilities.

🌟 Features

  • Bidirectional Translation
    • Text β†’ Morse code
    • Morse code β†’ Text
  • Interactive Learning Tools
    • πŸ”Š Audio playback of Morse code
    • πŸ’‘ Visual flashing light simulation
  • Adjustable Speed (5-20 WPM)
  • Complete Cheat Sheet with all Morse characters
  • Responsive Design works on mobile & desktop
  • No Dependencies - Pure HTML/CSS/JS

πŸš€ Quick Start

  1. Clone the repository:
    git clone https://github.com/bjmdevelopers/morse-code-translator.git
  2. Open index.html in any modern browser
  3. Start translating!

Live Demo: Demo Link

πŸ§‘β€πŸ’» How to Use

Text to Morse

  1. Type your message in the left textarea
  2. Click "Convert to Morse"
  3. Play the Morse code as sound or light

Morse to Text

  1. Enter Morse code in the right textarea (e.g. ... --- ...)
  2. Click "Convert to Text"

Try These Examples:

  • HELLO β†’ .... . .-.. .-.. ---
  • SOS β†’ ... --- ...
  • I LOVE MORSE β†’ .. / .-.. --- ...- . / -- --- .-. ... .

πŸ“š Morse Code Cheat Sheet

Alphabet

Letter Morse Letter Morse
A .- N -.
B -... O ---
C -.-. P .--.
D -.. Q --.-
E . R .-.
F ..-. S ...
G --. T -
H .... U ..-
I .. V ...-
J .--- W .--
K -.- X -..-
L .-.. Y -.--
M -- Z --..

(See full cheat sheet in the web app)

πŸ›  Technical Details

  • Web Audio API for Morse code sound generation
  • CSS Animations for light simulation
  • Responsive Grid Layout using CSS Flexbox/Grid
  • Mobile-First Design with media queries
  • Pure Vanilla JavaScript - No frameworks

🀝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/your-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature/your-feature)
  5. Open a Pull Request

πŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.