Case files The spy's invisible ink: A blank page. Brush it, and the message appears.
The spy's invisible ink: how an indicator hides a message and an alkali brings it back
Short answer: an intercepted letter talks about the weather, but between its lines someone has written in phenolphthalein, an indicator that dries colourless. The page looks blank there. Brush it with an alkali, such as sodium carbonate solution, and the hidden words turn pink. Brush the same place with an acid, such as vinegar, and the pink disappears again, so the letter can travel on as if nobody had read it. Phenolphthalein is colourless below about pH 8.3 and pink above it, and that one fact is the whole trick. Spies really used it: phenolphthalein ink was used in the Second World War, written near pH 7 and revealed with a slightly alkaline spray. A second message in lemon juice works another way: heat turns it brown, and nothing turns it back.
Brush the letter. Pink words appear. Sodium carbonate turns it pink. Lemon juice needs heat: brown. Vinegar, and the pink is gone.
How the indicator switches
Most indicators are weak acids whose molecule and ion have different colours. For phenolphthalein the molecule, HIn, is colourless and its ion, In⁻, is bright pink:
HIn ⇌ H⁺ + In⁻colourless ⇌ pink
Add an alkali and its hydroxide ions remove hydrogen ions, so the equilibrium shifts to the right and the pink ion wins. Add an acid and the extra hydrogen ions shift it back to the left: colourless. The change does not happen at one exact pH. Phenolphthalein starts to turn pink at about pH 8.3, is fully pink by pH 10.0, and is half way at pH 9.3.
What each developer does on the bench
| Developer | pH | On colourless writing | On pink writing |
|---|---|---|---|
| Water | 7 | Nothing | Stays pink |
| Vinegar | about 2.4 | Nothing | The pink fades |
| Sodium carbonate, 0.1 mol dm⁻³ | about 11.7 | Pink appears | Stays pink |
| Warming the page | The lemon juice message turns brown | No change to the pink |
Water cannot reveal the message, because pH 7 is below 8.3. It cannot hide it again either, because it does not take the alkali away. Only an acid does that.
The pH values, worked out
The two pH values in the table are calculated, not measured, from acid dissociation constants at 25 °C. Carbonate ions take a hydrogen ion from water, which is why sodium carbonate solution is alkaline:
CO₃²⁻ + H₂O ⇌ HCO₃⁻ + OH⁻
Its base constant comes from the second acid dissociation constant of carbonic acid, Ka2 = 4.7 × 10⁻¹¹:
Kb = 1.0 × 10⁻¹⁴ ÷ 4.7 × 10⁻¹¹ = 2.1 × 10⁻⁴[OH⁻] = √(2.1 × 10⁻⁴ × 0.10) = 4.6 × 10⁻³ mol dm⁻³pOH = 2.34, so pH = 14.00 − 2.34 ≈ 11.7
Vinegar is taken as about 5 % ethanoic acid, 50 g dm⁻³ ÷ 60.05 g mol⁻¹ ≈ 0.83 mol dm⁻³, with Ka = 1.75 × 10⁻⁵:
[H⁺] = √(1.75 × 10⁻⁵ × 0.83) = 3.8 × 10⁻³ mol dm⁻³, so pH ≈ 2.4
Both are far from 8.3, which is why the result is clear cut: the carbonate makes the writing pink, the vinegar makes it disappear. When the acid meets the carbonate on the paper it neutralises it:
CO₃²⁻ + 2CH₃COOH → CO₂ + H₂O + 2CH₃COO⁻
The lemon juice message
On Normal and Hard the letter carries a second message at the foot of the page, written in lemon juice. There is no indicator in it, so no liquid on the bench brings it out. Warming does: acids such as lemon juice and vinegar make colourless writing that darkens with heat, because the hot acid chars the paper where it was written, leaving dark carbon. Gentle heat is the rule; the ink should singe before the rest of the paper does. That is why the page is held above the hot plate, never laid on it. Unlike the pink, the brown cannot be switched off again.
Secret ink in history
Invisible ink is real spycraft. The oldest classified documents of the United States government, from 1917 and 1918, describe secret writing: one sets out the chemicals and techniques needed to develop certain secret inks, and a memorandum dated 14 June 1918 gives the formula the Germans used. They were declassified in 2011. Phenolphthalein ink was used in the Second World War, written with a fountain pen in slightly alcoholic water near pH 7, revealed pink with a slightly alkaline spray such as ammonia or sodium bicarbonate, and made invisible again with vinegar. The level follows the same steps.
Method in short
- Choose a developer and say what you expect the page to show: nothing, pink appears, pink fades, or (on Normal and Hard) brown appears.
- Brush the developer across the page, or warm the page well above the hot plate.
- Compare what you see with your prediction, and read any message that has appeared.
- Count your wettings: the page tears after five on Easy, four on Normal, three on Hard.
- Before the letter goes back into the post, brush on the acid so that no pink is left.
The mistakes people usually make
- Brushing on water to reveal the message. Water is neutral, pH 7, below the 8.3 where phenolphthalein turns pink.
- Brushing on vinegar first. An acid keeps phenolphthalein colourless. It only helps after the alkali.
- Thinking heat reveals the indicator. Phenolphthalein does not change colour with heat. Heat only brings out the lemon juice.
- Thinking water hides the pink again. It does not take the alkali away. Use an acid.
- Wasting wettings. The page can only take a few. Think acid or alkali before you brush.
- Laying the page on the hot plate. It scorches. Hold it above.
Safety
Wear eye protection. Phenolphthalein indicator is a solution in ethanol, so it is flammable: no flames near the bottle or the wet page. Phenolphthalein itself may cause cancer, is suspected of causing genetic defects and of damaging fertility, and irritates the eyes, so it is used only as a few drops and never on skin. Sodium carbonate solution causes serious eye irritation. Warm paper above a heat source, never on it. Neutralise acid and alkali leftovers before they go to waste, the way your teacher directs.
Questions people ask
How does phenolphthalein invisible ink work?
The writing dries colourless. Phenolphthalein turns pink above about pH 8.3, so an alkali brushed over the page makes the words appear, and an acid makes them colourless again.
What makes phenolphthalein turn pink?
An alkali. Hydroxide ions remove hydrogen ions from the indicator, turning the colourless molecule into its pink ion.
Why does lemon juice writing appear when heated?
The acid in the juice chars the paper where you wrote when it is heated, leaving dark carbon. It cannot be made invisible again.
Can you make the message disappear again?
The phenolphthalein message, yes: an acid such as vinegar brings the pH back below 8.3. The lemon juice message, no.
Is phenolphthalein dangerous?
It is classed as possibly causing cancer in humans, and in 1997 it was banned as an over-the-counter laxative in the United States and many European countries. In the lab it is used as a few drops of indicator, with care.
Sources
- Jim Clark, Chemguide: acid-base indicators (phenolphthalein's colourless acid and pink ion, the range 8.3 to 10.0, half way at 9.3, how acid and alkali shift the equilibrium)
- University of Bristol, Molecule of the Month: phenolphthalein (colourless up to pH 8.3; invisible ink in the Second World War, revealed by a slightly alkaline spray, hidden again by vinegar; the laxative, the cancer classification and the 1997 ban)
- Royal Society of Chemistry, Making invisible ink (phenolphthalein ink turned pink by alkali; lemon juice and other acids darkened by heat, the acid charring the paper; phenolphthalein solution flammable)
- Royal Society of Chemistry, Using chemistry to turn water into wine (sodium carbonate solution turns phenolphthalein pink)
- Central Intelligence Agency, Secret writing: CIA's oldest classified documents (1917 and 1918, developing secret inks, the German formula of 14 June 1918, released 2011)
- LibreTexts Chemistry, Carbonate ion (CO₃²⁻ + H₂O ⇌ HCO₃⁻ + OH⁻, a moderately strong base)
- LibreTexts Chemistry, table E1: acid dissociation constants at 25 °C (ethanoic acid 1.75 × 10⁻⁵; carbonic acid 4.5 × 10⁻⁷ and 4.7 × 10⁻¹¹)
- Jim Clark, Chemguide: acids and carbonates (CO₃²⁻ + 2H⁺ → CO₂ + H₂O)
- PubChem, Phenolphthalein (hazard classification: may cause cancer, suspected of genetic defects and of damaging fertility, eye irritation)
- PubChem, Sodium carbonate (hazard classification: serious eye irritation)
Checked on 27 November 2026. Colour words, ranges and safety rules vary between books and schools; your teacher's method and risk assessment come first.