Dramatic video footage has captured the moment a young boy sparked panic after he trapped himself inside a claw machine in an attempt to grab a prize.

The scene occurred at an Ohio community center in Mason, about 25 miles north of Cincinnati, about 1pm on Monday.

Surveillance footage shows the little boy climbing headfirst into the opening prize chute before crawling inside of the arcade-style game.

Soon after, the boy can be seen fully inside the glass box, sitting among the stuffed animal toys.

Staff quickly wheeled the entire machine into a nearby store and closed it off as emergency responders arrived to free the boy.