Polyaniline (PANI) was synthesized by a self-assembly method in the surfactant 2-acrylamido-2-methylpropane sulfonic acid (AMPS), sodium dodecyl sulfonate (SDBS) and poly (2-acrylamido-2-methylpropane sulfonic acid) (PAMPS), respectively. The morphology of PANI synthesized by different surfactants was investigated by scanning electron microscopy (SEM), transmission electron microscopy (TEM) and specific surface area analyzer. The doping effect of PAMPS on PANI was explored using Fourier transform infrared spectroscopy, Ultraviolet-visible spectroscopy and X-ray photoelectron spectroscopy. The electrochemical properties of PANI doped by PAMPS was examined by cyclic voltammetry and electrochemical impedance spectroscopy. The results showed that PANI prepared in aqueous solution of PAMPS had a unique hollow structure, large specific surface area, high conductivity and electrochemical activity. The electrical conductivity of PANI doped by PAMPS was 8.95 S/cm, which was 10 4 times higher than that of de-doped PANI. What's more, PANI doped by PAMPS had a higher response current and larger capacitance.