The deadly clashes in Charlottesville would never have taken place in the Big Apple — because the NYPD keeps rival protesters far from each other, local law-enforcement sources said Sunday.

“We would have drawn the lines in the very beginning,” a high-ranking official said.

“We put the barriers up. If they’re going to march, we have our cops that are going to march on both sides of their march. They wouldn’t be allowed to intermix.

“We don’t stand by and watch protesters fight. … We even block the cars,” the source added.

Cops in Charlottesville came under fire from both sides after Saturday’s fatal car crash, in which a neo-Nazi drove into a crowd of anti-racism protesters.

“Unite the Right” organizer Jason Kessler said Sunday that police “exacerbated the violence” in part by being “poorly underequipped for the situation.”

A counter-protest organizer, Brittany Caine-Conley of Congregate C’ville, also told the New York Times that cops did nothing as people beat each other bloody.

“It was essentially just brawling on the street and community members trying to protect each other,” she said.

Virginia Gov. Terry McAuliffe told CBS News said he was “proud of law enforcement here,” noting that “not one single shot was fired, not one bit of property damage.”

McAuliffe also told the Times: “You can’t stop some crazy guy who came here from Ohio and used his car as a weapon.”