Cernay is a French commune in the Haut-Rhin department of east France.
It is on the river Thur, 17 km northwest of Mulhouse.