Internet trolls are hardly a representative sample of society. Most of the hate that gets posted is from zit-faced kids who have nothing better to do than press your buttons.
It's the people who actually perpetrate the crimes that you need to fear, which are fewer and further between.
Stay safe by not putting yourself in situations that could get you injured or worse. Groups of intoxicated young men are the ones most likely to do you harm. I do not go out alone at night, and there are certain neighborhoods that I just avoid altogether. If a ciswoman wouldn't go there, you definitely don't go there.