It depends on what region you visit and on what kind of weather you prefer. Brazil is known for being a tropical country. Most of the Brazilian territory has a tropical climate with regional variations, and that's true. From Rio de Janeiro to northern regions, we can say it's "summer during the whole year".
Basically, there are two seasons: a hot summer and a rainy "winter". The lowest temperatures go around +26ºC, rarely going below -20ºC. If you look for cooler temperatures, around June and July are OK to go. December to March is the hottest period, above +30ºC.
If you travel to São Paulo, the weather may be cold from June to August, but not as much as in the south. In the center-west, the weather is hot and dry. If you travel to Brasília and nearby, summer is hot and dry. From May to July, temperatures can be warm during the day and cold at night.
In the south, you need to be aware of the 4 seasons throughout the year. - Summer: December-March, temperatures above +30ºC. The weather is warm from November to April actually. - Autumn: March-June, temperatures gradually cool down from mid-April until getting cold in June. - Winter: June-September, cold weather. Temperatures go to +15ºC, +5ºC, 0ºC or even negative. There's no heater usually, you'd better take winter clothes.
Cold like winter in Portugal, Italy, and Spain. June and July are the peaks of winter. - Spring: September-December. Temperatures gradually warm up until getting sunny days from December.
