It will be the “Master of Puppets” four-piece’s first appearance at the legendary festival, held in south west England, following on from The Rolling Stones’ Worthy Farm debut last year.
The band took to Twitter, writing: “Worst kept secret in rock and roll is now confirmed ... see you at @GlastoFest on June 28th!”
Arcade Fire and Kasabian are the two other headline acts, while the Pixies, Jack White and Dolly Parton are some of the other artists playing the main stage.
Elbow, The Black Keys, Robert Plant, Blondie, Massive Attack, M.I.A and Skrillex will also perform at the festival over the weekend of June 27-29.
Organizers had so far kept the main act a secret.
“We’ve got it all booked, it was all confirmed a couple of weeks ago ― it’s purely that we can’t give it to you yet,” said Emily Eavis, whose father Michael Eavis founded the festival in 1970.
Tickets for the 135,000-capacity event sold out in October in record time ― one hour and 27 minutes ― although any unwanted tickets will be resold this month.
Other acts announced include Blondie, Lilly Allen, De La Soul, Goldfrapp, Jake Bugg, Lana Del Ray, Disclosure and Rudimental.