Mayor de Blasio has racked up some pretty heavy personal legal expenses — and is leaving taxpayers to pick up the tab.

A legal notice Friday says de Blasio owes $2,627,500 for two years’ work by the white-shoe law firm that represented him during the US attorney’s criminal investigation of him and his associates.

And an aide says “more contracts” for legal work are pending, meaning the price will be even higher.

True, the probe ended with no criminal charges. But prosecutors issued a blistering statement stating flatly that the mayor intervened with city agencies on behalf of campaign donors.

And what makes the high cost of his legal fees even more galling is that the mayor repeatedly vowed that “no taxpayer funds will be used” to pay his lawyers.

Of course, that was before the city Conflicts of Interest Board ruled that de Blasio couldn’t resort to his favorite trick: hitting up deep-pocketed fat-cats with business before the city.

So out went de Blasio’s plans for a legal defense fund, using cash from big donors. Instead, he’d have to rely on small contributions — the kind he always claims to champion.

So suddenly he discovered taxpayers had a “legal and moral responsibility” to pay his lawyers. Talk about chutzpah: His actions draw a probe and a harsh rebuke from prosecutors, and he claims New Yorkers have a “moral” duty to pay his legal bills.

True, he may have no other realistic choice now. But let’s be clear: This starts and ends with him. New Yorkers might have to foot the bill, but not for any fault of theirs.