The Euro 2024 favourites were left reeling after conceding just eight seconds into their game against Germany in Lyon last weekend, which they went on to lose 2-0.
This time they fell behind within six minutes to a Marcelino Núñez strike, but came roaring back with goals from Youssouf Fofana, Randal Kolo Muani and Giroud, before Dario Osorio grabbed a second for Chile late on.
The result will ease some of the doubts which had surrounded the French team following their flat performance against Germany, as they prepare for the European Championship in June and July.
However, this was far from a first-choice French side, with captain Kylian Mbappé and midfielder Aurélien Tchouaméni the only players to be retained in the starting line-up as coach Didier Deschamps made nine changes.