Rep. Alexandria Ocasio-Cortez has emerged as a polarizing figure in her home state in just eight months in office, a new survey released Tuesday reveals.

Forty-one percent of New York state voters view her favorably and the same percentage unfavorably, with the rest undecided, the Siena College poll found.

Democrats like the lefty firebrand congresswoman — 62 percent view her favorably while 21 percent do not. But 77 percent of Republicans don’t like her.

She has strong support among black voters and voters in union households.

Ocasio-Cortez, a Democratic socialist who represents portions of Queens and the Bronx, is popular in her New York City base, with 53 percent viewing her favorably and just 28 percent unfavorably.

But in the suburbs, 52 percent of voters view her unfavorably and just 32 percent favorably, and she’s underwater with upstate voters.

Ocasio-Cortez, who has built a national following on social media, has extraordinary name recognition for a first-term congresswoman, with more than 8 in 10 voters knowing her enough to express an opinion.

By comparison, 60 percent of voters in the same poll said they had no opinion of three-term state Comptroller Tom DiNapoli.

She has galvanized young voters and others on the left with her progressive views on immigration and the environment and become a force in her party. But she has also becoming a lightning rod for picking fights with establishment Democrats and has become a favorite target for Republicans, who see her views as outside the mainstream.

The Siena College poll queried 810 registered voters from July 28 to Aug. 1 and has a margin of error of 4.1 percentage points.