Home › Secret Code Generator

Secret Code Generator

Make a secret code alphabet that only you and your friends know. Pick symbols, letters or numbers, and the page builds a new random code. Then use it as a secret code translator: write a message, send the secret version, and share the key with the people who should read it.

1. Make your code

2. Write or read a message

Secret code

How the secret code generator works

Each code is a substitution alphabet: every letter from A to Z gets its own symbol, letter or number, picked at random by your browser. The same letter always turns into the same thing, so the code is easy to write by hand once you have the key. Your current code is kept on this device, so it is still there next time you open the page. Press "Make a new code" for a fresh one; old messages then need the old key.

Symbols gives a symbol secret code alphabet of stars, shapes and other marks. Letters mixes up the alphabet so no letter stays itself, which looks like nonsense words. Numbers gives every letter a two-digit number from 10 to 99, written with spaces between letters and a slash between words.

Sharing a secret code alphabet

The key box holds your whole code in one line. It starts with S, L or N for the type, followed by the 26 values in order from A to Z. Send it to a friend, or save the key image and print it. They paste the key here, press "Use this key", switch to Decode and paste your message. Without the key, the message is hard to read at a glance.

How to make a secret code by hand

You do not need a computer to make a secret code. Write A to Z in a row, then under each letter draw a symbol, pick a number, or write the alphabet in a mixed-up order, using every symbol only once. Keep one copy of this key for yourself and give one to each friend. To write a message, swap each letter for the mark below it. To read one, find each mark and write the letter above it. Simple tricks make it harder to guess: leave out the spaces, or add a few marks that mean nothing.

How safe is a secret code?

A substitution code is great for games, puzzles, treasure hunts and notes between friends, but it is not real encryption. Someone who really wants to break it can count which symbols appear most often (E, T and A are the most common letters in English) and solve it like a newspaper cryptogram, especially with a long message. For anything private or important, use an app with proper encryption.

How we tested

We made 200 random codes of each type and encoded "Meet me at the old tree at noon, 3pm!" with each: all 600 decoded correctly, and so did the same messages after the key line was copied and loaded back. No letter code ever left a letter as itself, and the 64-symbol pool has no repeats. A broken key (too short, or with repeated values) was refused with a message. Loading a key, then decoding "Hello there" written with it, worked in the page, the code was still there after a reload, and the key image downloaded as a 900×630 PNG. Checked in Chromium on Windows at desktop width and 375 px with no sideways scrolling and no console errors.

Questions

Can my friend read my message on another device?

Yes, if they have your key. Send them the key line or the key image; with "Use this key" this page can decode the message on any device.

Are the codes really random?

Yes. They are made with your browser's secure random number generator, and nothing is sent to a server.

What happens to numbers and punctuation?

Only the letters A to Z are changed; digits, spaces and punctuation stay as they are. In a number code, write numbers as words (twelve, not 12), so they cannot be mistaken for letters. Symbol and number codes do not keep capital letters, so decoded messages come out in capitals.

Why do some symbols look different on my phone?

Each device draws symbols with its own fonts. The symbol is the same character, so decoding still works.