They are usually quite different: 'To' is generally a preposition of movement or direction: I went to the store. 'For' is generally a preposition of purpose: This book is for you. Only rarely do they approach synonymity: To/For me, this book is quite interesting.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.