The best time to visit San Francisco is from September to November when the weather is mild and the tourist crowds have thinned out. Spring is also a great time, particularly from March to May.