Potassium tetraiodomercurate(II) is an inorganic compound with the chemical formula K2[HgI4]. It consists of potassium cations and tetraiodomercurate(II) anions. It is the active agent in Nessler's reagent, used for detection of ammonia.