Image caption Tsarnaev appeared in court with his face swollen and his arm in a cast, perhaps from injuries suffered during his capture by police in April

Boston Marathon bomb suspect Dzhokhar Tsarnaev has pleaded not guilty to all charges in his first court appearance, as blast victims looked on.

Mr Tsarnaev, 19, faces 30 counts of using a weapon of mass destruction in the two 15 April blasts that killed three, including an eight-year-old boy.

He appeared in shackles and an orange prison suit, and replied "not guilty" as the charges were read to the court.

Prosecutors could press for the death penalty for 17 counts.

The suspect has also been charged over the death of a fourth person, a university police officer, who was allegedly shot dead by Mr Tsarnaev and his brother Tamerlan in the days after the attack.

He is also charged in a carjacking incident and with downloading internet material from Islamist radicals some time before the blasts.

Relatives in court

People appeared outside the federal courthouse in Boston as early on Wednesday to claim a seat inside the court and two overflow rooms for a hearing that lasted just seven minutes.

Mr Tsarnaev arrived at court with his face swollen and his arm in a cast.

Two of the suspect's sisters watched the proceedings. One sobbed during the hearing while the other held a baby.

Image caption People arrived at the courthouse early to secure a seat inside

Before he was led out of the courtroom, the suspect seemed to smile and to gesture a kiss to his family members in the room.

Among the crowd was a young friend of Mr Tsarnaev, Hank Alvarez, 19. He said: "Just knowing him, it's hard for me to face the fact that he did it."

Mr Tsarnaev, a US citizen, was not in court last month during an indictment hearing, when a federal grand jury agreed that he should be tried on 30 charges.

His first court appearance took place at his hospital bedside, where he was recovering from injuries suffered in a shootout with police during the manhunt. He was later transferred to a prison hospital near Boston.

Mr Tsarnaev's older brother Tamerlan, 26, was killed days after the attack during the massive police operation. He is also suspected of carrying out the attacks.

Authorities say the accused ran over his older brother as he fled the shootout in a hijacked car.

Dzhokhar Tsarnaev was found the next day, 19 April, hiding in a boat in a residential garden in Watertown, Massachusetts.

According to the indictment, he wrote about his motivations for the bombing on the inside walls and beams of the boat.

Authorities say he scrawled: "The US Government is killing our innocent civilians" and "I can't stand to see such evil go unpunished."

The brothers belong to a family of ethnic Chechen Muslims from Russia and had been living in the US for about a decade.

More than 260 people were injured when two pressure cooker bombs packed with nails, ball bearings and other shrapnel were detonated at the finish line of the Boston Marathon.

It was the worst mass-casualty attack on US soil since 11 September 2001.