Almost two dozen cats were rescued from an Upper West Side apartment that caught fire on Sunday afternoon, authorities said.

The fire tore through Bunny Hofberg’s kitchen in her apartment on 73rd Street near Amsterdam Avenue at about 3 p.m., fire officials said.

The flames appear to be caused by papers that were left in the oven, Hofberg told The Post.

Hofberg, 67, is the founder of Frankie’s Feline Fund, a non-profit aimed at finding homes for elderly cats and others that are rejected by shelters.

About 20 cats were in the apartment when it caught fire.

After the blaze, neighbors and other good Samaritans helped Hofberg load the felines into cat carriers on the building’s front stoop.

“Bunny alerted people on Facebook and I came down,” said Todd Rutt, 59, a fellow cat rescuer from Harlem. “There’s not a lot of institutional support. We try to help each other.”

Hofberg urged people who could adopt one of the cats to reach out to Frankie’s Feline Fund either on Instagram or via email.

If the cats are not adopted, she said, they will likely be put down.