Where do people purchase a bitcoin?

I know there are bitcoin atm's. I also heard of people investing in them online. Are both ways safe? What website do they use?
2 answers 2