Potassium tetraiodomercurate(II) is an inorganic compound consisting of potassium cations and the tetraiodomercurate(II) anion. It is mainly used as Nessler's reagent, a 0.09 mol/L solution of potassium tetraiodomercurate(II) (K2[HgI4]) in 2.5 mol/L potassium hydroxide, used to detect ammonia.