The actor, who has been playing Joey Branning since summer 2012, is already filming his final storyline and will bow out on screen at Christmas.
Witts is departing the BBC soap of his own accord. He will feature prominently on screen for the rest of the year as Joey gets involved in the climax of his sister Alice's dark storyline with Michael Moon.
An EastEnders spokesperson told the Daily Star Sunday: "We can confirm that David is leaving EastEnders later this year and we wish him all the best for the future."
Witts had always admitted that he didn't want to become an EastEnders stalwart as he has other acting ambitions.
Upon joining Walford last year, Joey was initially known for his bitter feud with his father Derek, who has since died.
He also embarked on a surprising relationship with his cousin Lauren and continues to care deeply for her despite their split.
Jasmyn Banks and Steve John Shepherd, who play Alice and Michael, have previously confirmed their exits from EastEnders.
A number of other cast members are also leaving as part of a shake-up instigated by the show's new producer Dominic Treadwell-Collins.
Digital Spy Soap Scoop video - press play below to watch Amie Parker-Williams reveal gossip on an EastEnders murder plan, labour scenes in Hollyoaks, a proposal in Emmerdale and a big new feud in Coronation Street.