Sweden finished bottom on three points, behind Croatia on goal difference.
Giroud, who has only made three Premier League appearances for Chelsea this season, has now netted 44 international goals to move seven shy of Thierry Henry’s all-time France scoring record.
Les Bleus hit back in the 16th minute, with Giroud finding the back of the net with a low shot on the turn from Marcus Thuram‘s cutback.
Pavard gave France the lead nine minutes before the break with a low, driven volley after Thuram had drawn the defence towards him with a dazzling run into the box.
Giroud, who has been warned by Deschamps that he needs to sort out his club situation in order to stay in the squad, put the result beyond doubt with a header from second-half substitute Kylian Mbappe in the 59th minute.
Quaison pulled one back two minutes from full-time but it was too little, too late for Sweden, who conceded another from late substitute Coman at the end of a counter-attack five minutes into added time.