‘Baby Yoda’ costume made for an 8-year-old

A family’s homemade costume for a baby that they say is too small to wear has gone viral.

A photo of the costume, which has been shared thousands of times on social media, has been liked by over 200,000 people, many of them Australian.

The family from Bentleigh, Victoria, created the costume by wrapping a baby’s hand in a white towel.

“We did this to keep him from crying,” said the mother, who wished to remain anonymous.

“I’m not trying to hide that I had a really good time making it,” she added.

“It’s not a big deal for him, it’s just a lot of fun.”

The family said the costume was inspired by the famous characters from Star Wars and the popular series of Doctor Who.

The baby, who the family believe was born in the United States, is said to have cried for a number of minutes before the family decided to change his outfit.

“He’s so sweet and we didn’t want him to cry,” the mother said.

“When we were making it, he started crying again, so we decided to put it on.”

The costume has been seen more than 2.5 million times on the internet.

“The parents really enjoyed making it and it’s a great way to get some family bonding together,” the costume’s creator, who asked to remain unnamed, told ABC News.

“Sometimes a little bit of a gag is nice to have, especially if you’re in a situation like this.”