Khachmaz (, ) is a town in the Khachmaz District of Azerbaijan.
Khachmaz has a cool semi-arid climate (Köppen BSk) characterised by very warm summers, chilly though not severe winters, and generally low precipitation.
The economy of Khachmaz is partially agricultural, partially tourist-based, with some industries in operation.
Khachmaz is considered a popular tourist destination, especially due to the Nabran municipality. The combination of a warm summer climate, woods along the seashore and clean golden beaches was exploited by the construction of large numbers of hotels and apartments in Khacmaz.
Khacmaz is twinned with the following cities: