Sodium nitrite is a chemical compound. It contains sodium and nitrite ions. Its chemical formula is NaNO2.