The best time to visit Barcelona is the months of April, May, September and October. The weather is nice and sunny (perfect for sunbathing) and the crowds are fewer.