Now he’s unmasked — and facing serious jail time.

A Manhattan judge Tuesday convicted an undercover cop of felony assault and other raps for his role in the brutal motorcycle gang beating of a Tribeca dad in front of his wife and infant daughter.

Off-duty ​undercover ​NYPD Detective Wojciech Braszczok, 34 — who for the first time, left the courtroom without trying to protect his identity by obscuring his face — faces a minimum of two years behind bars and as much as seven years in prison when he’s sentenced Aug​. 5.

He is expected to lose his job because of the felony conviction, law enforcement sources said.

Braszczok, who was acquitted of the top count of gang assault, was also found guilty of coercion, riot and criminal mischief.

“The court will not explain its verdict except to say that the verdict was based on the law and the evidence and on nothing but the law and the evidence,” said Justice Maxwell Wiley, who presided over the non-jury trial in Manhattan Supreme Court.

“Detective Braszczok has been vindicated,” said his lawyer John Arlia as ​the disgraced cop stood stone-faced beside him. “He wishes to move on with his life and he thanks everyone who has reserved judgment.”

His co-defendant Robert Sims, 36, was also found not guilty of the top charge of gang assault but was convicted of attempted gang assault and other raps. He faces a minimum of 3.5 years in prison when he’s sentenced August 6.

“I think in the heat of the moment they did some dumb things, but I think a lot of folks in this case did a lot of dumb things,” said Sims’ lawyer Luther Williams.

Braszczok and Sims joined thousands of motorcyclists in a rally Sept. 30, 2013, which ended disastrously.

Alexian Lien, 33, was driving up the West Side Highway with his wife, Rosalyn Ng, 29, and their infant daughter, heading to New Jersey on a shopping trip to celebrate their wedding anniversary.

As they headed north in their blue Range Rover, they noticed dozens of motorcyclists flying through red lights, doing wheelies and speeding, Lien testified during the three-week trial.

When he tried to overtake them, the bikers became enraged, shouting profanities and threatening to kill them.

“I felt complete fear for my life, my wife and my daughter,” he said on the stand.

One biker brake-checked the SUV, forcing it to stop. Then a swarm of rowdy motorcyclists, including one brandishing a knife, surrounded the Range Rover near 125th Street, Lien said.

In a desperate bid to flee, the panic-stricken father stepped on the gas, hitting and seriously injuring biker Edwin Mieses.

The infuriated mob pursued the family to West 178th Street, where the irate bikers descended on the car, shattering its windows and showering shards of glass on the baby girl, Ng testified.

Braszczok, who was within feet of the SUV during the long pursuit, was captured on video kicking the side of the car, then smashing out the rear window with his fist.

He hangs back as the other bikers drag Lien from the SUV and viciously beat him.

Sims is seen on video joining the violent gang as they stomp and kick the 145-pound father as he lay motionless in a pool of blood.

At trial, the defense argued that both men pursued Lien only to detain him after he ran over a man who they believed was likely dead.

But neither Sims nor Braszczok called cops or waited at the scene for them to arrive.

On the stand, Braszczok told the judge he only punched and kicked the SUV when he heard a pop and thought he was under attack from within the car.

“He didn’t metamorphosize from a cop to a criminal,” said Arlia in his closing statement Friday.

Sims’ defense lawyer Omar Almanzar-Paramio argued that the Brooklyn electrician didn’t plan to injure Lien, he simply got caught up in the moment.

“Robert Sims had no intention of seriously harming anyone,” the attorney said in his closing.

But Assistant District Attorney Joshua Steinglass called their arguments implausible.

“The defendant never thought there was a threat from within, he knew exactly where the threat was coming from because he was part of that threat,” the prosecutor said of Braszczok.

“He’s so arrogant, he can’t admit to the facts that are obvious to everyone … He went into that rally looking to cause trouble, it’s no coincidence he found trouble.”