The high season is from May to the middle of September. The best time for the trip is the beginning of May or late September and early October. It's not so hot outside to visit all the attractions. Anyway, Barcelona is lovely to see all year round. An off-season trip to Barcelona will give a buzz to fewer tourists and comfy weather without heat.