A blind man who nearly died after falling onto subway train tracks will get to keep the loyal dog who tried to save him — thanks to New Yorkers who whipped out their checkbooks to help the duo stay together.

Cecil Williams, 61 — whose 11-year-old pooch, Orlando, leaped onto the tracks after his master fainted on Tuesday — said the lovable lab will retire as a seeing-eye dog and become a pet with the help of donation money.

Williams, who will get a new service dog because Orlando is too old, had planned to give up his furry pal because his insurance plan doesn’t cover the living cost of non-working dogs, he said.

Donation cash will now pay for Orlando’s vet bills and food, which Williams said fills him with joy.

“The spirit of giving, Christmas and all that — it exists here. It’s in New York,” he said, in tears, at St. Luke’s hospital on Wednesday.

“Orlando, he’s my best buddy. He’s my pal. He takes me on the train. He takes me on the buses. He takes me everywhere I need to go. He’s a very gentle, gentleman,” he said.

He added, “For me, I know that angels, miracles, that’s what saved me down on the track.”

Guiding Eyes for the Blind, which trained Orlando, created a donation fund to help Williams keep the dog on Wednesday. A spokeswoman would not immediately say how much money had been raised.

But animal lovers inspired by the story donated more than $45,000 on the crowd-funding site Indiegogo to help keep the pair together.

“I was moved by the story.. That dog deserves to be spoiled rotten for the rest of his life. This guy can’t afford it and I can — and it’s Christmas,” said Andrew Piera of Blue Star Transportation, who offered to pay for the dog’s cost of living for the rest of his life.

The 11-year-old pooch was born in Paterson New Jersey and spent a 18 weeks with puppy raisers before he was sent to live with Williams in 2006.

Williams fell on to the tracks after he grew faint and lost footing on the platform of the 125th Street station at 9:30 am on Wednesday. Orlando jumped onto the tracks after him and began licking his face.

A quick-thinking subway conductor then hit brakes of the train, which passed over both of them.

Transit officials pulled Orlando out from under the train and Williams was rushed to St. Luke’s Hospital while wearing a neck brace.

On Wednesday, Williams said he was deeply moved by the dog’s loyalty.

“He was there. He’s always with me. When I travel on the train or bus, he’s next to me. He’s always watching out for me. He’s always looking for me. When I go on the street, he guides me through traffic, guides me through sidewalks. So he’s always looking out for me. That’s his job,” Williams said.

“I’m not a cry baby or nothing but my eyes are misty,” he added.

Williams became blind from meningitis while he was working at a warehouse in Brooklyn in 1995.