A new Harry Potter book will be released nine years after JK Rowling's final story, The Deathly Hallows.

Rowling's website Pottermore confirmed the script of the new stage play Harry Potter and the Cursed Child will be released as a book on July 31, 2016, the day after the play's world premiere and, fans will note, the lead character's birthday.

The Cursed Child is officially the eighth book in the Harry Potter canon and will be released in two versions: a special rehearsal edition using the script performed in the play's previews, before being replaced later by a definitive collector's edition.

It will be a relief for fans worldwide who are desperate to join in the new chapter of Harry, Ron and Hermione's wizarding adventure but are unable to get tickets to the play, which at the moment has only been confirmed to show in London.

Harry Potter and the Deathly Hallows ended 19 years after the Battle of Hogwarts as Harry waved his two eldest children off to the wizarding school.

The Cursed Child will pick up from that moment, focusing on Harry as an exhausted Ministry of Magic civil servant and his middle child Albus Severus, who is struggling under the weight of the family's legacy.

It will be the first tale in the Harry Potter canon not written by Rowling. The two-part play is by Jack Thorne, although it is based on an original idea by Rowling, Thorne and the stage play's director John Tiffany.

The History Boys' Jamie Parker will play Harry Potter in the new play, alongside Olivier Award-winning actress Noma Dumezweni as Hermione and Les Miserables actor Paul Thornley as Ron.

It will run into 2017, which marks the 20th anniversary of the UK publication of Harry Potter and the Philosopher's Stone.

To celebrate, fans will be able to collect a new edition of Hogwarts library book Fantastic Beasts And Where To Find Them, featuring new content by Rowling, as well as new editions of Quidditch Through The Ages and The Tales Of Beedle The Bard.

Before then, fans will be able to indulge themselves once more in Rowling's magical world in Fantastic Beasts And Where To Find Them, starring Eddie Redmayne as Newt Scamander, a "magizoologist" who accidentally unleashes a menagerie of magical animals on New York.

The film is set for release in November 2016.