The effect of 2-phenyl-3-nitroso-imidazo[1,2-a]pyridine (PNIP) on the corrosion inhibition of carbon-steel in 0.5 M HCl was studied by weight loss and different electrochemical techniques such as electrochemical impedance spectroscopy (EIS), potentiodynamic polarization. The obtained results showed that PNIP effectively reduces the corrosion rate of carbon steel. Inhibition efficiency (E%) increases with inhibitor concentration to attain 88% at 10-3 M. Adsorption of that PNIP on the carbon steel surface in 0.5 M HCl follows the Langmuir isotherm model. E% values obtained from various methods used are in good agreement. SEM characterization of the steel surface is made.