The managing editor of feminist website Jezebel was randomly punched in the head by an “agitated” woman walking down a Williamsburg street, she said on Monday.

Editor Erin Gloria Ryan, 31, said she was strolling toward the subway around 10:40 p.m. on North Sixth Street when the woman, who was walking with a friend, suddenly slugged her in the face.

“I saw these two women coming in the opposite direction,” she told The Post. “One had pink hair and she seemed very agitated. Her friend seemed like she was trying to calm her down.”

As they crossed paths, the pink-haired puncher, 20-year-old Mariah Correa, swung her fist, smacking Ryan near her left eye.

Startled by the bizarre blow, Ryan said she continued walking and heard Correa’s friend ask, “Why did you hit that girl?”

“Her friend was trying to calm her down,” Ryan said. “Nobody said anything to me.”

The two women went into a restaurant next to the scene of the punch, and Ryan, still shaken up and in tears, called the cops.

Officers arrested Correa when she came out of the eatery and issued her a Desk Appearance Ticket on charges of misdemeanor assault.

Ryan went to Bellevue Hospital to get her swollen face checked out — and suffered headaches and nausea all weekend from the injury, she said.

But she’s still grateful it wasn’t worse.

“I think I lucked out as far as getting randomly punched goes,” she said.

Ryan called out her alleged attacker on Facebook Monday, posting photos of Correa and her friend with their faces blocked out.

“If I didn’t do something about it, then someone else who may be more vulnerable than me might be a victim of her outbursts,” she said about pressing charges.

Correa and her pal could not be reached for comment.