Loksa is a town in northern Estonia. It constitutes an urban municipality within Harju County. The town has a population of 3,454 (as of 1 January 2007) and covers an area of 3.8 km². The population density is 908.9 inhabitants per km².