Hofmann rearrangement, also known as Hofmann degradation and not to be confused with Hofmann elimination, is the reaction of a primary amide with a halogen (chlorine or bromine) in strongly basic (sodium or potassium hydroxide) aqueous medium, which converts the amide to a primary amine.
eg:
Mechanism:
see also nitrene