"We express our deep condolences to the families and friends of those killed in a string of terrorist attacks in Baghdad on January 11 and an explosion in Istanbul on January 12. We wish a speedy recovery to those injured," the ministry said in a statement.
Describing the attacks as "cynical crimes that cannot be justified," the ministry said the incidents once again underline the need for joint international efforts and a united front against terrorism.
Turkish Prime Minister Ahmet Davutoglu has already extended condolences to German Chancellor Angela Merkel.
On Monday, a group of gunmen detonated a car bomb in eastern Baghdad, and stormed a shopping mall in a predominantly Shiite district of the Iraqi capital. At least 18 people were killed and 50 others were injured in the attack.