The actor, who has played Ian Beale since EastEnders began, revealed via his Twitter account that he has been cast as Captain Hook in Peter Pan.
Woodyatt tweeted: "Really pleased that I will be playing Captain Hook in the Christmas pantomime this year at the Beck Theatre, Hayes."
He later tweeted that this would be his first pantomime appearance in 18 years.
Woodyatt's fellow EastEnders star Steve McFadden recently signed up for another pantomime, playing the villainous Abanazar in Aladdin.
> Read EastEnders spoilers and news