Gustav A. Mayer, a German-American confectioner, developed the recipe for thin, vanilla-flavored cookies and sold it to the National Biscuit Company in 1898. The company began selling them that year as Nabisco Vanilla Wafers.

Banana pudding and vanilla wafers existed separately on the American food scene around the same time. Early 20th century banana pudding recipes called for sponge cake rather than wafer cookies. Around the 1920s, home cooks began swapping sponge cake for wafers instead.

In 1921, Laura Kerley submitted a banana pudding recipe to The Pantagraph, an Illinois newspaper, that called for custard, sliced bananas, and vanilla wafers. Nabisco capitalized on this pairing. By the 1940s, the company had started printing banana pudding recipes on its vanilla wafer boxes.

The cookies remained called Vanilla Wafers until 1967, when Nabisco changed the name to Nilla Wafers. Today the cookies serve multiple purposes beyond banana pudding. They can replace graham crackers in pie crusts or substitute for chocolate wafers in an icebox cake.