In a process for preparing isocyanates by reacting the corresponding primary amines with phosgene in an inert solvent, use is made of from 0.01 to 50 mol % of a sulfonamide, based on the total amount of primary amine and isocyanate formed in the reaction solution.