Brazil is a safe country to visit, but there are some areas that are best avoided. There is a high crime rate in certain areas of big cities, so make sure that you familiarise yourself with the geography of a city.
You can take local advice from hotel and resort staff to identify the riskier areas and avoid these.
Take general precautions such as not walking alone at night and keeping your belongings close to you, and you'll have a safe and enjoyable holiday in Brazil.