Clock Code Decoder

Map letters to clock positions. 1–12 AM = A–L, 1–12 PM = M–X, with Y and Z at half positions.

Text to Encode
Output
Type text above to encode it as clock times.

How the Clock Code Works

The clock cipher uses the 12-hour clock face as a visual encoding system. The alphabet is split into two groups of 13 letters. The first 12 letters (A–L) correspond to hours 1:00 through 12:00 on the AM side. The next 12 letters (M–X) use the same hour positions but on the PM side. The remaining two letters (Y and Z) use the half-hour positions 12:30 and 12:45 respectively.

To encode a message, each letter is converted to its clock time. Words are separated with a pipe character (|) for clarity. To decode, each time token is matched back to its letter using the AM/PM mapping. The visual clock face SVG shows the hour and minute hands pointing to the correct position for each letter.

History of Clock-Based Ciphers

Clock faces have appeared in puzzles and codes since the 19th century. The visual nature of a clock — divided into 12 equal sections — makes it an intuitive encoding grid. Children's spy kits, escape room designers, and puzzle book authors have all used variations of clock ciphers. While not cryptographically strong, the clock cipher has educational value: it teaches the concept of substitution ciphers and the importance of a shared key (in this case, the AM/PM mapping convention).

Substitution Ciphers

The clock cipher is a monoalphabetic substitution cipher — each plaintext letter maps to exactly one clock symbol. This makes it vulnerable to frequency analysis, since the most common letters in English (E, T, A, O, I, N) will appear as the most common clock positions. More secure variants use polyalphabetic substitution (like the Vigenère cipher) or symmetric key encryption (like AES). For real-world encryption needs, see our AES Encryption tool.

Using This Tool for Puzzle Design

This tool is perfect for creating escape room puzzles, treasure hunts, and educational cryptography exercises. Encode a clue as clock positions, print the clock faces, and challenge participants to decode the message. The visual clock display makes it particularly engaging for children and visual learners. The Reference tab shows the complete mapping table you can share with participants as a decoder key.

Encoding Format

Each letter encodes to a time string in the format H:MM AM/PM. Words are separated by spaces in the output (with each letter's time separated by a dash within a word). The AM suffix denotes A–L; PM denotes M–X. Y maps to 12:30 and Z to 12:45 as special cases. Non-letter characters are preserved as-is.

Frequently Asked Questions

Letters A–L map to hours 1–12 AM. Letters M–X map to hours 1–12 PM. Y = 12:30, Z = 12:45. Each letter shows as a clock time, and the visual clock face draws the hands in position.
AM positions (1:00–12:00 AM) represent letters A–L. PM positions (1:00–12:00 PM) represent letters M–X. This lets all 26 letters fit across 24 hour positions plus two half-hour slots.
Only the 26 letters A–Z are mapped to clock positions. Numbers and punctuation pass through unchanged.
The clock cipher is a novelty encoding used in puzzle books and escape rooms rather than a historically significant military cipher. Its security is low but it is visually appealing and fun.
Each encoded letter shows as an SVG clock face with hands pointing to the corresponding hour position. The letter label appears below the clock face.