He didn’t give an “Alibi” — he just hates gays.

The man accused of setting fire to two gay pride flags outside Harlem’s Alibi Lounge — and then returning a month later to burn a third, replacement flag — admitted to cops that he’s not just a firebug but a real bigot, court papers allege.

Arrested Tuesday in the caught-on-video predawn fires, Tyresse Singleton, 20, now must face felony charges of arson and criminal mischief as a hate crime.

Singleton ‘fessed up to investigators that he twice targeted the Seventh Avenue gay bar — first on May 31, when he lit up two LGBT flags hanging on a pole outside, and then again July 8, when he set fire to another flag hanging in the same spot.

Once in custody, Singleton told an NYPD Bias Incident Investigations detective that it was him.

“He stated in substance that he was responsible for burning the flags, and that his actions were motivated by bias and animus against the LGBT community,” the criminal complaint against Singleton says.

NYPD Chief Dermot Shea, meanwhile, thanked hate crime investigators and civilian tipsters — including some who reached out to @NYPDTips — for clinching the collar.

Manhattan Criminal Court Judge Laurie Peterson ordered Singleton set free with no bail late Wednesday, despite prosecutors’ request that he be held on a $25,000 bond.

He’s due back in court July 31, when he may learn if a grand jury has indicted him.