The best time to visit Barcelona is May to August if you want to take advantage of the brilliant Spanish sunshine and warm weather.