Loei (Thai: เลย; pronounced [lɤ̄ːj]) is a town (thesaban mueang) in northeast Thailand. Loei covers the whole tambon of Mueang Loei district and is the capital of Loei province. In 2017, Loei had a population of 21,013. Loei lies 545 km north-northeast of Bangkok, 150 km west of Udon Thani.