Born in Oberplan in Bohemia (now Horní Planá in the Czech Republic), he was the eldest son of Johann Stifter, a wealthy linen weaver, and his wife, Magdalena. Johann died in 1817 after being crushed by an overturned wagon. Stifter was educated at the " Benedictine Gymnasium" at Kremsmünster, and went to the University of Vienna in 1826 to study law. In 1828 he fell in love with Fanny Greipl, but after a relationship lasting five years, her parents forbade further correspondence, a loss from which he never recovered. In 1835 he became engaged to Amalia Mohaupt, and they married in 1837, but the marriage was not a happy one. Stifter and his wife, unable to conceive, tried adopting three of Amalia's nieces at different times. One of them, Juliana, ran away several times and finally disappeared, only to be found drowned in the Danube four weeks later.