The city is expanding a program to get unruly homeless people off the subway and into shelters from Manhattan to all five boroughs, officials announced Thursday.

The program, which launched July 1, allows vagrants approached by the NYPD for violating transit rules and laws to accept social services in place of a summons or arrest.

“All New Yorkers should feel safe and comfortable on public transit,” Mayor Bill de Blasio said in a statement. “We’re striking the right balance, and meeting New Yorkers in need where they are to ensure they’re connected with services to help them back on their feet.”

Since the program launched in Manhattan, just over 200 individuals have opted for social services instead of penalties, according to City Hall. Of those, 33% ended up receiving either medical care or shelter, officials said.

Officials estimate some 3,588 people live “un-sheltered” in the Big Apple, around 1,700 of them in the subways.

In addition to the diversion program expansion, the city also announced the creation of an inter-agency “Joint Crisis Coordination Center” that will unite the efforts of NYPD, the Department of Homeless Services and other city agencies to engage so-called “entrenched” individuals — those who have been approached by social workers or cops at least 50 times in the last year.

Both efforts are part of the city’s three-year-old “HOME-STAT” program, which expanded the number of NYPD and DHS staff conducting homeless outreach.

The city claims the program has helped get 600 vagrants get out of the subways and into shelter.

Subway homeless outreach efforts are conducted in coordination with the Bowery Residents’ Committee, an outside contractor the city and MTA pay a combined $9 million annually.

Last month, a blistering audit by State Comptroller Tom DiNapoli revealed that BRC staff at major transit hubs spent most of their time in their offices, not conducting outreach — often with the door shut and a “closed” sign telling down-and-outs seeking support to come back later.

The MTA IG subsequently launched an investigation into the nonprofit organization.

Delays caused by incidents involving homeless individuals have spiked in 2019. An MTA task force formed last month to tackle the issue is expected to release recommendations by Aug. 23.

BRC’s contract with the city expires at the end of fiscal year 2020. The city refused to comment on whether it will be renewed, only saying that BRC will be permitted to bid for a new one.

A spokesperson for the NYPD said that the department’s “experience with the pilot program in Manhattan is promising.”

Additional reporting by Craig McCarthy and Julia Marsh