A homeless man accused of bashing a Manhattan subway rider in the face with a metal pipe is in police custody, authorities said Monday.

The suspect was picked up at 11 p.m. Sunday and was being held at the Manhattan Robbery Squad on 12th Street in Greenwich Village, cops said.

He was arrested by cops in Brooklyn after a crime-stoppers tip led police to the shelter he was staying at on Rogers Avenue in Crown Heights, police sources told The Post.

The suspect allegedly got into a fight with a 59-year-old man while panhandling aboard a No. 2 train in Manhattan about 11:15 p.m. Saturday.

As the two men got into an argument, the suspect pulled a metal pipe out and whacked the victim in the face, fracturing his skull and breaking his eye socket, police said.

It was not clear what the two men were arguing about, police said.

The victim was taken to Bellevue Hospital in stable condition, authorities said.

Charges against the suspect are pending, police said.