The ruling was reported in Iranian newspapers on Thursday.
The punishment is legal under the Islamic Sharia code of qias or equivalence, which allows retribution for violent crimes.
The court also ordered the attacker, 27-year-old Majid Movahedi, to pay compensation to the victim.
The acid attack took place in 2004. The victim, Ameneh Bahrami, went to Spain for surgery to reconstruct her face but efforts to restore her sight failed.
The ruling was a response to her plea to the court in the Iranian capital Tehran for retribution.
"Ever since I was subject to acid being thrown on my face, I have a constant feeling of being in danger," she told the court.
Ms Bahrami also said that Movahedi had also threatened to kill her.