The 23-time Grand Slam singles champion has not played since her injuring herself in the first round of the tournament last year but will return to the All England Club.
Williams will also compete in the doubles with Tunisian player Ons Jabeur at Eastbourne in the week prior to SW19.
The sports star had hinted that she could be making a return for the tournament and an Instagram post on Tuesday (14.06.22).
She captioned an image of her trainers on grass: "SW and SW19. It's a date."
Williams has slipped to a world ranking of 1,208 after a prolonged period out of the sport.
Serena last won at Wimbledon but also reached the final in 2018 and 2019 after returning to the game from maternity leave when she gave birth to her daughter Olympia.
The American will be looking to win her first Grand Slam title since the 2017 Australian Open and equal Margaret Court's record of 24 Grand Slam singles titles.
Williams also said she was "looking forward" to playing at Eastbourne in the final grass-court tournament before Wimbledon gets underway on 27 June.
She said: "I am excited to return to Eastbourne and be back on the grass - a surface that has been so good to me throughout my career.
"Eastbourne has a unique charm that you don't see anywhere else on tour."
Serena's older sister Venus was not in the first batch of wildcards for Wimbledon having not played on the WTA Tour since August, although she could still be given one of the remaining two spots in the draw.