In time added on, Nicolai Jorgensen was booked for bringing down Griezmann, and early in the second half France made the first change, bringing on Benjamin Mendy for Hernandez.
Loud jeers from a sold-out crowd of 78,011 greeted the final whistle although it was a result that suited both sides as Denmark, now unbeaten in 18 matches, reached the latter stages of the World Cup for the first time since 2002.
Denmark could have only been denied qualification had they lost to France and had Australia beaten Peru in the match being simultaneously played in Sochi.
Apart from that, there was lots of sideways passing from France and some nice, meaty challenges from Denmark.
Few teams will fear either side on the back of this performance but surely there will be better days ahead for both nations when the reality of sudden-death forces their hands. But it felt like the classic damp squib, end-of-group-game. But I think after we won the first one we just really wanted to go into this game and win, to make it look even better than it does now. "The objective was achieved", French coach Didier Deschamps said.
Le superbe but de Messi qui lance l'Argentine
Moses fait trembler les Argentins , Rojo ce héros! L'Albiceleste allait payer cash son manque de réalisme dès la reprise. Les Croates joueront contre le Danemark en huitièmes de finale.
In the last 16, France play Saturday in Kazan against the second-placed team from Group D, and Denmark take on the Group D victor the next day in Nizhny Novgorod.
Ultimately, Tuesday's game was a chance to give the rest of his deep squad - some of whom had not played in several weeks - the opportunity to play themselves into the side.
But with the Peruvians leading 2-0 before the hour in that game, the Moscow clash settled down to little more than a canter.
Ousmane Dembele, Thomas Lemar and Steven Nzonzi are all included with Kylian Mbappe starting on the bench. If the idea was to sharpen up his partnership with Olivier Giroud, then nope, we're not there yet.
Denmark's Age Hareide lined his team up in a 4-3-3 formation only for closer inspection to reveal that Chelsea defender Andreas Christensen was in central midfield and those three up front could soon become a lonely Andreas Cornelius if the wide players joined Christensen in a five-man fence. It could be an option to revisit later in the tournament, depending on the opposition.