Charles Aznavour, the legendary crooner and actor who was dubbed the “Frank Sinatra of France,” died Monday at age 94 after a career that began in occupied France during World War II under the wing of Edith Piaf and ended with some 1,400 songs to his name.

Aznavour, who sold more than 100 million records in 80 countries, sang until the very end in concert halls packed with fans enamored of his stirring, melancholic style.

The songwriter, who had just returned from a concert tour in Japan last month, died in his home in Alpilles in southeastern France, according to his producer, Gerard Drouout Productions, and the French Culture Ministry.

“Proudly French, viscerally attached to his Armenian roots, known all over the world, Charles Aznavour accompanied three generations through their joys and pains,” French President Emmanuel Macron wrote on Twitter.

“His masterpieces, his tone, his unique brilliance will live far beyond him,” he added.

The diminutive singer told French TV on Friday that although his Swedish-born wife wanted him to stop touring, he would happily die on stage.

“I always go forwards,” said Aznavour, who tried to write a song every day, according to Agence France-Presse. “There is no backwards step with me. All I can do is live, and I live on stage. I am happy up there, and you can see that.”

He had planned to go back on tour later this month, starting with a concert in Brussels on Oct. 26.

Aznavour was born Shahnour Varinag Aznavourian in Paris on May 22, 1924, to Armenian parents, who were heroes of the Resistance against the Nazi occupation during World War II, regularly risking death to hide Communist partisans in their tiny apartment.

He got his big break after the war when he opened for Piaf at the famed Moulin Rouge.

“I brought her my youth, my madness; she loved my whole jazzy side,” Aznavour told the UK’s Guardian in 2015.

Piaf advised him to get a nose job, only to declare after the operation, “I preferred you before,” according to the newspaper.

The chanteuse took Aznavour and his piano-playing partner Pierre Roche with her to the United States and Canada.

Aznavour was one of the most famous exponents of the French “chanson” form — easy-listening songs imbued with emotion-filled lyrics.

One early number, 1955’s “Après l’Amour” (“After Love”), was banned on French radio for its depiction of a couple basking in post-coital bliss, according to The Guardian.

He had his first No. 1 hit in 1956 with “Sur Ma Vie” (“In My Life”), followed by “Je M’voyais Deja” (“It Will Be My Day”).

Aznavour’s biggest hit in English was “She,” a 1974 love ballad in which he confronts the equal joy and discord in a relationship while declaring that “the meaning of my life is she.”

“She,” which topped British charts for four weeks, was covered by Elvis Costello for the film “Notting Hill.”

He also recorded duets with such stars as Sinatra, Elton John, Céline Dion and Sting, as well as the classical tenors Luciano Pavarotti and Placido Domingo.

Another partner was Liza Minnelli, with whom he also had a brief love affair, telling The Telegraph in 2014: “She learned from me. She says that herself — or else I would have shut my mouth!”

Aznavour also made his mark on the big screen — starring in François Truffaut’s new-wave classic “Shoot the Piano Player” in 1960, Claude Chabrol’s “The Hatter’s Ghost,” and the 1979 Oscar-winning film adaptation of Günter Grass’s “The Tin Drum.”

The singer — who was married three times and had six children — was named entertainer of the century in an online poll by CNN and Time magazine in 1999. In 2001, he was awarded France’s prestigious National Order of Merit.

He described himself as a songwriter who sometimes performed his own songs.

“What were my faults? My voice, my size, my gestures, my lack of culture and education, my honesty, or my lack of personality,” the 5-foot-3 performer wrote in his autobiography.

“My voice? I cannot change it. The teachers I consulted all agreed I shouldn’t sing, but nevertheless I continued to sing until my throat was sore.”

With Post wires