Formerly it was prepared by the Castner process involving the reaction of sodium amide with carbon at elevated temperatures.
[6] When treated with acid, it forms the toxic gas hydrogen cyanide: Because the salt is derived from a weak acid, sodium cyanide readily reverts to HCN by hydrolysis; the moist solid emits small amounts of hydrogen cyanide, which is thought to smell like bitter almonds (not everyone can smell it—the ability thereof is due to a genetic trait[7]).
It is detoxified most efficiently with hydrogen peroxide (H2O2) to produce sodium cyanate (NaOCN) and water:[4]
In organic synthesis, cyanide, which is classified as a strong nucleophile, is used to prepare nitriles, which occur widely in many chemicals, including pharmaceuticals.
NaCN is a potent inhibitor of respiration, acting on mitochondrial cytochrome oxidase and hence blocking electron transport.