Sofia Johansdotter Gyllenhielm (1556/59 – June 1583), was a Swedish noble, the illegitimate daughter of King John III of Sweden and Karin Hansdotter.
She spent her early childhood with her mother in Turku Castle in the Duchy of Finland.
In 1562, she and her brother Julius (1559–1583), though not their younger sister, were removed from their mother's custody and kept in their father's household when he married Catherine Jagiellon.
When their father and stepmother were imprisoned in 1563, Gyllenhielm and her brother were given into the care of Anna Andersdotter, spouse of Jöran Persson.
Persson accepted a bribe Catherine gave him in exchange for returning the children, but he still did not do so.