In the run-up to Christmas, Macy’s is pulling an all-nighter at all its stores in the region.

The flagship department store in Manhattan’s Herald Square and seven area branches will be open 24 hours a day, seven days a week in the four-day stretch before Christmas.

The shop-til-you-drop-a-thon begins at 7 a.m. Friday and lasts until 6 p.m. Christmas Eve.

Macy’s says the idea was tested last year at a store in Queens and was so successful it was expanded this year to its stores in Manhattan, Yonkers, New Jersey and Long Island.

Macy’s stores usually close between 9:30 p.m. and midnight, depending on the branch.