Became known for playing the titular role in Charlie and the Chocolate Factory and Peter in Finding Neverland. He has also landed lead TV roles such as Norman Bates in A&E's Bates Motel and Dr. Shaun Murphy in The Good Doctor. His other films include The Spiderwick Chronicles and August Rush.
He was in TV commercials by the age of seven. He made his film debut in the 1999 film Women Talking Dirty.
He was accepted into Cambridge and Emmanuel College.