German Lennard Kamna and Bora-Hansgrohe team mate and compatriot Maximilian Schachmann were second and third respectively.
Lopez prevailed at the end of the 170-km trek from Grenoble, 15 seconds ahead of Roglic, who extended his advantage over fellow Slovenian Tadej Pogacar to 57 seconds, four days before the final parade in Paris.
The Slovenian played it safe on the last climb of the day but it was enough for him to move to the top of the standings in a ninth stage won by Tour debutant Pogacar.
Vingegaard laid the foundations of his victory in the 10th stage
Copenhagen is known as the world's most bike-friendly city but the stage was anything but as rain led to slippery conditions -- especially on the cobblestones -- where a couple of riders crashed.
Sagan is hoping to claim a record-extending eighth green jersey but he has been far from his best this season.
Caleb Ewan claimed his second victory in this year's Tour de France when he prevailed in a tightly contested sprint to win the 11th stage,
Kragh Andersen claimed his second audacious solo stage win of the Tour de France on Friday with a perfectly timed attack late in the 19th stage
Frenchman Alaphilippe retains lead.
Slovenian Tadej Pogacar claimed a second successive Tour de France title after Sunday's 21st and final stage, which was won by Belgian Wout van Aert on the Champs Elysees.
Michal Kwiatkowski, the unsung hero of Team Sky/Ineos during their dominant years, claimed his maiden Tour de France victory
Roglic leads Pogacar by 40 seconds and Colombian Rigoberto Uran by 1:34 as the race is turning into an all-Slovenian affair following Bernal's disappearance.
Norway's Kristoff outsprinted Danish world champion Mads Pedersen after 156 km around Nice.
Tadej Pogacar became the first Slovenian to win the Tour de France after he retained the yellow jersey in the 21st stage on Sunday, a day after he pulled off a major coup to take the overall lead.
All team members, riders and staff had until 1100 GMT on Monday, the Tour's first rest day, to take a test in the mobile laboratory provided by organisers.
Stage eight winner Nans Peters had long crossed the line when fellow Frenchman Thibaut Pinot's ordeal ended after the Groupama-FDJ rider, highly fancied to become the first local winner of the race in 35 years, had been dropped in the second ascent of the 141-km trek through the Pyrenees.
Geraint Thomas was in prime position to win his maiden Tour de France after he retained the overall leader's yellow jersey in a lively 19th stage won by Slovenian Primoz Roglic as defending champion Chris Froome slipped down to fourth on Friday.
Froome had been the favourite to retain his title but he paid the price for the efforts he made to win the Giro d'Italia in May as he just failed to become the first man in 20 years to achieve the Giro-Tour double.