He has played in both of their games in France this summer and could bid farewell after Wednesday's clash with Belgium.
"The last game (at Euro 2016) will be my last for Sweden , so I hope it will not be tomorrow," he said.
"I am very proud of what I have achieved and will always bring the Swedish flag with me."
Sweden need a win against Belgium in their final Group E game to stand any chance of qualification.
They drew 1-1 with Republic of Ireland in their opener before defeat to Italy.
Ibrahimovic made his debut for Sweden against the Faroe Islands in 2001 before being named in their squad for the 2002 World Cup.
"To finish with a disappointment - never."
He also played at the World Cup in Germany four years later and has appeared in three separate European Championships.
He had been included in Sweden's Olympics football squad but has confirmed he will not participate in Rio.
Ibrahimovic's club future remains in doubt with Manchester United leading the race for his signature.
The 34-year-old is out of contract with PSG at the end of the month and has been offered a one-year deal at Old Trafford.
His decision to pull out of the Olympics boosts United, with the competition running at the start of the Premier League season.
