The 78-year-old actress will be part of the play written by Bond writers John Logan, reported Daily Mail.
Michael Grandage, the play's director, said, "Judi's a hot, hot star. But she's up for doing a play and loves being part of a company. Judi's over the moon about doing the play, and looking forward to meeting the cast."
The play is about what happened when Alice Liddell Hargreaves, the inspiration behind Lewis Carroll's 'Alice In Wonderland', met Peter Llewelyn Davies, who JM Barrie based children's favourite 'Peter Pan' on.
"It's about what happened to their lives when they grew up, and what part of them gets left in childhood and what part comes with them. It's about how the real Peter and Alice dealt with the public adoration, because neither of them asked to become Peter Pan and Alice in Wonderland," Grandage added.
The production sets up a fictional conversation between Peter and 80-year-old Alice as they wait for a Lewis Caroll exhibition to open.
Up-and-coming actors Olly Alexander and Ruby Bentall will play the fictional young characters.
Rehearsals begin on January 28 and the play will run from March 9 at London's Noel Coward Theatre.