← Signals & codes

A code study edition

English ↔ Pigpen cipher

A Dream Within a Dream · in the Freemasons' cipher of grids and angles

Edition: complete · every letter in the common Pigpen key · unreviewed project draft

The Pigpen cipher swaps each letter for the piece of a grid that holds it: two noughts-and-crosses grids and two X shapes, with and without dots. Freemasons used it in the 18th century, and it is carved on gravestones and written in diaries since. Here the whole poem is set in Pigpen, and the panel enciphers anything you type.

Draw it

dream

Each letter becomes the shape of its box in the grids below. Letters in the second grid and second X carry a dot. Try your own name.

26letters, each a shape from four grids
1700sFreemasons use it for their records
85different words to practise
486symbols in the whole poem

Part one / The poem

The poem, line by line

Every letter of Poe's poem as its Pigpen symbol. Spaces between words are kept; punctuation is dropped. The symbols are a font, so the letters underneath can still be selected and searched. Select a line number for its study note.

LineEnglish · sourcePigpen · grid symbols
Take this kiss upon the brow! take this kiss upon the brow
And, in parting from you now, and in parting from you now
Thus much let me avow — thus much let me avow
You are not wrong, who deem you are not wrong who deem
That my days have been a dream; that my days have been a dream
Yet if hope has flown away yet if hope has flown away
In a night, or in a day, in a night or in a day
In a vision, or in none, in a vision or in none
Is it therefore the less gone? is it therefore the less gone
All that we see or seem all that we see or seem
Is but a dream within a dream. is but a dream within a dream
I stand amid the roar i stand amid the roar
Of a surf-tormented shore, of a surf tormented shore
And I hold within my hand and i hold within my hand
Grains of the golden sand — grains of the golden sand
How few! yet how they creep how few yet how they creep
Through my fingers to the deep, through my fingers to the deep
While I weep — while I weep! while i weep while i weep
O God! Can I not grasp o god can i not grasp
Them with a tighter clasp? them with a tighter clasp
O God! can I not save o god can i not save
One from the pitiless wave? one from the pitiless wave
Is all that we see or seem is all that we see or seem
But a dream within a dream? but a dream within a dream

Part two / How it works

Two grids, two crosses

Write the alphabet into the four shapes, then replace each letter with the lines that box it in. The table shows the symbol beside every letter.

LetterSymbolLetterSymbolLetterSymbol
AaJjSs
BbKkTt
CcLlUu
DdMmVv
EeNnWw
FfOoXx
GgPpYy
HhQqZz
IiRr

1 · The first grid

A to I fill a noughts-and-crosses grid, three to a row. A sits top left, so its symbol is the two lines below and to its right.

abc

2 · The dotted grid

J to R fill a second grid with a dot in every box, so N is a square with a dot.

jkn

3 · The crosses

S to V fill the four arms of an X, and W to Z a dotted X. S is the top arm, a V shape.

stuv

4 · Keys vary

Some versions fill the grids in a different order. This edition uses the most common one, the order taught in most books.

dream

Practice

Break the grid

A word from the poem is shown in Pigpen. Pick the English word.

0 of 0 correct

Practice with every word

Every word of the poem

All 85 different words of the poem, in the order they first appear. Match each symbol to its box in the grids, then reveal the English.

Pigpen → English

How to practise

  1. Look for a dot first: it means the second grid or the second X.
  2. Match the shape to its box in the grids above.
  3. Reveal, then find the word in the poem.
  4. Draw the grids on paper and write a note in Pigpen.
See the full word list (85 words)
taketakeline 1 · 1×
thisthisline 1 · 1×
kisskissline 1 · 1×
uponuponline 1 · 1×
thetheline 1 · 6×
browbrowline 1 · 1×
andandline 2 · 2×
ininline 2 · 5×
partingpartingline 2 · 1×
fromfromline 2 · 2×
youyouline 2 · 2×
nownowline 2 · 1×
thusthusline 3 · 1×
muchmuchline 3 · 1×
letletline 3 · 1×
memeline 3 · 1×
avowavowline 3 · 1×
areareline 4 · 1×
notnotline 4 · 3×
wrongwrongline 4 · 1×
whowholine 4 · 1×
deemdeemline 4 · 1×
thatthatline 5 · 3×
mymyline 5 · 3×
daysdaysline 5 · 1×
havehaveline 5 · 1×
beenbeenline 5 · 1×
aaline 5 · 10×
dreamdreamline 5 · 5×
yetyetline 6 · 2×
ififline 6 · 1×
hopehopeline 6 · 1×
hashasline 6 · 1×
flownflownline 6 · 1×
awayawayline 6 · 1×
nightnightline 7 · 1×
ororline 7 · 4×
daydayline 7 · 1×
visionvisionline 8 · 1×
nonenoneline 8 · 1×
isisline 9 · 3×
ititline 9 · 1×
thereforethereforeline 9 · 1×
lesslessline 9 · 1×
gonegoneline 9 · 1×
allallline 10 · 2×
weweline 10 · 2×
seeseeline 10 · 2×
seemseemline 10 · 2×
butbutline 11 · 2×
withinwithinline 11 · 3×
Iiline 12 · 6×
standstandline 12 · 1×
amidamidline 12 · 1×
roarroarline 12 · 1×
ofofline 13 · 2×
surf-tormentedsurf tormentedline 13 · 1×
shoreshoreline 13 · 1×
holdholdline 14 · 1×
handhandline 14 · 1×
grainsgrainsline 15 · 1×
goldengoldenline 15 · 1×
sandsandline 15 · 1×
howhowline 16 · 2×
fewfewline 16 · 1×
theytheyline 16 · 1×
creepcreepline 16 · 1×
throughthroughline 17 · 1×
fingersfingersline 17 · 1×
totoline 17 · 1×
deepdeepline 17 · 1×
whilewhileline 18 · 2×
weepweepline 18 · 2×
Ooline 19 · 2×
Godgodline 19 · 2×
cancanline 19 · 2×
graspgraspline 19 · 1×
themthemline 20 · 1×
withwithline 20 · 1×
tightertighterline 20 · 1×
claspclaspline 20 · 1×
savesaveline 21 · 1×
oneoneline 22 · 1×
pitilesspitilessline 22 · 1×
wavewaveline 22 · 1×

Background

Grids on gravestones

The Freemasons

The cipher is often called the Masonic cipher. Freemasons used it in the 18th century to keep their records and rituals private.

Carved in stone

Pigpen inscriptions survive on gravestones, among them the 18th-century grave of James Leeson in Trinity Church yard, New York.

In war and fiction

Soldiers used it in letters during the American Civil War, and it turns up in novels and puzzle books to this day.

Sources

Pages consulted

  • Pigpen cipher, Wikipedia
  • David Kahn, The Codebreakers (1967)
  • Trinity Church, New York: the James Leeson gravestone (1794)