The girl's head got caught between the window bars some 76 yards from the ground. She was left holding on to the railing until a neighbor heard her cry and called for help.
After firefighters cut the window bars with bolt cutters, a neighbor carefully reached the girl from a nearby window and helped pull her to safety.
ABC News contributed to this report.