"I'm thankful to PSG for giving me the opportunity to continue but I feel now is the right time to finish my career, playing at the highest level," the 38-year-old Paris St Germain midfielder said.
"I want to thank all my team mates, the great managers that I had the pleasure of learning from. I also want to thank the fans who have all supported me and given me the strength to succeed."
Beckham earned 115 caps for England, a record for an outfield player, and won the Champions League, six Premier League titles and two FA Cups with Manchester United.
He also won league titles with Real Madrid in Spain, LA Galaxy in the United States and PSG in France.
Photograph: Getty Images
Big-spending PSG prove money can buy success
Confederations Cup: Brazil's Kaka, Ronaldinho get axe
Italian Open: Janowicz stuns Tsonga, Murray injured
Rio Ferdinand quits international soccer
Mobile phone sales: Samsung TOPS, Nokia FALLS