Arctic Monkeys will play Friday, the Stones on Saturday and Mumford and Sons on Sunday.
About 135,000 people are expected to attend this year's sold-out event, which will also feature performances by Kenny Rogers, Public Enemy, Primal Scream, Nick Cave and the Bad Seeds, Elvis Costello, Professor Green and Dizzee Rascal, the BBC said.
Rita Ora, Jake Bugg, Rufus Wainwright, Billy Bragg, Portishead, Smashing Pumpkins, The XX, The Lumineers, Alabama Shakes and Foals are also part of the lineup.
"We've tried or talked about getting the Rolling Stones to play Glastonbury throughout my entire life -- I can't remember a year it hasn't been wished upon," Glastonbury organizer Emily Eavis said. "It is such an honor to have them. I get the sense they are excited too; there's been a real buzz about it from both camps."
The festival was not held last year because of the Summer Olympics.