Hnilec (Hungarian: Nyilas) is a village and municipality in the Spišská Nová Ves District in the Košice Region of central-eastern Slovakia.
In historical records the village was first mentioned in 1290.
The village lies at an altitude of 669 metres and covers an area of 27.082 km².In 2011 had a population of about 451 inhabitants.
The records for genealogical research are available at the state archive "Statny Archiv in Levoca, Slovakia"