A novel class of quaternary ammonium-based cationic surfactants is synthesized and characterized via spectroscopic methods (FTIR, 1 H NMR and 13 C NMR). The surface properties, foaming power and biodegradability of the synthesized cationic surfactants are determined using the surface tension technique. The protection performance with their adsorption mechanisms for carbon steel is evaluated in a 15% HCl solution by a series of techniques including electrochemical impedance spectroscopy, potentiodynamic polarization curves, scanning electron microscopy (SEM), X-ray spectroscopy, and UV-visible spectroscopy. The surfactants are found to be excellent corrosion inhibitors for carbon steel. The results show that the inhibition efficiencies are increased by increasing the concentration and the hydrophobic chain length of the tested compounds reaching the maximum at 250 ppm. The potentiodynamic polarization curves suggested that the inhibitors behave as a mixed type with predominant cathodic inhibition and the corrosion behavior can be explained by the adsorption film mechanism. Moreover, the mode of adsorption obeys the Langmuir adsorption isotherm; also, the adsorbed layer on the surface of the metal is approved by using SEM. . As a researcher, he is currently interested in synthesis of organic compounds and their applications. J Surfact Deterg (2017) 20:735-753 753