"The long-dreaded moment has arrived: the moment of saying goodbye to the French national team," Giroud wrote on Instagram.
Giroud played 137 times for Les Bleus and scored 57 goals, more than any other player for France.
The 37-year-old Giroud leaves as a big fan favourite and will be remembered in particular for scoring key goals in Milan's 2022 Serie A triumph, the only trophy he won in his three years in Italy.
Olivier Giroud confirmed on Monday that he will leave AC Milan at the end of the season to end his long career in Major League Soccer.
France's record goal scorer Olivier Giroud has reached agreement with Los Angeles FC to join the Major League Soccer club this summer, sources close to the player confirmed on Tuesday.
AC Milan strolled past 10-man Lecce 3-0 on Saturday to consolidate second place in Serie A and take another step towards Champions League qualification.
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.
Giroud will now miss home matches against Fiorentina and Frosinone after the international break.
Giroud guided home a brilliant header from Davide Calabria's cross in the 40th minute to guarantee Milan at least fourth place and complete Italy's line-up in Europe's top club competition next season
Olivier Giroud has been restricted to the role of substitute in the Premier League this season and while Arsenal manager Arsene Wenger knows the striker is far from happy with the situation he is channelling his anger in the right way.
France midfielder Dimitri Payet scores a stunning late winner with a strike from 20 metres as the hosts beat plucky Romania 2-1 in the opening game of Euro 2016 on Friday.
France and Arsenal forward Olivier Giroud has fuelled speculation that Jamie Vardy is on his way to the Gunners by saying he has heard the Leicester City striker is keen to move.
Arsenal sealed their supporting role behind Leicester in the Premier League Christmas billing by beating fellow title hopefuls Manchester City 2-1 at the Emirates Stadium on Monday night.
Goals from Olivier Giroud and Andre-Pierre Gignac sealed a 2-0 win for France over Germany, but there was no joy at the end of the match.
Olivier Giroud came off the bench to help give Arsenal a 2-0 win over Bayern Munich and keep alive their Champions League hopes.
The former Gunner is looking forward to facing Arsenal and says Chelsea must win after a poor start to the new Premier League season.