Parking in Windsor is pretty pricey, so a train is your best bet.
Just 30 miles west of London, the town has two railway stations – Windsor
& Eton Riverside and Windsor
& Eton Central. Both stations are in the town centre, just a few minutes’ walk from the castle. Trains run regularly from London Paddington and London Waterloo, and cost £10.50 for a single journey.