Room 40 was a secretive British Admiralty unit formed in October 1914. It decrypted 15,000 German messages during WWI, including the Zimmermann Telegram. Here is how Ewing, Hall, and a handful of civilians did it.
In October 1914, the British Admiralty set up a small codebreaking section in a single room of the Old Building at Whitehall. It had no grand name. Staff called it Room 40. By the end of the First World War, this handful of civilians and naval officers had decrypted roughly 15,000 German communications, pulled the United States into the war, and built the organization that would become Bletchley Park.
Room 40 is the answer to a question people rarely ask: who broke German codes before Alan Turing? The unit's methods were not mathematical in the modern sense. They relied on captured codebooks, linguistic skill, and the fact that German operators made mistakes. The most famous result, the Zimmermann Telegram, was described by historian David Kahn in his book The Codebreakers (1967) as "the most significant intelligence triumph for Britain during WWI."
You can get a feel for the kind of cipher machinery that followed this era with our Enigma Machine Simulator, or compare the ADFGVX field cipher that Germany deployed later in the war with our ADFGVX Cipher tool.
Room 40 began with a hobby. Rear-Admiral Henry Oliver, the Director of Naval Intelligence, had been collecting German radio intercepts since the start of the war in August 1914. He could not read them. Oliver knew that Sir Alfred Ewing, the Director of Naval Education, had built and solved ciphers as a private pastime. Oliver walked the intercepts over to Ewing's office and asked him to take a look.
Ewing was a Scottish engineer, not a mathematician. He had worked on magnetic torpedoes and telegraphy. He attacked the German messages with patience rather than theory. Realizing the job was too large for one man, he began recruiting civilians who had the right skills. Two of the most important recruits were William Montgomery, a theological translator who had worked on German theological texts, and Nigel de Grey, a publisher from the firm William Heinemann who spoke French and German. None of them were career intelligence officers.
This ad-hoc character was Room 40's strength and its weakness. The unit operated with little formal structure for most of the war. Ewing directed it until May 1917, when Captain William "Blinker" Hall (so nicknamed for his habit of blinking rapidly) took direct control, assisted by William Milbourne James. Hall was a ruthless operator who understood that intelligence is useless if you cannot control how it is used. Under Hall, Room 40 became more disciplined and more politically effective.
The Imperial War Museum holds records and artifacts from the unit, and the GCHQ official history traces the institutional lineage from Room 40 through to the modern agency.
Room 40's work depended on a run of luck that no planner could have arranged. Three German naval codebooks fell into British hands early in the war, and each one covered a different communications system.
The first was the Handelsverkehrsbuch (HV), used by German merchant ships and naval vessels outside home waters. It was seized from a German merchant ship by Australian forces off the coast of Australia in August 1914. The book was sent to London, where it reached Room 40.
The second was the Signalbuch der Kaiserlichen Marine (SKM), the main signal book of the Imperial German Navy. This was the big prize. The Russians captured it from a German light cruiser, the Magdeburg, which ran aground in the Gulf of Finland in August 1914. The Russian navy recovered the codebook from the wreck and handed it to the British in October 1914. Without this transfer, Room 40 would have struggled for months or years.
The third was the Verkehrsbuch (VB), used for diplomatic and high-level naval traffic. A British trawler recovered it from a lead-lined box dredged up from the seabed off the Netherlands after a German destroyer was sunk. The box had been weighted for disposal, but the weight came loose.
These three books were not simple substitution tables. They were codebooks that mapped words and phrases to numbered groups, often superenciphered with a separate key. Room 40's job was to keep the books current as the Germans updated them, and to recover the superencipherment keys. The captured books gave them the static part of the system. The daily work was recovering the variable part.
Historian Patrick Beesly documented these captures in detail in Room 40: British Naval Intelligence 1914-18 (1982), which remains the standard reference. The Wikipedia article on Room 40 and the 1914-1918 Online Encyclopedia provide accessible summaries with citations to Beesly and to the official naval histories.
Room 40's single most consequential decrypt was the Zimmermann Telegram. On January 16, 1917, the German Foreign Office sent a coded message from Berlin to the German ambassador in Washington, Count Johann von Bernstorff. The message, drafted by Foreign Secretary Arthur Zimmermann, proposed a military alliance between Germany and Mexico if the United States entered the war against Germany. Germany offered to help Mexico recover Texas, New Mexico, and Arizona.
The message traveled over a telegraph cable that the British had tapped. Room 40 intercepted it. Montgomery and de Grey did the decryption work. The telegram used a German diplomatic code known as 0075, and Room 40 had enough of the codebook material to read the content.
Here is where Hall's political instincts mattered. He knew that simply handing the decrypted telegram to the Americans would reveal that Britain was reading German diplomatic traffic, which could cause the Germans to change their codes. Hall waited. He arranged for the telegram to be "discovered" in a way that suggested it had been stolen from the Mexican telegraph office, not intercepted from the German cable. This cover story protected the source.
The telegram was shown to President Woodrow Wilson. Its contents were published in the United States on March 1, 1917. American public opinion, already shifting after Germany's resumption of unrestricted submarine warfare, turned sharply against Germany. Congress declared war on Germany on April 6, 1917.
Historian Barbara Tuchman told this story in The Zimmermann Telegram (1958), arguing that the decrypt was the single intelligence event that made American entry into the war politically possible. The claim is debatable, since unrestricted submarine warfare was already doing that work. But the telegram gave the administration a concrete, embarrassing, and verifiable casus belli that no isolationist argument could explain away.
Room 40's record was not unblemished. The Battle of Jutland, fought on May 31 to June 1, 1916, is the clearest case where good intelligence was wasted by bad communication.
Room 40 had been reading German naval operational traffic and knew that the High Seas Fleet was putting to sea. The Admiralty passed warnings to Admiral Sir John Jellicoe, commander of the Grand Fleet, and the British fleet put to sea in time to intercept. So far, so good.
The failure came in the details. Room 40 knew the German fleet's position and heading from decrypts, but the Admiralty did not pass the full detail to Jellicoe. There was a procedural gap between the codebreakers and the operations staff. Jellicoe received enough to know the Germans were out, but not enough to position his fleet optimally for the night actions. The battle was a tactical draw and a strategic British victory, but it did not produce the decisive annihilation that Jellicoe's numerical superiority should have allowed.
Beesly's account places the blame on the Admiralty's failure to integrate intelligence with operations, not on Room 40's collection. The lesson, repeated in every later conflict, is that intelligence is only as good as the command structure that uses it. This is the same lesson Bletchley Park would have to relearn with the Admiralty's Operational Intelligence Centre in 1940-1941.
Room 40 did not dissolve after the armistice. It merged.
On November 1, 1919, Room 40 and the War Office's parallel codebreaking section, MI1(b), were combined into a new organization: the Government Code and Cypher School, abbreviated GC&CS. The first head was Alastair Denniston, who had been a Room 40 linguist. GC&CS reported initially to the Admiralty and the Foreign Office jointly.
GC&CS is the direct institutional ancestor of GCHQ, the UK's current signals intelligence agency. When war with Germany loomed again in 1939, GC&CS evacuated London and moved to Bletchley Park, a country house in Buckinghamshire. Many of the methods that Bletchley Park used against Enigma, including the reliance on captured material and the integration of linguists with mathematicians, were inheritances from Room 40's working culture.
The continuity is not just organizational. The habit of recruiting civilians with unusual skills, rather than only career military officers, was a Room 40 innovation that Bletchley Park scaled up. Montgomery was a theological translator. Denniston was a linguist. Bletchley Park recruited chess champions, mathematicians, crossword experts, and museum curators. The model worked.
You can see how the machinery changed between the wars by comparing the hand-cipher and codebook systems of Room 40's era with the rotor machines that followed. The Lorenz cipher that Bletchley Park broke with the Colossus computer was a far more complex system than anything Room 40 faced, but the intelligence cycle, collect-then-decrypt-then-disseminate, was the same one Ewing and Hall had built.
For readers who want to go deeper, the GCHQ history pages cover the GC&CS transition, and Beesly's Room 40 (1982) remains the most detailed printed source. Kahn's The Codebreakers (1967) places Room 40 in the wider history of cryptanalysis.
Room 40 was the British Admiralty's codebreaking unit during the First World War, formed in October 1914. It was staffed initially by civilians recruited by Sir Alfred Ewing, including translator William Montgomery and publisher Nigel de Grey. The unit decrypted approximately 15,000 German communications between 1914 and 1918.
The Zimmermann Telegram was a secret January 1917 message from German Foreign Secretary Arthur Zimmermann proposing a military alliance with Mexico against the United States. Room 40 decrypted it. Admiral William Hall arranged for it to be shared with the US government in a way that protected the source. Its publication helped push the US into declaring war on Germany in April 1917.
Three German naval codebooks were captured early in the war. The Handelsverkehrsbuch was seized from a German merchant ship off Australia. The Signalbuch der Kaiserlichen Marine was recovered by Russian forces from the wrecked cruiser Magdeburg in Estonia and shared with Britain. The Verkehrsbuch was recovered by a British trawler from a weighted box dredged up off the Netherlands.
Not directly, but it was the predecessor. On November 1, 1919, Room 40 merged with the War Office's MI1(b) to form the Government Code and Cypher School (GC&CS), led by Alastair Denniston. GC&CS moved to Bletchley Park in 1939 at the start of the Second World War. GC&CS later became GCHQ.
Sir Alfred Ewing directed Room 40 from its formation in 1914 until May 1917. Captain William 'Blinker' Hall then took direct control, assisted by William Milbourne James. Hall's political handling of intelligence, particularly the Zimmermann Telegram, was as important as the decryption work itself.
Enigma Machine Simulator
Simulate the WWII German Enigma cipher machine with configurable rotors, reflector, plugboard, and ring settings.
ADFGVX Cipher
WWI German field cipher combining fractionation and transposition for military security.
Lorenz / Tunny Cipher Simulator
Simulate the WWII German Lorenz SZ40/42 cipher attachment (Tunny), a 12-wheel Vernam stream cipher broken at Bletchley Park with Colossus.
The Enigma Machine: How It Worked and How Bletchley Park Broke It
On July 9, 1941, Bletchley Park decoded an Enigma message that saved 103 ships. The machine looked like a typewriter. It had one mathematical flaw. Learn how rotors, reflectors, and plugboards worked.
The Zodiac Killer Ciphers: How Z340 Was Solved After 51 Years
For 51 years, a 340-character cipher sat in FBI files. It was solved in December 2020 by three amateur codebreakers working from home. Z13 and Z32 remain unsolved. Here is how it was done.