Without a thought for his own safety, Mamoudou Gassama took just seconds to reach the child in a spectacular rescue captured on film and viewed millions of times on social networks.
The incident took place at around 8:00 pm (1800 GMT) on Saturday in northern Paris.
Film of the rescue shows Gassama, 22, pulling himself up from balcony to balcony with his bare hands as a man on the fourth floor tries to hold on to the child by leaning across from a neighbouring balcony.
On reaching the fourth floor Gassama puts one leg over the balcony before reaching out with his right arm and grabbing the child.
Firefighters arrived at the scene to find the child had already been rescued.
"Luckily, there was someone who was physically fit and who had the courage to go and get the child," a fire service spokesman told AFP.
Paris mayor Anne Hidalgo praised the young migrant on Twitter for his "act of bravery" as well as phoning him personally to "thank him warmly".
"He explained to me that he had arrived from Mali a few months ago dreaming of building his life here.
Cet homme aussi téméraire que courageux a sauvé la vie d'un enfant au péril de la sienne. Je souhaiterais, comme nombre de Parisiens, savoir qui est le Spiderman du 18me pour le féliciter.— Anne Hidalgo (@Anne_Hidalgo) May 27, 2018
The young Malian will next be honoured for his brave rescue by French President Emmanuel Macron who has invited him to the Elysee Palace on Monday, his office told AFP.
Tracked down by reporters 24 hours after the heroic rescue, Gassama said he had acted without thinking.
"I saw all these people shouting, and cars sounding their horns. I climbed up like that and, thank God, I saved the child," he said.
"I felt afraid when I saved the child... (when) we went into the living room, I started to shake, I could hardly stand up, I had to sit down," he added.
According to initial inquiries by the authorities, the child's parents were not at home at the time.
The father was later held for questioning by police for having left his child unattended and was due in court later, a judicial source said. The child's mother was not in Paris at the time.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.) Click for more trending news
Election Results for Lok Sabha Election 2019 will be out on May 23. Get the latest election news and live updates on ndtv.com/elections. Catch all the action on NDTV Live. Like us on Facebook or follow us on Twitter and Instagram for news updates from each of the 543 parliamentary seats for the election 2019