Judge Abdul-Sattar al-Birqdar said all the convicts could appeal against the verdict. Daesh is the acronym for the Arabic name of the terrorist group.
"This also applies to foreign women (of Islamic State families) who committed such actions inside the Iraqi territories".
Some reports said 15 women were sentenced to death, while one was jailed for life, the BBC reported.
Four of the women, all of whom were dressed in black, were accompanied by young children in the courtroom, he said. While some women were brought to Iraq and Syria against their will, many traveled voluntarily to join militants in their self-declared "caliphate".
On Thursday, the Iraqi authorities handed over four women and 27 children from IS families to Russian Federation, after being cleared of charges of involvement in terrorist operations against civilians or security forces, Iraqi Foreign Ministry said.
According to Human Rights Watch (HRW), several women of different nationalities along with the ISIS fighters have surrendered to the Iraqi forces.
Iraq declared victory in December over Daesh, which had seized control of almost a third of the country in 2014.
Human rights organizations and observers contend that the legal process in Iraq is not fair.
Under Iraq's anti-terror laws, anyone found guilty of joining Isis, including non-combatants, can be given the death penalty. The group has been driven out of all population centres it once controlled on both sides of the Iraqi-Syrian border, but members have continued to carry out bombings and other attacks in Iraq. In January, a German woman was given a death sentence for aiding IS, and a 17-year-old German who married an IS fighter was given a 6-year jail term last week.