In a statement initially available only in German, the federal government said it was “appalled and shocked” by what was described by French President François Hollande as a "terrorist attack".
On Wednesday morning, gunmen armed with machine guns shot cartoonists and other editorial staff at the offices of the satirical magazine, as well as two policemen, before fleeing.
Swiss President Simonetta Sommaruga said the assassinations were an attack on freedom of speech, a basic human right.
The attack shows that even in Western democracies “these fundamental rights and freedoms” are not self-evident and “must be defended at all cost”.
Sommaruga has sent a letter of condolences to French President François, while Foreign Affairs Minister Didier Burkhalter sent a similar letter to his French counterpart Laurent Fabius.