Mayor de Blasio apologized on behalf of New Yorkers for the Trump presidency Saturday as he continued his long-shot White House bid in New Hampshire.

“Let me issue a formal apology on behalf of the people of New York — I’m sorry you got to know Donald Trump,” Hizzoner said in a speech at the state’s Democratic Party Convention. “New York did not send its best to Washington in this case. But this New Yorker is willing to get rid of him for you.”

The half-empty hall — which had been brimming during addresses by front-runners like former Vice President Joe Biden and senators Elizabeth Warren and Bernie Sanders — responded with polite applause.

De Blasio is New York’s least-liked pol, according to an August Siena College poll that found President Trump has a negative rating of 27 percent — four points better than de Blasio’s negative 31.

The group of 19 presidential wannabes on Saturday largely avoided attacking each other, instead reserving their fire for President Trump — even turning their verbal stumbles into slams.

“If Donald Hump — if Donald Trump is re-elected. . .” Biden said at one point.

“Freudian slip,” he ad-libbed, and the crowd cheered.