A settlement has been reached in a United States lawsuit with Warner/Chappell Music over the copyright to Happy Birthday To You that will put one of the world's most recognisable songs in the public domain, according to court papers released on Wednesday and a source close to the case.
Terms of the deal were not disclosed in court papers announcing the settlement, but it puts an end to the class-action lawsuit filed in 2013 by a group of artists and film-makers who had sought a return of the millions of dollars in fees the company had collected over the years for use of the song.
Once the settlement is finalised, the song will be in the public domain, the source said.
That means it will be free for all to use without fear of a lawsuit.
Chief United States District Judge George King in Los Angeles said a trial scheduled for next week would not go ahead after the parties had agreed to settle.
Last September, he had ruled that Warner/Chappell, the music publishing arm of privately owned Warner Music Group, did not own a copyright to the Happy Birthday lyrics.
Warner/Chappell said in a statement: "While we respectfully disagreed with the court's decision, we are pleased to have now resolved this matter."
An attorney for the artists, Mr Mark Rifkin, said in an e-mail they were pleased with the settlement, but declined to provide further details.
The case garnered attention from around the world not only because the tune is so commonly performed, but also because many people were not aware it was still under copyright, let alone purportedly owned by a major corporation.
The song has a complicated history reaching back to the 1893 publication of Good Morning To All, a children's song written by a Kentucky woman named Mildred Hill and her sister, Patty.
That melody eventually came to be sung with the familiar Happy Birthday lyrics.
Warner contended its copyright to the lyrics came through the Hill sisters' publisher that it had acquired. But Justice King said that publisher never got the rights to the lyrics and so neither did Warner.
Independent film-maker Jennifer Nelson had filed the 2013 lawsuit after paying US$1,500 to use the song in her documentary, which was tentatively titled Happy Birthday.
On Wednesday, she said she was "delighted" with the outcome, Fox News reported.
"We revealed a dark side to the happy tune. It's a song that everyone's familiar with and grew up with, but nobody knew that this song was copyrighted and you had to pay a licence for that."
People who sing Happy Birthday in their homes or at private gatherings have typically never been at risk of a lawsuit.
But when the song has been used for commercial purposes, such as in films, Warner has enforced its rights and took in an estimated US$2 million (S$2.8 million) in royalties for such uses each year.