A fast microwave-assisted dansylation procedure has been developed for the derivatization of N-nitrosamines prior to high-performance liquid chromatography determination. N-Nitrosomorpholine, N-nitrosodimethylamine, N-nitrosodiethylamine, N-nitrosopyrrolidine and N-nitrosopiperidine are first denitrosated by hydrobromic acid-acetic acid to produce secondary amines, which are then quantitatively dansylated in 5 min using radiation power of 378 W and a maximum pressure of 1.4 bar inside the reactor. The reaction mixture is separated on a C18 column with acetonitrile-water (55:45, v/v) as mobile phase with fluorimetric detection at 531 nm (excitation at 339 nm). The detection limits range from 8 to 75 pg for N-nitrosomorpholine and N-nitrosodiethylamine, respectively. The method was applied to study the recoveries of N-nitrosamines in beer and their determination in cigarette smoke.