Gruber was born on 25 November 1787 in the village of
Hochburg-Ach, Upper Austria, the son of linen weavers, Josef and Maria Gruber. His given name was recorded in the baptismal record as "Conrad Xavier," but this was later changed to "Franz Xaver". The Hochburger schoolteacher Andreas Peterlechner gave him music lessons. Gruber worked as a weaver until the age of 18, then trained to become a schoolteacher. He completed his music education studying with the church organist of Burghausen, Georg Hartdobler. In 1807, Gruber became a schoolteacher in Arnsdorf. He also became the church caretaker and organist. In 1808, he married a widow, Maria Elisabeth Fischinger Engelsberger. They had two children, both of whom died young. After the death of his first wife in 1825, Gruber married a former student, Maria Breitfuss. They had ten children, four of whom survived to adulthood. In 1829, Gruber moved to Berndorf, and in later years to
Hallein,
Salzburg, where he was named choir director, singer and organist. Maria Gruber died in childbirth in 1841. The following year he married Katherine Wimmer. =="Silent Night"==