At 39, the pro-EU former investment banker will become France's youngest-ever leader but faces a huge challenge to enact his programme while trying to unite a fractured and demoralised country.
“I will fight with all my strength against the divisions that are undermining us,” Macron said in a solemn address at his campaign headquarters.
As the extent of his resounding victory sank in, Macron told a sea jubilant supporters waving French flags outside the Louvre Museum in Paris: “Tonight, France won.”
“We will not give into fear, we will not give into division,” he added.
He also reached out to the millions who voted for his vanquished far-right rival Marine Le Pen, pledging to bring them back from the “extremes”.
“They voted out of anger, distress and sometimes conviction. I respect them,” he told the flag-waving crowd.
“I will do everything I can over the next five years to ensure that people no longer have any reason to vote for extremes.”
Macron also made a gesture to left-wing and right-wing voters who backed him to block a Le Pen presidency, despite not supporting his programme.
“I also want to address the people who voted for me without sharing our ideas. I know it is not a blank cheque,” said Macron.
And to the French people, he said: “I will protect you against threats. I will bring you together because I want us to be unified.”
Latest partial results showed Macron winning 65.17 percent of the votes in the first ever election he has contested, far ahead of the nationalist Le Pen at 34.83 percent.
But in a sign of widespread voter disillusionment, one in three voters abstained or cast a blank ballot.
Western leaders largely hailed the result after the shock of Britain's vote to leave the EU and the election of Donald Trump in the United States.
Plea for unity
Macron walked on to the stage to the strains of “Ode to Joy”, the anthem of the beleaguered European Union that he has promised to help overcome the wounds of Britain's impending exit.
His 64-year-old wife Brigitte, who he wooed when she taught him drama at school, joined him on stage with her children and grandchildren.
“I'm so happy, it's been an 8-month battle,” 37-year-old Frederic, who works in fashion, told The Local over cheers from the crowd.
“This is something new for Paris, for France, for Europe and for the world.”
Casimir, a 27-year-old entrepreneur said: “Now we have a new president with a whole new movement. I'm very excited now to see if he gets supported by everyone in France,
“We know we have a divided country but I hope he is given the opportunity to do what he wants to do to lead France.”
Unknown three years ago, Macron is poised to become one of Europe's most powerful leaders, bringing with him a hugely ambitious agenda of political and economic reform for France and the EU.
The result will resonate worldwide and particularly in Brussels and Berlin where leaders will breathe a sigh of relief at the defeat of Le Pen's anti-EU, anti-globalisation programme.
German Chancellor Angela Merkel's spokesman said it was a “victory for a strong and united Europe” and the two had a “very warm” telephone call after his victory was announced, Macron's team said.
EU Commission President Jean-Claude Juncker said French voters had chosen a “European future.”
Trump, whose beliefs are seen as radically different to Macron's, tweeted congratulations on a “big win” and said he looked forward to working with him.
The euro rallied to a six-month high against the dollar in Asian trade and other financial markets are expected to react positively.
“It is a big victory for a part of the population — and there are many of them — who identify closely with Europe and a certain vision of globalisation,” veteran political analyst Philippe Braud told AFP.
The French election had been widely watched as a test of how high a tide of right-wing nationalism would rise after Brexit and Trump.
Le Pen, 48, had portrayed the election as a contest between Macron and “globalists” — those in favour of open trade, immigration and shared sovereignty — and her “patriotic” vision of strong borders and national identities.
In a short speech to supporters, Le Pen claimed a “historic, massive result” and said she had called Macron to wish him “success” in tackling the country's challenges.
She said her National Front (FN) needed to undergo a “profound transformation” ahead of parliamentary elections in June. One of her aides said the party will change its name.
Major obstacles ahead
Macron must tackle formidable challenges as he attempts to enact his domestic agenda of cutting state spending, easing labour laws, boosting education in deprived areas and extending new protections to the self-employed.
The philosophy and literature lover is inexperienced, has no political party and must fashion a working parliamentary majority after legislative elections next month.
His En Marche movement — “neither of the left, nor right” — has vowed to field candidates in all 577 constituencies, with half of them women and half of them newcomers to politics.
“In order for us to act, we will need a majority in the National Assembly,” En Marche secretary general Richard Ferrand told TF1 television, adding that only “half of the journey” had been completed.
Many analysts are sceptical about Macron's ability to win a majority with En Marche candidates alone, meaning he might have to form a coalition of lawmakers committed to his agenda.
Furthermore, his economic agenda, particularly plans to weaken labour regulations to fight stubbornly high unemployment, are likely to face fierce resistance from leftist opponents.
He also inherits a country still in a state of emergency following a string of Islamist-inspired attacks since 2015 that have killed more than 230 people.
His first ceremonial duty comes on Monday when he appears alongside outgoing Socialist President Francois Hollande in Paris to commemorate the Nazi capitulation on May 8, 1945.
Macron won after one of the most unpredictable elections in modern history marked by scandal, repeated surprises and a last-minute hacking attack on the his campaign.
Hundreds of thousands of emails and documents stolen from his campaign were dumped online on Friday, leading the candidate to call it an attempt at “democratic destabilisation.”
The election saw voters eject establishment figures, including one-time conservative favourite Francois Fillon.
Unpopular Hollande was the first to bow to the rebellious mood in December as he became the first sitting president not to seek re-election in the French fifth republic, founded in 1958.