Hans Fahrni (2 April 1886 – 9 November 1960) was a Swiss chess master. Born in Zurich, Switzerland, he became one of the leading Swiss players in the early twentieth century. Fahrni competed in numerous international tournaments, including events in Berlin (1909), Paris (1914), and the 1st Chess Olympiad at London (1927), where he played for Switzerland on the first board. He achieved notable results such as sharing first place at the Swiss Chess Championship of 1916 and winning the Zürich 1925 tournament.
In addition to his tournament activity, Fahrni contributed to chess literature, authoring articles on opening theory and game analysis in contemporary chess periodicals. His playing style was characterized by solid positional play and a preference for classical openings.
Fahrni remained active in the Swiss chess community until the late 1940s and passed away in his native Zurich at the age of 74.