Спасибо всем.
All (people) in Russian is "все".
In the formula "Спасибо + who" -- who must be in the dative case.
"Все" is conjugated in dative is "всем".