Speaking after emergency government talks to review security, Interior Minister Jorge Fernández Díaz said the country's anti-terrorist security level was being upgraded a notch and that the government was exchanging information with France.
The move will see tighter security around public infrastructure and greater police presence on Spain's streets.
But the measures were merely precautionary, Díaz added, as there was no evidence to suggest "an additional threat of an attack in Spain as a consequence of what happened" in Paris.
Rivalry between leaders of Al-Qaeda and the Islamic State for leadership of worldwide jihadist terror could however lead to an escalation in the number of attacks, he added.
French police on Thursday morning were searching for two brothers, said to be "armed and dangerous" in relation to the attack on Charlie Hebdo.
Seven men and women were held overnight as part of the search.
On Wednesday, Spanish Prime Minister Mariano Rajoy in a tweet strongly condemned the attack and said his thoughts were with the victims.
Spain was with France, said the Spanish leader in the message.
Mi firme condena al atentado terrorista en París y mis condolencias y solidaridad al pueblo francés por las víctimas. España con Francia MR
— Mariano Rajoy Brey (@marianorajoy) January 7, 2015
The leader of Spain's opposition Socialist party also expressed his outrage and his sympathy for the victims.
Consternado por el ataque a #CharlieHebdo. Todo nuestro apoyo al pueblo francés. Siempre con las victimas y la libertad de expresión.
— Pedro Sánchez (@sanchezcastejon) January 7, 2015