Ex-NBC Nightly News anchor Tom Brokaw said he and his wife were “very, very fortunate” to escape a Wednesday morning blaze in their Upper East Side building — and had nothing but praise for the FDNY for snuffing it out.

“We’re safe, and we were very, very impressed with the work of the NY Fire Department,” he told The Post. “It was close to the south floor of our building and it was fully involved by the time they got here.”

“We were awakened by their presence, frankly,” said Brokaw, 79. “Our dogs began to bark and we realized, we looked down in our elevator area and the fire department was coming up.”

More than 100 firefighters were dispatched to the 12:30 a.m. fire on the 14th floor of the landmark building on E. 79th Street — two floors above Brokaw’s apartment.

Firefighters had the fire under control by 2:30 a.m.

Six people, including five firefighters, received non-life-threatening injuries.

The owners of the unit where the blaze erupted were away and could not be reached Wednesday.

Brokaw called them a “wonderful family.”

“It could’ve been a lot worse,” he said. “It was great property loss for the family.”

He called the building, a landmark built in 1926, “kind of a jewel on the Upper East Side.”

He said firefighters used his back entrance and kitchen area as “a staging area” while fighting the fire.

“No damage to our unit. We got a little smoke,” he added. “Really, it’s a cautionary tale about living in the danger of fire. But thank God for the New York Fire Department.”

A spokesperson for 66 E. 79th Street Corporation, the building’s managers, would only say that “there’s a significant amount of damage” as a result of the fire.