Where they both mean 'in order to' (that is, where 'to' is a shortened form of 'in order to') there is no difference. 'To' as a lot of other meanings as a preposition, of course.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.