Topamax is a seizure medication, also called an anticonvulsant. Topamax is used alone or in combination with other medications to prevent seizures in adults and children who are at least 2 years old. Topamax is also used to prevent migraine headaches.