"With much sadness, the president learned of the deaths in combat of two French soldiers last night in Bangui," the Elysee said in a statement.
"They lost their lives to save many others.
"The president expresses his profound respect for the sacrifice of these two soldiers and renews his full confidence in the French forces committed -- alongside African forces -- to restoring security in the Central African Republic, to protecting the people and guaranteeing access to humanitarian aid."
The troops are part of a UN-mandated effort to restore order, with the African Union also due to beef up an existing peacekeeping mission to 6,000 men.
Yesterday, they began disarming fighters in Central Africa after a wave of sectarian violence in the capital left nearly 400 people dead.
French President Francois Hollande, who is attending Nelson Mandela's memorial service in South Africa, will travel onto Bangui later today along with Foreign Minister Laurent Fabius.