Megyn Kelly is close to finalizing a $30 million exit from NBC, sources confirm to Page Six.

The embattled anchor, who celebrated her 48th birthday Sunday, was dumped from her 9 a.m. slot on “Today” last month after questioning why it was racist to wear blackface for Halloween.

And as she prepares to sign her exit deal, the mom of three is already planning her return to TV, Page Six has learned.

Sources say NBC owner Comcast will pay Kelly around $30 million. She signed a $69 million deal when she joined the network after leaving Fox News in 2017.

A source familiar with the negotiations said nothing will happen until next week at the earliest, admitting: “It’s taking slightly longer than expected, the paperwork is going back and forth.”

Another confirmed: “Everyone wants this to be over — both Megyn and NBC — and Comcast has the money to pay off Megyn. We thought this would be a done deal a few weeks ago.”

One senior TV source added: “NBC decided rather than fight and face a lawsuit from her, they — and more importantly, Comcast with all its money — decided to draw a line under the entire debacle and pay Megyn the full amount owed in her contract to go away.

“But this is far from the end of her TV career — in the Trump era, there are few broadcasters like her. Megyn would likely take a short break from TV and return to cable news ahead of the 2020 election.”

When Kelly — whose 9 a.m. hour had failed to win over viewers — made her comments, the backlash was immediate, with “Today” mainstay Al Roker lashing out at his colleague on air.

He said: “The fact is, while she apologized to the staff, she owes a bigger apology to folks of color around the country.

“This is a history going back to the 1830s — minstrel shows to demean and denigrate a race wasn’t right. I’m old enough to know, have lived through ‘Amos ‘n’ Andy,’ where you had white people in blackface playing two black characters, just magnifying the worst stereotypes about black people — and that’s what the problem is. That’s what the issue is.”

Reps for Kelly and NBC declined to comment.