In the present work an investigation of the effects of the electropolymerization mode on the optical properties associated to the doping/dedoping processes of nanometric films of polypyrrole (PPy) is reported, monitoring in situ and in real time using simultaneously surface plasmon resonance and electrochemical techniques (ESPR). The electropolymerization of pyrrole was performed by potentiostatic, potentiodynamic and galvanostatic methods and the use of the ESPR technique showed that the electropolymerization mode is essential to the stability of polymer and the reversibility of its optical properties during the doping and dedoping processes. Thus, the optical properties of oxidized and reduced film were obtained by nonlinear least square fitting using Fresnel equations for a four-layer system. Then, the values of the real and imaginary parts of the complex dielectric constant for PPy fims were correlated with the polymer doping level. Finally, quartz crystal microbalance measurements were also applied to obtain correlation between doping/dedoping processes and the changes in the real and imaginary parts of the dielectric constant of the polypyrrole film, showing that the doping and dedoping processes in the polypyrrole film can act directly on its optical properties while the ESPR technique can give the same information indirectly.