Justin Bieber has recorded a cameo role on an upcoming episode of The Simpsons.

The 18-year-old superstar will make his appearance during an episode called The Fabulous Baker Boy, as a talent-show hopeful who fails to make the final cut.

Al Jean, the show's executive producer, told Entertainment Weekly: "He tries to get into a talent show that Bart is playing piano in and they won't admit him. Draw your own conclusions.

"It's a cameo. But all of his fans should watch every minute of the show, before and after he's on."

The episode is expected to air next year, as part of the iconic animated sitcom's 24th season.

The Boyfriend singer took to his Twitter account to share the news with his fans, tweeting: "Just did a voice over for the SIMPSONS!!! #swaggy (sic)"

The tweet has since been deleted.

The episode comes shortly after the teen heartthrob voiced a desire to do more acting work.

He appeared as a villain in a story arc of CSI, made a brief cameo as an alien in Men In Black 3, and will play the lead in Mark Wahlberg's upcoming movie about basketball.