Jarrell Miller flipped his lid but still kept his head in a fight over the weekend.

The boxer took an uppercut from Kingsley Ibeh that lifted his toupee from his scalp in a heavyweight bout Saturday at Madison Square Garden. Miller later ripped it all the way off and tossed it into the stands.

And they say New Yorkers have seen it all.

WBO heavyweight champion Fabio Wardley got hold of the hairpiece and gave the toupee its own seat for “safekeeping.”

Miller said he mistakenly washed his hair with what seemed like “ammonium bleach” at his mother’s house and called his manager for an emergency replacement patch of hair. The result went viral.

Despite the hair-raising interruption, Miller displayed a champion’s sense of humor.

“You can’t take life too serious,” he said. “You gotta keep rolling with the punches.”