Are any cities safe? Most cities have neighborhoods that outsiders are discouraged from visiting. SF just has a weird dynamic where those neighborhoods become the entire city once the sun goes down and 99% of people board up their windows and doors.
Checking violent crime rates in SF vs, say, Boston, Boston is actually a tiny bit higher (6 vs 5 per 1,000 residents). (Source: neighborhoodscout.com)