LOS ANGELES: “Happy Birthday to You,” often considered the most popular song in the world, looks finally set to be free for everyone to sing.

After prolonged legal wrangling, US publisher Warner/Chappell Music agreed to pay $14 million in a settlement that would effectively end its claims to the song’s copyright.

The dispute began in 2013 after makers of a low-budget film on the history of “Happy Birthday to You” balked at the $1,500 the publisher demanded for the song’s use.

The filmmakers filed a class action suit on behalf of people who paid to use the song, which became widely known in the United States a century ago and has since spread globally.

In a settlement submitted to a federal court in Los Angeles on Monday, the publishing house, which is part of the Warner Music conglomerate, agreed to pay $14 million and end its efforts to collect royalties for the song.

“By declaring the song to be in the public domain, the settlement will end more than 80 years of uncertainty regarding the disputed copyright,” the settlement submitted by plaintiffs to the court said.

The deal needs a judge’s approval, which is likely because both sides are in agreement.

While the publisher was not chasing down birthday party revelers to seek payment, it had routinely asked for compensation for films, television shows and recordings seen as making money on the song.

The settlement said that $14-16.5 million represented the estimated amount that Warner/Chappell would have earned through 2030, the earliest date at which its disputed copyright would end.

The filmmakers’ lawyers would pocket one third of the settlement money — $4.62 million — with the rest divided among people who had paid to use “Happy Birthday to You.”

The settlement enables the publisher to avoid a potential trial at which it would risk being ordered to pay far more.

The plaintiffs said they saw the agreement as a victory and decided to settle to avoid further costs.

The filmmakers had partly won the case in September, when a judge ruled that Warner/Chappell did not hold a legitimate copyright to the song.

But he stopped short of declaring the song in the public domain, leaving open the possibility that others may hold the copyright and setting the stage for a trial.

“Happy Birthday to You” is among the most recognizable songs in history.

Famous performances range from Marilyn Monroe’s singing for President John F. Kennedy to a version performed by NASA’s Curiosity rover to celebrate one year on Mars.