Attorney Abdul Hameed said the court on Tuesday exonerated his client for lack of evidence and dismissed all charges against her, concluding they were based on heresy and incriminated material that was planted in the girl's possession.
"I am happy that the poor girl's ordeal is now over," he told The Associated Press after hearing the court ruling in the Pakistani capital, Islamabad.
The girl was freed on bail in September and since then she has been living with her parents at some undisclosed location in Pakistan. She has not made any public appearance due to security reasons.
The girl's name has been released by Pakistani authorities and in the media but The Associated Press generally does not identify juveniles accused of crimes. Pakistan's blasphemy laws carry a punishment of life in prison or the death sentence.
Pakistani and international human right groups have urged the government to change the blasphemy laws, saying they laws are too broad and vague, and are often used by people who are trying to settle scores with rivals or target religious minorities, who make up 5 percent of Pakistan's 180 million-strong population.
Although many Muslims are also accused of insulting the Prophet Muhammad or other acts deemed blasphemous, minorities in Pakistan are disproportionately represented among the defendants, rights groups say.