Skip to main content
Morse, pigpen, NATO and tap code

Secret code generator

Type a secret message once and see it in Morse code, pigpen, the NATO alphabet and tap code. Print the Morse or pigpen version with its key for a class, a party or an escape room.

  • Four codes at once
  • Print with the key
  • Free, no sign-up
translatemorsecode.com/codes/Live

Try:

Morse code

Open full tool

Pigpen cipher

Open full tool

NATO alphabet

Mike Echo Echo TangoMike EchoAlfa TangoTango Hotel EchoOscar Lima DeltaOscar Alfa Kilo

Open full tool

Tap code

  • K is knocked as C, as on the grid.

Four ways to hide a message

Every code here, by how the message travels.

Pick by how it travels

Which code should I use?

  1. On paper

    Pick the code by how your message will travel. For a note, a card or a clue taped under a table, write it in pigpen: to anyone without the key it is just boxes, corners and dots. Morse code works on paper as well, and it is the one to choose when you also want to play the message as beeps or flash it with a light. The Morse code translator does both, and it works as a secret code translator the other way too: paste dots and dashes and it reads them back.

  2. Out loud, or through a wall

    To read a message out over a phone or a walkie-talkie, spell it in the NATO alphabet, or in the police alphabet that runs Adam, Boy, Charles. To pass it through a wall or across a quiet room, knock it in tap code.

  3. The catch

    None of these codes stops someone who already knows it. The game is that your reader has to find or learn the key, so hand it over with the message, or hide it as the next clue.

Good questions

Frequently asked questions.

About secret codes

Still have questions? Contact us

How do I make my own secret code?

Start with a code that already works, then change one thing only you and your reader know. Open the pigpen cipher tool and switch its key to Grid-X-grid-X or Alternating, and the same shapes stand for other letters. Or draw your own symbol for each letter, and keep the key safe.

What are the different types of codes?

The codes here each swap a letter for something else: a shape in pigpen, dots and dashes in Morse code, a word in the NATO and police alphabets, and two groups of knocks in tap code. Other ciphers swap each letter for another letter: the Caesar shift moves it a few places along the alphabet. This page does not make those.

How do I say “I like you” in secret code?

Each code writes it its own way:

  • In Morse code, .. / .-.. .. -.- . / -.-- --- ..- spells I like you.
  • In the NATO alphabet it is India / Lima India Kilo Echo / Yankee Oscar Uniform.
  • In tap code, as row and column numbers, it is 2,4 / 3,1 2,4 1,3 1,5 / 5,4 3,4 4,5, with K knocked as C.
  • Pigpen draws it as eight symbols.

Select the I like you example under the box to see all four.

How do I make a decoder?

Print the message with its key. On the Morse code and pigpen cards, Print with key makes a sheet with the coded message, lines for the answer and the key along the bottom, then an answer key on page two.

The NATO card prints the message with each letter’s code word, so it is a key, not a puzzle. For the key alone, print the Morse code alphabet or the pigpen tool’s key.

What are some spy codes?

Prisoners of war have used three of the codes on this page:

  • In 1966 Jeremiah Denton, shown on television by his North Vietnamese captors, blinked the word TORTURE in Morse code.
  • American prisoners in Vietnam knocked messages through cell walls in tap code.
  • In the American Civil War, pigpen was used by Union prisoners held in Confederate prisons.

The NATO alphabet was never secret: it keeps letters clear over a radio.

What is the most famous secret code?

Morse code is the famous one here, and a code anyone can learn. It is named after Samuel Morse, one of several people who developed it for the telegraph.

It was never meant to be secret, so anyone with the Morse code alphabet can read it. Start with ... --- ..., SOS, the best-known signal of all.

How do I decode a secret message?

Identify the code by how it looks, then open its tool:

  • Dots and dashes are Morse: paste them into Morse code to English.
  • Boxes, corners and V shapes with dots are pigpen.
  • Words like Alfa and Bravo are the NATO alphabet.
  • Pairs of knocks or numbers are tap code.

Each tool works as a secret message decoder for its own code, and the Read a message links under the maker open them.

Is this secret code maker free and private?

Yes. It is free with no sign-up and runs in your browser, so nothing you type is uploaded.

Open full tool carries your message after the # in the link, which your browser does not send to our server. Messages can be up to 5,000 characters; the cards show the first 140, and Open full tool passes on the whole message (pigpen takes the first 500).

Looking for Morse code?

Beeps, flashes and buzzes, both ways.

The translator turns text into Morse and back, and plays it as sound, light or vibration.

Free, no sign-up, in your browser.

An outside opinion

Don’t take our word for it.Ask your AI.

Send your own assistant to read Translate Morse Code and give you a straight answer, before you trust it with your messages.

  • What the tools do well
  • Where their limits are
  • Whether they fit what you want to do

AI can get details wrong. The quickest check is a guide itself: each one shows when it was last updated and links the sources it relies on.

Pick your AI

You

I'm thinking about using Translate Morse Code (https://translatemorsecode.com/) to translate and learn Morse code. What does it do well, what are its limits, and is it a good fit for me? Please look at the site itself before answering.

ChatGPT

Reading translatemorsecode.com
Ask ChatGPT (opens in a new tab with the question typed in)

Opens in a new tab. Sign-in and prompt support vary; copy the question if yours opens empty.