Oximes can be synthesized by condensation of an aldehyde or a ketone with hydroxylamine. The condensation of aldehydes with hydroxylamine gives aldoximes, and ketoximes are produced from ketones and hydroxylamine. In general, oximes exist as colorless crystals or as thick liquids and are poorly soluble in water. Therefore, oxime formation can be used for the identification of ketone or aldehyde functional groups.
Oximes can also be obtained from reaction of nitrites such as isoamyl nitrite with compounds containing an acidic hydrogen atom. Examples are the reaction of ethyl acetoacetate and sodium nitrite in acetic acid, the reaction of methyl ethyl ketone with ethyl nitrite in hydrochloric acid. and a similar reaction with propiophenone, the reaction of phenacyl chloride, the reaction of malononitrile with sodium nitrite in acetic acid
A conceptually related reaction is the Japp–Klingemann reaction.