Pittsburgh’s transformation into a high-tech hub has catapulted the former rust-belt city to the No. 1 spot as best urban area to live in the Northeast by Money magazine.

The magazine includes the steel city among five “urban gems” across the country that offer an “abundance of amenities at livable prices.”

The cities were selected from more than 60 large cities with populations of more than 300,000.

The top cities were chosen based on their robust job market, affordable housing, and ­factors such as accessibility to health care, culture, and open space. The magazine editors also gave extra points to places with low crime and strong public schools.

Advertise with us

“Every rust-belt city dreams of reinventing itself for the 21st century, but Pittsburgh has ­suc­ceeded,” the magazine says. “In large part that’s thanks to two tech-rich schools: the University of Pittsburgh and Carnegie Mellon” from which companies like Google and Apple have pulled talent.

And unlike some tech hubs like Silicon Valley, the magazine says, Pittsburgh is affordable. “Home prices are just 2.7 times the median income.”

Also ranked No. 1 in the other regions of the country are: Tampa, Omaha, Denver and Mesa.

The magazine came out with its list on Sunday.