But Bruce J. Kaplan, the prosecutor in Middlesex County, applauded the jury for sending a strong message against bias.

“They felt the pain of Tyler,” he said.

Mr. Ravi, 20, wearing a dark suit over his slight frame, sat expressionless as the jury forewoman read the verdict on the first count, of invasion of privacy. But he seemed surprised when she pronounced him guilty on the next charge, of bias intimidation. His eyes popped and he quickly turned his head from the jury. As he left the courtroom in a swarm of television cameras, his mother clutching his arm, he looked straight ahead and said nothing.

The jury also found him guilty of lying to investigators, trying to influence a witness and tampering with evidence after he tried to cover up Twitter and text messages inviting others to join in the viewing.

Some of the charges carry penalties of 5 to 10 years in prison. Mr. Ravi has surrendered his passport; prosecutors said he could face possible deportation to his native India, but that decision would be left to immigration officials. Judge Glenn Berman set sentencing for May 21.

The case was a rare one in which almost none of the facts were in dispute. Mr. Ravi’s lawyers agreed that he had set up a webcam on his computer, and had then gone into a friend’s room and viewed Mr. Clementi kissing a man he met a few weeks earlier on a Web site for gay men. He sent Twitter and text messages urging others to watch when Mr. Clementi invited the man again two nights later, then deleted messages after Mr. Clementi killed himself.