The terrorists belonging to a banned outfit were executed in a jail in the Khyber-Pakhtunkhwa province, the worst hit due to violence by Taliban terrorists.
"They were involved in committing heinous offences relating to terrorism, including killing of innocent civilians, destruction of educational institutions, attacking Armed Forces of Pakistan and Law Enforcement Agencies," the army said.
It said the terrorists were awarded death sentence by the military courts which work in secrecy due to fear of attacks by militants.
The courts were set up after a constitutional amendment following a terror attack on an Army-run school in Peshawar in December 2014 which killed more than 150 people, most of them students.
More From This Section
Human rights group Justice Project Pakistan says 441 people have been executed since the Peshawar attack.
Pakistan has been fighting various extremist groups for over a decade. Militant attacks have killed tens of thousands of people.
The military courts have handed down the death penalty to more than 160 militants.