Ajdovščina (, ) is a small Slovenian town that is the administrative centre of the Municipality of Ajdovščina (). It is an economic and cultural centre of the Vipava Valley (), southwestern Slovenia, near the border with Italy.