The best time to visit Kodaikanal is from April to June and September to November when the weather is comfortable and ideal for outdoor activities.