"It is estimated that as of the year 2023, there are between 3 to 4 Million foreigners living and working in Thailand. The majority of these foreigners are from neighbouring countries such as but not limited to Cambodia, Vietnam and Myanmar while a few are from Laos as well."
source
Thailand is also home to more than 200,000 foreigners—retirees, extended tourists, and workers from, for example, Europe, North America, and elsewhere.
source
Or if you like, around 0,3% of the population.