After claiming for years that he’s powerless to change the entrance criteria at some of the city’s best high schools, Mayor Bill de Blasio on Friday suddenly reversed course and said he’ll “revisit” the issue.

Hizzoner has repeatedly stated that he’d like to expand the criteria beyond a single exam at the eight specialized high schools that require it.

But he has insisted the state — which in 1971 passed a law requiring the special test for Stuyvesant, Bronx Science and Brooklyn Tech — prevents him from doing so.

But when pressed on arguments from educators that he has more leeway on admissions to the five specialized high schools that were created after 1971, de Blasio said he’d talk to city lawyers about their interpretation of it.

“So far in the view of our law department, it sadly is not as straightforward as that. I’ll certainly go back and look again and talk to our lawyers again because I think this is a matter of injustice that has to be addressed,” he said on WNYC radio.

“We do not have the total independence that I think would be ideal for a mayoral control system. But that being said, I’ll revisit it because I want to find any form of action that I possibly can find.”

Last week, it was revealed that just 10 black and 27 Hispanic students would be included in September’s freshman class of 902 at Stuyvesant HS.

Among the 326 freshmen accepted at Staten Island Tech for the coming school year, just seven were black or Hispanic.

When presented with those numbers last week, de Blasio said any changes to the entrance criteria “can only be done through the legislature in Albany.”

The city’s solution to the lack of diversity at the top-tier schools has been to give more test-prep opportunities to low-income middle schoolers.

But that has had little impact on the admissions numbers.