Hat Yai (Thai: หาดใหญ่, pronounced [hàːt jàj], also Haad Yai or Had Yai) is a city in southern Thailand near the Malaysian border. Located at 7°1′N 100°28′E, it is 946 km (588 mi) south of Bangkok, and has a population of 158,218 (2012) in the city itself and about 800,000 in the greater Hat Yai area.