The boys, who recently topped the US album charts, will have their track What Makes You Beautiful covered by the hit US TV series.
Matthew Morrison, who plays teacher Will Schuester in the FOX show, will perform the song in an upcoming episode, The Sun reports.
Matt told the newspaper he was even watching the group perform on YouTube in a bid to perfect the track and the dance moves!
He said: "I've just heard of them, they're really taking over the States.
"We are covering one of their songs on Glee — What Makes You Beautiful.
"I need to YouTube it to practise."
The show, which will air in the States next month, will be broadcast here on Sky 1 HD.
Singer and actor Matt joked: "They've made it now though, they're on Glee!
"This will probably help their record sales too."
The group will embark on a US tour with fellow X Factor star Olly Murs this summer.