Ritter was born in Neuchâtel, Switzerland on 31 May 1867, the son of Guillaume (also known as Wilhelm) Ritter (1835–1912), a French architect and hydraulic engineer from Soultz responsible for enabling a supply of fresh water to La Chaux-de-Fonds in 1887, and Josephine Ducrést, a Swiss woman from Berne.