If you are on a budget the best time to visit Barcelona is between September-December. This time is good because the tourist season slows down and hotel rates are getting cheaper compared to   June-August. You don’t have to worry about the temperature they will still be in the high to low 70s. You can still go to the beach in early fall, but mid-October temperatures can be in the low 50s.