Sorocaba generally has a welcoming culture towards tourists and is known for its parks, markets, and cultural sites. However, just like any city, it requires usual precautions. Always be aware of your surroundings, avoid less crowded areas during night time, and necessary precautions should be taken with personal belongings. Although crimes do happen, as in any other urban area, most visits are trouble-free. It's pretty safe for solo female travelers but precautions should be taken.