Peru is ranked #101 on the 2022 Global Peace Index. So it's middling when it comes to overall safety. That said, as with most countries, Peru can be a safe country to visit depending where within its borders you travel and the precautions you take while there.
You greatly improve your chances of a safe and incident-free holiday if you travel with a reputable tour operator like Follow Alice where you have a local guide accompanying you throughout your stay.
For more details about how to stay safe while travelling in Peru, please read 8 tips to stay healthy and safe when travelling in Peru.