The reality star, 24, will appear as a cab driver in the BBC One soap.
She will join her father Danny in starring in the programme, in which he plays Mick Carter.
It is understood she will have a small role in one episode of the soap, which will air next month.
The BBC released a picture of Dani posing behind the wheel of a car while Danny looks on through the window.
Danny joined the EastEnders cast in 2013.
The father and daughter duo have worked together previously and co-host Sorted With The Dyers, an unscripted Spotify podcast.
Dani starred in the 2018 edition of reality show Love Island.
Earlier this year she revealed she had given birth to son Santiago, who is her first child.
With reporting by PA
Watch: Dani Dyer announces birth of first child