This is a research-based piece, drawn from the sources listed at the end. Near the end of Stanley Kubrick's The Shining (1980), Jack Torrance — played by Jack Nicholson — chases his wife Wendy through the Overlook Hotel with an axe. She locks herself in the bathroom. He hacks a hole through the door, pokes his grinning face through the gap, and delivers the line that has echoed through horror ever since: "Here's Johnny!" It is one of the most quoted moments in film history. It was never in the script.
The line came from the cosiest corner of American television. From 1962, Ed McMahon opened The Tonight Show Starring Johnny Carson by booming "Heeere's Johnny!" to welcome the host on stage. By the late 1970s it was cultural wallpaper. Nicholson, filming the door scene, slipped it in as an ad-lib — a warm, familiar greeting dropped into a murder attempt. The line does not appear in Stephen King's 1977 novel, and it was not in Kubrick's script either. Part of the joke is that it makes no sense inside the story at all: the character's name is Jack, and nobody in the film is called Johnny. What Nicholson borrowed was not a line about his character; it was a piece of American living-room furniture, carried into a nightmare.
The strangest part of the story is that the director did not understand what Nicholson had done. Kubrick had lived in England for years, where The Tonight Show did not air, and he reportedly had no idea "Here's Johnny!" was a catchphrase. Several accounts of the production say he was baffled by the ad-lib and considered cutting the line from the film altogether. In the end he kept the take — apparently because, without the reference, the line sounded to him like the ravings of a madman, which was exactly what the scene needed. What Nicholson meant as a joke, Kubrick heard as madness. The mismatch is part of why the moment works: a director who missed the reference preserved it for the wrong reason, and the wrong reason turned out to be the right one.
The door scene was famously hard to shoot. According to Shelley Duvall, who played Wendy, it took three days to film and the crew went through 60 doors before Kubrick was satisfied. One reason was Nicholson himself: before acting, he had trained as a volunteer firefighter, and he knew exactly how to take a door apart with an axe. The first prop door barely slowed him down — he smashed through it so fast that the scene lost all its tension. The crew replaced it with a real wooden door to make him work harder, and still he tore through them, take after take. Before filming, Nicholson worked himself into character by jumping up and down, talking to himself, and throwing the axe onto a bed, as reported by The Independent. Sixty doors later, the take Kubrick kept was the one with the improvised line in it. The perfectionist director, who demanded take after take, ended up choosing the take his star had gone off-script in — much like the way a broken mechanical shark forced Spielberg to improvise in Jaws, and the way Hitchcock built the shower scene in Psycho out of suggestion rather than gore.
The Overlook itself is stitched together from real places. King got the idea during a night at the Stanley Hotel in Estes Park, Colorado, in 1974, when he and his wife were the only guests as the hotel closed for the winter; that night he dreamed of his young son being chased through the corridors, and by morning he had the bones of the novel. Kubrick, though, filmed the exteriors at Timberline Lodge on Mount Hood in Oregon — the stone-and-timber lodge in the photograph above — and built the interiors on sets at Elstree Studios in England. One detail changed along the way: in King's novel the haunted room is 217, the room King himself had stayed in, but Timberline Lodge actually had a Room 217, and its management asked Kubrick not to use the number. He changed it to 237, a number that did not exist at the lodge. The irony is that Room 217 is now the most-requested room at Timberline Lodge.
In 2005, the American Film Institute ranked "Here's Johnny!" at number 68 on its list of the 100 greatest movie quotations, chosen by a jury of 1,500 film artists, critics, and historians. It sits on that list alongside another line from Casablanca, "Here's looking at you, kid," at number 5 — a reminder that lines survive because people keep using them. "Here's Johnny!" works because it is two things at once: the friendliest greeting on American television, delivered by a man holding an axe. Nobody planned that collision. An actor borrowed a catchphrase, a director kept a line he did not understand, and a firefighter's training turned a prop door into sawdust. The most famous line in the film was an accident — and accidents, sometimes, are exactly what a scene needs.
A line can outlive the film it came from when it carries two feelings at once. "Here's Johnny!" is a warm welcome and a threat in the same breath, and that contradiction is why people still say it — at doors, in jokes, in parodies — forty-five years later. It was never written down, never rehearsed, and never understood by the man who decided to keep it. Sometimes the most lasting thing in a work of art is the part nobody planned.
Related on Poptani Labs: “Play it again, Sam”: the most famous movie line nobody ever said, Psycho's shower scene: seven days, chocolate syrup, and a melon, The shark that wouldn't work: how Jaws' broken robot made the scariest movie ever. More in this category: Screen Time.
Sources: SlashFilm — The Improvised Line In The Shining That Became An Instant Classic, No Film School — This Jack Nicholson Ad-Lib Terrorized a Generation, ScreenRant — 10 Creepy Behind-The-Scenes Facts About The Shining, AFI's 100 Years...100 Movie Quotes — Wikipedia, CNN — Heeeeere's 'The Shining' hotels