Hnilec (Hungarian: Nyilas) is a village and municipality in the Spišská Nová Ves District in the Košice Region of central-eastern Slovakia.