Home › Ciphers › Secret Code Generator

Secret Code Generator

This is the sender's side of the secret. Write your message, choose how hard it should be to crack — a gentle backwards scrawl for a younger sibling, a keyword cipher for a worthy rival — and the generator produces the coded version, ready to copy into a card, hide in a treasure hunt, or send as a link that opens already loaded in the translator. The fun is in the choosing: a code is a promise about how much work the reader must do.

In short

A secret code generator turns your plain message into a coded one. Pick from six codes graded by difficulty — backwards writing and number letters (easy), Caesar shift, Morse and Pigpen (medium), and a Vigenère keyword cipher (harder, the only one here with a real key) — then copy the result or share it as a link. The link carries the coded text only, never your original words.

Received a code instead? The Secret Code Translator reads them. Want a code nobody else has? Invent one in the Secret Code Maker.

Make your coded message

How it works

Choosing a code is choosing a difficulty

Every code below is honest about what it asks of the reader. Backwards writing asks for one flash of insight. Number letters asks for patience and a chart. Caesar asks for the key number — or for trying all 25 shifts, which a determined reader will do, so treat the shift as a courtesy lock. Morse asks for chart work on every letter; it feels harder than it is, which makes it perfect for gifts. Pigpen asks for drawing-by-decoding: no letters to lean on at all, just shapes and a grid. And Vigenère asks for the keyword, full stop — without it, the message resists every quick trick on the translator page, and the reader must either be given the key or graduate to the solver.

Two sender's rules make the game fair. First, the key travels separately: never write “shift 5” on the same card as the coded message, or you have made a worksheet, not a secret. Send the key in a second message, a day later, or as a riddle of its own. Second, match the code to the reader. The best secret is cracked in the last minute before giving up — hard enough to feel earned, easy enough to end in triumph. When in doubt, go one grade easier than your pride suggests.

Origin & history

A short history of sending secrets for fun

Sending coded messages for love and play is older than sending them for war records. Victorian newspapers' personal columns carried coded messages between sweethearts whose families read the same paper — the code protected the romance, not the nation. The 1930s radio clubs industrialised the hobby: members exchanged coded greetings, earned decoder badges, and learned that a shared key makes a shared world. The internet moved the same game into geocaching puzzle caches and classroom challenges, where a coded coordinate or a hidden instruction is still the standard treasure. The generator stands in that line: its codes are the ones senders actually reach for, graded the way senders actually think — not “how strong is this cipher?” but “how long will this keep my reader happily stuck?”

Reference

The six codes at a glance

CodeDifficultyKey?Best for
Backwards writingEasyNoneYoungest readers; a first secret
Number letters (A1Z26)EasyNoneCards, worksheets, patient beginners
Caesar shiftMediumA number 1–25Classroom classics; decoder-ring nostalgia
MorseMediumNoneShort messages; torches and beeps as well as paper
PigpenMediumNoneHandwritten notes; looks the most secret of all
Vigenère keywordHarderA keywordRival codebreakers; multi-day treasure hunts

Notice the pattern: difficulty here is mostly about the reader's labour, not the cipher's strength. Only the keyword code has a true key — the rest are public systems whose secrecy lasts exactly as long as the reader's puzzlement, which is precisely what a gift-code is for.

Worked examples

One message, four disguises

Caesar, shift 5

MEET AT THE PARK → RJJY FY YMJ UFWP

Every letter slid five places. Send the message today and the number 5 tomorrow, in a separate note that says only “five”.

Number letters

HAPPY BIRTHDAY → 8-1-16-16-25  2-9-18-20-8-4-1-25

Dashes join the letters of a word; the wide gap joins words. Inside a birthday card this is the perfect difficulty: ten minutes of happy work.

Morse

HAPPY BIRTHDAY → .... .- .--. .--. -.-- / -... .. .-. - .... -.. .- -.--

The same greeting as a telegraphist would send it. Also works tapped on a table or blinked with a torch — Morse is the only code here that leaves the page.

Vigenère, keyword KEY

SECRET MESSAGE → CIABIR WIQCEEO

For a reader who has beaten everything above. Without the keyword this resists all the quick decoders; with it, it opens in seconds — the purest form of the key-travels-separately rule.

Breaking it

Sender's pitfalls

  • Too hard is a failed gift. An uncracked code is not a triumph; it is a message never received. If the reader stalls, drip-feed hints — the first word, then the code's name, then the key.
  • Typos are fatal in code. One wrong letter in plain text is a shrug; in a coded message it can jam the whole decode. The generator exists largely to remove your handwriting from the error chain — copy, don't transcribe.
  • These are games, not security. Every code here except the keyword cipher falls to the translator on this site in seconds, and the keyword cipher falls to its solver. Never hide anything that matters — a password, a private fact — behind them.
  • Pigpen travels badly by keyboard. It is a drawn code. Photograph it, print it, or write it by hand; the share link carries the letter version so a friend can rebuild it, but the shapes are the message.
Variants

The sender's shelf

You want to…Go to
Generate a code (this page)Secret Code Generator
Read a code you receivedSecret Code Translator
Invent a code nobody can look upSecret Code Maker
Convert a message between two known ciphersCipher Translator
Hide a message inside a picture-code gridPigpen Cipher
Uses & culture

Keeping it fun — and educational

Teachers reach for code generators because a coded worksheet smuggles real work past real resistance: spelling (every letter must be right), arithmetic (number letters), patience, and the deep lesson that symbols are arbitrary agreements. Parents reach for them because a coded birthday card is remembered longer than a plain one. Puzzle-setters reach for them because difficulty grades are level design. In every case the ethics are the same and simple: the code is an invitation, the reader can always decline, and the sender's job is delight, not defeat. Generate accordingly.

Practice

Send a two-stage secret

Practice — the envelope inside the envelope

Encode “THE CAKE IS IN THE FRIDGE” in number letters. Then take the resulting number string and encode it with the generator's first code — backwards writing. Send the final result to your reader with no explanation at all.

Reveal how it plays out

The reader faces letter-soup that no single code opens. The breakthrough is noticing the soup reads as number-groups backwards; reversing it reveals the A1Z26 string, and the number strip finishes the job. Two easy codes, layered, feel like one hard one — the oldest trick in the sender's book, and the principle behind the multi-decoder's chaining.

FAQ

Frequently asked questions

What does the share link actually contain?

The coded message and the code's name — never your original words, and never the key. The link opens the translator with the code loaded, so your reader starts one click from the answer; whether you also send the key, and when, stays your dramatic decision. The link's payload sits in the fragment after #, which browsers do not send to servers.

Which code should I pick for a child?

Backwards writing for the very young (the insight is the whole game), number letters next (chart work, real decoding), Pigpen when they want it to look like a spy message. Save the keyword cipher for a reader who has beaten the rest and is getting cocky.

Can I use these for a classroom?

Yes — that is half their purpose. Generate a message per pupil with different shifts and they cannot copy each other's keys; print this page for the difficulty chart and the strips on the translator page for decoding day.

How do I send Pigpen if it cannot be typed?

Generate it here and screenshot or print the glyphs — or write it by hand from the on-screen rendering, which is slower and, most recipients agree, better. The share link carries the letters so a stuck reader can rebuild the chart.

Is any of this secure?

No, and it does not pretend to be. These are the world's best-loved play codes. Anything that truly needs secrecy needs real encryption, which is a different subject entirely.

Next steps