Pečnik is a small settlement in the hills above Spodnja Idrija in the Idrija Municipality in the Goriška region of Slovenia.