The 17-year-olds, who cannot be identified due to being under the age of 18, appeared at Swindon Magistrates Court on Monday after pleading guilty to various charges.
All three admitted to being involved in an affray in Trowbridge on June 21, 2025, while two of them also admitted to shoplifting low-value items from the town's Bargain Buys store between May 19 and May 23.
Keith Ballinger, prosecuting, explained the circumstances of the Trowbridge affray:: "Two people were in a group of friends, they had been out at a pub and as they leave, they pass a group of young males who start following them to a multi-storey car park.
"They are approached and attacked. At least two of [the other group] throw punches."
Both victims were hit in the face, one had his T-shirt ripped, and the other's glasses were knocked off his face and damaged.
One of the Bargain Buys shoplifters also caused criminal damage by throwing food and tipping over tables in the Odeon cinema on June 9, and the other thief assaulted a man on March 20, when he and a group of others approached someone, shouted allegations about the victim speaking to 13-year-olds, and beat him up.
Before passing sentence, District Judge Joanna Dickens said: "I was pretty horrified by the facts of the case.
"If you can go about randomly attacking - at night - a group of capable men, goodness knows what would happen if you set upon people who were much more vulnerable.
"I was shocked and horrified by the nature of the attack and it would have been absolutely terrifying for the [victims] and they dealt with it in the most extraordinarily composed way.
"It was a nasty incident - you are lucky not to have been charged with robbery. "Carry on behaving in this violent manner towards people and you are going to find yourself in prison as adults.
"You are all intelligent, motivated and talented young people, and there are good things to say about your futures. I sincerely hope you do some positive things to become responsible adults."
Two defendants will be subject to nine-month youth rehabilitation orders which involve taking a course on victim empathy, as well as pay £26 each to fund victim services, and the third will receive a referral order and pay for the £335 compensation for the victims' damaged T-shirt and glasses.